[ 11.072476][ T217] GACT probability NOT on [ 11.072496][ T217] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.072498][ T217] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 217, name: modprobe [ 11.072500][ T217] preempt_count: 1, expected: 0 [ 11.072501][ T217] RCU nest depth: 0, expected: 0 [ 11.072502][ T217] locks held by modprobe/217: 4, last CPU#3: [ 11.072504][ T217] #0: ffffffffaef7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.072516][ T217] #1: ffffffffaef7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.072521][ T217] #2: ffffffffaee9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.072525][ T217] #3: ffffffffaee9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.072530][ T217] irq event stamp: 23248 [ 11.072530][ T217] hardirqs last enabled at (23247): [] __down_trylock_console_sem+0x86/0xa0 [ 11.072534][ T217] hardirqs last disabled at (23248): [] console_emit_next_record+0x3d4/0x4c0 [ 11.072536][ T217] softirqs last enabled at (22430): [] handle_softirqs+0x67c/0x900 [ 11.072539][ T217] softirqs last disabled at (22161): [] __irq_exit_rcu+0x145/0x1c0 [ 11.072542][ T217] Preemption disabled at: [ 11.072543][ T217] [] vprintk_emit+0x31b/0x3e0 [ 11.072548][ T217] CPU: 3 UID: 0 PID: 217 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.072552][ T217] Tainted: [W]=WARN [ 11.072553][ T217] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.072554][ T217] Call Trace: [ 11.072556][ T217] [ 11.072557][ T217] dump_stack_lvl+0x6f/0xa0 [ 11.072563][ T217] ? vprintk_emit+0x31b/0x3e0 [ 11.072565][ T217] __might_resched.cold+0x1fe/0x2c1 [ 11.072570][ T217] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.072574][ T217] ? __kmalloc_noprof+0xdb/0x760 [ 11.072579][ T217] __kmalloc_noprof+0x443/0x760 [ 11.072581][ T217] ? alloc_buf.isra.0+0x4b/0x260 [ 11.072588][ T217] ? do_raw_spin_unlock+0x59/0x250 [ 11.072591][ T217] alloc_buf.isra.0+0x4b/0x260 [ 11.072594][ T217] put_chars+0x1e1/0x2f0 [ 11.072596][ T217] ? desc_read_finalized_seq+0x79/0x120 [ 11.072599][ T217] ? __send_to_port+0x420/0x420 [ 11.072601][ T217] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.072605][ T217] ? validate_chain+0x38b/0xc20 [ 11.072609][ T217] hvc_console_print+0x292/0x780 [ 11.072613][ T217] ? __lock_acquire+0x518/0xc20 [ 11.072615][ T217] ? __lock_acquire+0x518/0xc20 [ 11.072620][ T217] ? hvc_write+0x3a0/0x3a0 [ 11.072622][ T217] ? console_emit_next_record+0x1df/0x4c0 [ 11.072625][ T217] ? rcu_is_watching+0x16/0xd0 [ 11.072627][ T217] ? lock_acquire+0x13c/0x160 [ 11.072631][ T217] console_emit_next_record+0x22f/0x4c0 [ 11.072635][ T217] ? devkmsg_read+0x4b0/0x4b0 [ 11.072637][ T217] ? console_flush_one_record+0x106/0x710 [ 11.072640][ T217] ? rcu_is_watching+0x16/0xd0 [ 11.072642][ T217] ? lock_acquire+0x13c/0x160 [ 11.072646][ T217] console_flush_one_record+0x46f/0x710 [ 11.072650][ T217] ? console_emit_next_record+0x4c0/0x4c0 [ 11.072652][ T217] ? __lock_acquire+0x518/0xc20 [ 11.072657][ T217] console_unlock+0xee/0x1f0 [ 11.072660][ T217] ? console_flush_one_record+0x710/0x710 [ 11.072662][ T217] ? rcu_is_watching+0x16/0xd0 [ 11.072664][ T217] ? lock_acquire+0xe0/0x160 [ 11.072668][ T217] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.072669][ T217] ? vprintk_emit+0x320/0x3e0 [ 11.072672][ T217] vprintk_emit+0x37c/0x3e0 [ 11.072676][ T217] ? wake_up_klogd_work_func+0x90/0x90 [ 11.072681][ T217] ? gact_cleanup_module+0xf0/0xf0 [act_gact] [ 11.072684][ T217] _printk+0xc7/0x100 [ 11.072687][ T217] ? snapshot_read.cold+0x21/0x21 [ 11.072693][ T217] ? do_one_initcall+0x113/0x4f0 [ 11.072697][ T217] gact_init_module+0x15/0x1000 [act_gact] [ 11.072699][ T217] do_one_initcall+0x124/0x4f0 [ 11.072702][ T217] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 11.072707][ T217] ? do_init_module+0xae/0x8a0 [ 11.072709][ T217] ? kasan_unpoison+0x44/0x70 [ 11.072715][ T217] do_init_module+0x2ad/0x8a0 [ 11.072718][ T217] ? lockdep_hardirqs_on+0x91/0x130 [ 11.072722][ T217] ? free_module+0x470/0x470 [ 11.072724][ T217] ? kfree+0x123/0x590 [ 11.072728][ T217] load_module+0x1424/0x1bb0 [ 11.072733][ T217] ? security_kernel_post_read_file+0x2f/0x60 [ 11.072739][ T217] ? layout_and_allocate.isra.0+0x680/0x680 [ 11.072742][ T217] ? __ia32_sys_fsconfig+0x180/0x180 [ 11.072746][ T217] ? backing_file_read_iter+0x541/0x790 [ 11.072749][ T217] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.072754][ T217] init_module_from_file+0x11f/0x1a0 [ 11.072758][ T217] ? __do_sys_init_module+0x270/0x270 [ 11.072771][ T217] ? __rwlock_init+0x150/0x150 [ 11.072775][ T217] ? do_raw_spin_unlock+0x59/0x250 [ 11.072778][ T217] idempotent_init_module+0x37b/0x7c0 [ 11.072781][ T217] ? init_module_from_file+0x1a0/0x1a0 [ 11.072786][ T217] ? cap_capable+0x1d7/0x3d0 [ 11.072789][ T217] ? __x64_sys_pread64+0x18d/0x250 [ 11.072794][ T217] __x64_sys_finit_module+0xdf/0x190 [ 11.072796][ T217] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 11.072800][ T217] do_syscall_64+0xff/0x530 [ 11.072803][ T217] ? exc_page_fault+0xee/0x100 [ 11.072806][ T217] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.072808][ T217] RIP: 0033:0x7fee68cb337d [ 11.072811][ T217] 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 [ 11.072813][ T217] RSP: 002b:00007ffeb9eacf48 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 11.072816][ T217] RAX: ffffffffffffffda RBX: 000055ae06a3b810 RCX: 00007fee68cb337d [ 11.072818][ T217] RDX: 0000000000000000 RSI: 000055adfe787ffd RDI: 0000000000000000 [ 11.072819][ T217] RBP: 00007ffeb9eacfe0 R08: 0000000000000000 R09: 0000000000000000 [ 11.072820][ T217] R10: 0000000000000000 R11: 0000000000000246 R12: 000055adfe787ffd [ 11.072821][ T217] R13: 000055ae06a3b960 R14: 0000000000040000 R15: 0000000000000000 [ 11.072827][ T217]