[ 16.022817][ T246] GACT probability NOT on [ 16.022834][ T246] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 16.022836][ T246] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 246, name: modprobe [ 16.022838][ T246] preempt_count: 1, expected: 0 [ 16.022839][ T246] RCU nest depth: 0, expected: 0 [ 16.022840][ T246] locks held by modprobe/246: 4, last CPU#1: [ 16.022842][ T246] #0: ffffffff95369cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 16.022855][ T246] #1: ffffffff95369d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 16.022860][ T246] #2: ffffffff95289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 16.022863][ T246] #3: ffffffff95289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 16.022867][ T246] irq event stamp: 27800 [ 16.022868][ T246] hardirqs last enabled at (27799): [] __down_trylock_console_sem+0x86/0xa0 [ 16.022871][ T246] hardirqs last disabled at (27800): [] console_emit_next_record+0x3d4/0x4c0 [ 16.022873][ T246] softirqs last enabled at (26566): [] handle_softirqs+0x67c/0x900 [ 16.022876][ T246] softirqs last disabled at (26387): [] __irq_exit_rcu+0x145/0x1c0 [ 16.022878][ T246] Preemption disabled at: [ 16.022879][ T246] [] vprintk_emit+0x31b/0x3e0 [ 16.022885][ T246] CPU: 1 UID: 0 PID: 246 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 16.022888][ T246] Tainted: [W]=WARN [ 16.022889][ T246] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.022891][ T246] Call Trace: [ 16.022892][ T246] [ 16.022894][ T246] dump_stack_lvl+0x6f/0xa0 [ 16.022899][ T246] ? vprintk_emit+0x31b/0x3e0 [ 16.022902][ T246] __might_resched.cold+0x1fe/0x2c1 [ 16.022906][ T246] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 16.022910][ T246] ? __kmalloc_noprof+0xdb/0x760 [ 16.022915][ T246] __kmalloc_noprof+0x443/0x760 [ 16.022917][ T246] ? alloc_buf.isra.0+0x4b/0x260 [ 16.022923][ T246] ? do_raw_spin_unlock+0x59/0x250 [ 16.022926][ T246] alloc_buf.isra.0+0x4b/0x260 [ 16.022929][ T246] put_chars+0x1e1/0x2f0 [ 16.022931][ T246] ? desc_read_finalized_seq+0x79/0x120 [ 16.022933][ T246] ? __send_to_port+0x420/0x420 [ 16.022936][ T246] ? rcu_read_lock_any_held+0x3c/0x90 [ 16.022940][ T246] ? validate_chain+0x38b/0xc20 [ 16.022944][ T246] hvc_console_print+0x292/0x780 [ 16.022947][ T246] ? __lock_acquire+0x518/0xc20 [ 16.022948][ T246] ? __lock_acquire+0x518/0xc20 [ 16.022953][ T246] ? hvc_write+0x3a0/0x3a0 [ 16.022954][ T246] ? console_emit_next_record+0x1df/0x4c0 [ 16.022957][ T246] ? rcu_is_watching+0x16/0xd0 [ 16.022960][ T246] ? lock_acquire+0x13c/0x160 [ 16.022964][ T246] console_emit_next_record+0x22f/0x4c0 [ 16.022967][ T246] ? devkmsg_read+0x4b0/0x4b0 [ 16.022969][ T246] ? console_flush_one_record+0x106/0x710 [ 16.022972][ T246] ? rcu_is_watching+0x16/0xd0 [ 16.022975][ T246] ? lock_acquire+0x13c/0x160 [ 16.022978][ T246] console_flush_one_record+0x46f/0x710 [ 16.022988][ T246] ? console_emit_next_record+0x4c0/0x4c0 [ 16.022989][ T246] ? __lock_acquire+0x518/0xc20 [ 16.022994][ T246] console_unlock+0xee/0x1f0 [ 16.022997][ T246] ? console_flush_one_record+0x710/0x710 [ 16.022999][ T246] ? rcu_is_watching+0x16/0xd0 [ 16.023001][ T246] ? lock_acquire+0x60/0x160 [ 16.023005][ T246] ? __down_trylock_console_sem+0x5e/0xa0 [ 16.023006][ T246] ? vprintk_emit+0x320/0x3e0 [ 16.023010][ T246] vprintk_emit+0x37c/0x3e0 [ 16.023014][ T246] ? wake_up_klogd_work_func+0x90/0x90 [ 16.023019][ T246] ? gact_cleanup_module+0xf0/0xf0 [act_gact] [ 16.023022][ T246] _printk+0xc7/0x100 [ 16.023026][ T246] ? snapshot_read.cold+0x21/0x21 [ 16.023032][ T246] ? do_one_initcall+0x113/0x4f0 [ 16.023035][ T246] gact_init_module+0x15/0x1000 [act_gact] [ 16.023037][ T246] do_one_initcall+0x124/0x4f0 [ 16.023039][ T246] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 16.023044][ T246] ? do_init_module+0xae/0x8a0 [ 16.023047][ T246] ? kasan_unpoison+0x44/0x70 [ 16.023052][ T246] do_init_module+0x2ad/0x8a0 [ 16.023056][ T246] ? lockdep_hardirqs_on+0x91/0x130 [ 16.023060][ T246] ? free_module+0x470/0x470 [ 16.023063][ T246] ? kfree+0x123/0x590 [ 16.023067][ T246] load_module+0x1424/0x1bb0 [ 16.023074][ T246] ? layout_and_allocate.isra.0+0x680/0x680 [ 16.023078][ T246] ? __ia32_sys_fsconfig+0x180/0x180 [ 16.023080][ T246] ? ovl_real_file+0x172/0x1e0 [ 16.023084][ T246] ? backing_file_read_iter+0x541/0x790 [ 16.023087][ T246] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 16.023091][ T246] init_module_from_file+0x11f/0x1a0 [ 16.023094][ T246] ? __do_sys_init_module+0x220/0x220 [ 16.023102][ T246] ? __rwlock_init+0x150/0x150 [ 16.023106][ T246] ? do_raw_spin_unlock+0x59/0x250 [ 16.023109][ T246] idempotent_init_module+0x37b/0x7c0 [ 16.023112][ T246] ? init_module_from_file+0x1a0/0x1a0 [ 16.023118][ T246] ? rcu_is_watching+0x16/0xd0 [ 16.023121][ T246] ? cap_capable+0x1d7/0x3d0 [ 16.023126][ T246] __x64_sys_finit_module+0xdf/0x190 [ 16.023128][ T246] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 16.023132][ T246] do_syscall_64+0xff/0x530 [ 16.023134][ T246] ? exc_page_fault+0xee/0x100 [ 16.023137][ T246] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 16.023139][ T246] RIP: 0033:0x7f0bd451337d [ 16.023142][ T246] 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 [ 16.023144][ T246] RSP: 002b:00007fff05d4e918 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 16.023147][ T246] RAX: ffffffffffffffda RBX: 0000558634fc5810 RCX: 00007f0bd451337d [ 16.023149][ T246] RDX: 0000000000000000 RSI: 00005585f59f6ffd RDI: 0000000000000000 [ 16.023150][ T246] RBP: 00007fff05d4e9b0 R08: 0000000000000000 R09: 0000000000000000 [ 16.023151][ T246] R10: 0000000000000000 R11: 0000000000000246 R12: 00005585f59f6ffd [ 16.023152][ T246] R13: 0000558634fc5960 R14: 0000000000040000 R15: 0000000000000000 [ 16.023158][ T246]