[ 12.736850][ T289] u32 classifier [ 12.736866][ T289] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.736869][ T289] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 289, name: modprobe [ 12.736870][ T289] preempt_count: 1, expected: 0 [ 12.736871][ T289] RCU nest depth: 0, expected: 0 [ 12.736872][ T289] locks held by modprobe/289: 4, last CPU#0: [ 12.736874][ T289] #0: ffffffffaf97ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.736886][ T289] #1: ffffffffaf97de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.736891][ T289] #2: ffffffffaf89d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.736895][ T289] #3: ffffffffaf89d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.736899][ T289] irq event stamp: 24542 [ 12.736900][ T289] hardirqs last enabled at (24541): [] __down_trylock_console_sem+0x86/0xa0 [ 12.736903][ T289] hardirqs last disabled at (24542): [] console_emit_next_record+0x3d4/0x4c0 [ 12.736905][ T289] softirqs last enabled at (22446): [] handle_softirqs+0x67c/0x900 [ 12.736908][ T289] softirqs last disabled at (21429): [] __irq_exit_rcu+0x145/0x1c0 [ 12.736911][ T289] Preemption disabled at: [ 12.736911][ T289] [] vprintk_emit+0x31b/0x3e0 [ 12.736917][ T289] CPU: 0 UID: 0 PID: 289 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.736920][ T289] Tainted: [W]=WARN [ 12.736921][ T289] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.736923][ T289] Call Trace: [ 12.736924][ T289] [ 12.736926][ T289] dump_stack_lvl+0x6f/0xa0 [ 12.736933][ T289] ? vprintk_emit+0x31b/0x3e0 [ 12.736934][ T289] __might_resched.cold+0x1fe/0x2c1 [ 12.736939][ T289] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.736943][ T289] ? __kmalloc_noprof+0xdb/0x760 [ 12.736948][ T289] __kmalloc_noprof+0x443/0x760 [ 12.736950][ T289] ? alloc_buf.isra.0+0x4b/0x260 [ 12.736956][ T289] ? do_raw_spin_unlock+0x59/0x250 [ 12.736959][ T289] alloc_buf.isra.0+0x4b/0x260 [ 12.736963][ T289] put_chars+0x1e1/0x2f0 [ 12.736966][ T289] ? __send_to_port+0x420/0x420 [ 12.736967][ T289] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 12.736970][ T289] ? validate_chain+0x38b/0xc20 [ 12.736975][ T289] hvc_console_print+0x292/0x780 [ 12.736983][ T289] ? hvc_write+0x3a0/0x3a0 [ 12.736986][ T289] ? rcu_is_watching+0x16/0xd0 [ 12.736988][ T289] ? lock_acquire+0x13c/0x160 [ 12.736992][ T289] console_emit_next_record+0x22f/0x4c0 [ 12.736996][ T289] ? devkmsg_read+0x4b0/0x4b0 [ 12.736998][ T289] ? console_flush_one_record+0x106/0x710 [ 12.737001][ T289] ? rcu_is_watching+0x16/0xd0 [ 12.737003][ T289] ? lock_acquire+0x13c/0x160 [ 12.737007][ T289] console_flush_one_record+0x46f/0x710 [ 12.737011][ T289] ? console_emit_next_record+0x4c0/0x4c0 [ 12.737013][ T289] ? __lock_acquire+0x518/0xc20 [ 12.737018][ T289] console_unlock+0xee/0x1f0 [ 12.737021][ T289] ? console_flush_one_record+0x710/0x710 [ 12.737022][ T289] ? rcu_is_watching+0x16/0xd0 [ 12.737024][ T289] ? lock_acquire+0xe0/0x160 [ 12.737028][ T289] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.737030][ T289] ? vprintk_emit+0x320/0x3e0 [ 12.737032][ T289] vprintk_emit+0x37c/0x3e0 [ 12.737036][ T289] ? wake_up_klogd_work_func+0x90/0x90 [ 12.737041][ T289] ? exit_u32+0x460/0x460 [cls_u32] [ 12.737044][ T289] _printk+0xc7/0x100 [ 12.737048][ T289] ? snapshot_read.cold+0x21/0x21 [ 12.737054][ T289] ? do_one_initcall+0x113/0x4f0 [ 12.737057][ T289] init_u32+0x1e/0x1000 [cls_u32] [ 12.737061][ T289] do_one_initcall+0x124/0x4f0 [ 12.737063][ T289] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 12.737068][ T289] ? do_init_module+0xae/0x8a0 [ 12.737071][ T289] ? kasan_unpoison+0x44/0x70 [ 12.737076][ T289] do_init_module+0x2ad/0x8a0 [ 12.737079][ T289] ? lockdep_hardirqs_on+0x91/0x130 [ 12.737083][ T289] ? free_module+0x470/0x470 [ 12.737085][ T289] ? kfree+0x123/0x590 [ 12.737089][ T289] load_module+0x1424/0x1bb0 [ 12.737094][ T289] ? security_kernel_post_read_file+0x2f/0x60 [ 12.737099][ T289] ? layout_and_allocate.isra.0+0x680/0x680 [ 12.737102][ T289] ? __ia32_sys_fsconfig+0x180/0x180 [ 12.737106][ T289] ? backing_file_read_iter+0x541/0x790 [ 12.737110][ T289] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 12.737113][ T289] init_module_from_file+0x11f/0x1a0 [ 12.737116][ T289] ? __do_sys_init_module+0x270/0x270 [ 12.737123][ T289] ? __rwlock_init+0x150/0x150 [ 12.737127][ T289] ? do_raw_spin_unlock+0x59/0x250 [ 12.737130][ T289] idempotent_init_module+0x37b/0x7c0 [ 12.737133][ T289] ? init_module_from_file+0x1a0/0x1a0 [ 12.737138][ T289] ? cap_capable+0x1d7/0x3d0 [ 12.737141][ T289] ? __x64_sys_pread64+0x18d/0x250 [ 12.737146][ T289] __x64_sys_finit_module+0xdf/0x190 [ 12.737147][ T289] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 12.737151][ T289] do_syscall_64+0xff/0x530 [ 12.737154][ T289] ? exc_page_fault+0xee/0x100 [ 12.737157][ T289] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.737159][ T289] RIP: 0033:0x7f9055f5737d [ 12.737162][ T289] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 4b aa 0f 00 f7 d8 64 89 01 48 [ 12.737164][ T289] RSP: 002b:00007fffc8192f18 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 12.737167][ T289] RAX: ffffffffffffffda RBX: 000055de7a6c2810 RCX: 00007f9055f5737d [ 12.737168][ T289] RDX: 0000000000000000 RSI: 000055de4fb70ffd RDI: 0000000000000000 [ 12.737169][ T289] RBP: 00007fffc8192fb0 R08: 0000000000000000 R09: 0000000000000000 [ 12.737170][ T289] R10: 0000000000000000 R11: 0000000000000246 R12: 000055de4fb70ffd [ 12.737170][ T289] R13: 000055de7a6c2950 R14: 0000000000040000 R15: 0000000000000000 [ 12.737177][ T289] [ 12.763468][ T289] input device check on [ 12.763662][ T289] Actions configured [ 12.796480][ T290] GACT probability NOT on