[ 14.919580][ T383] GACT probability NOT on [ 14.919595][ T383] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 14.919597][ T383] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 383, name: modprobe [ 14.919599][ T383] preempt_count: 1, expected: 0 [ 14.919600][ T383] RCU nest depth: 0, expected: 0 [ 14.919600][ T383] locks held by modprobe/383: 4, last CPU#3: [ 14.919602][ T383] #0: ffffffffb4d7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 14.919613][ T383] #1: ffffffffb4d7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 14.919618][ T383] #2: ffffffffb4c9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 14.919622][ T383] #3: ffffffffb4c9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 14.919625][ T383] irq event stamp: 29684 [ 14.919626][ T383] hardirqs last enabled at (29683): [] __down_trylock_console_sem+0x86/0xa0 [ 14.919629][ T383] hardirqs last disabled at (29684): [] console_emit_next_record+0x3d4/0x4c0 [ 14.919631][ T383] softirqs last enabled at (28884): [] handle_softirqs+0x67c/0x900 [ 14.919635][ T383] softirqs last disabled at (28877): [] __irq_exit_rcu+0x145/0x1c0 [ 14.919637][ T383] Preemption disabled at: [ 14.919638][ T383] [] vprintk_emit+0x31b/0x3e0 [ 14.919643][ T383] CPU: 3 UID: 0 PID: 383 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 14.919646][ T383] Tainted: [W]=WARN [ 14.919647][ T383] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.919649][ T383] Call Trace: [ 14.919650][ T383] [ 14.919651][ T383] dump_stack_lvl+0x6f/0xa0 [ 14.919657][ T383] ? vprintk_emit+0x31b/0x3e0 [ 14.919659][ T383] __might_resched.cold+0x1fe/0x2c1 [ 14.919663][ T383] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 14.919667][ T383] ? __kmalloc_noprof+0xdb/0x760 [ 14.919671][ T383] __kmalloc_noprof+0x443/0x760 [ 14.919673][ T383] ? alloc_buf.isra.0+0x4b/0x260 [ 14.919680][ T383] ? do_raw_spin_unlock+0x59/0x250 [ 14.919683][ T383] alloc_buf.isra.0+0x4b/0x260 [ 14.919686][ T383] put_chars+0x1e1/0x2f0 [ 14.919688][ T383] ? desc_read_finalized_seq+0x79/0x120 [ 14.919690][ T383] ? __send_to_port+0x420/0x420 [ 14.919693][ T383] ? rcu_read_lock_any_held+0x3c/0x90 [ 14.919696][ T383] ? validate_chain+0x38b/0xc20 [ 14.919701][ T383] hvc_console_print+0x292/0x780 [ 14.919705][ T383] ? __lock_acquire+0x518/0xc20 [ 14.919706][ T383] ? __lock_acquire+0x518/0xc20 [ 14.919711][ T383] ? hvc_write+0x3a0/0x3a0 [ 14.919713][ T383] ? console_emit_next_record+0x1df/0x4c0 [ 14.919716][ T383] ? rcu_is_watching+0x16/0xd0 [ 14.919718][ T383] ? lock_acquire+0x13c/0x160 [ 14.919722][ T383] console_emit_next_record+0x22f/0x4c0 [ 14.919726][ T383] ? devkmsg_read+0x4b0/0x4b0 [ 14.919727][ T383] ? console_flush_one_record+0x106/0x710 [ 14.919731][ T383] ? rcu_is_watching+0x16/0xd0 [ 14.919732][ T383] ? lock_acquire+0x13c/0x160 [ 14.919736][ T383] console_flush_one_record+0x46f/0x710 [ 14.919740][ T383] ? console_emit_next_record+0x4c0/0x4c0 [ 14.919742][ T383] ? __lock_acquire+0x518/0xc20 [ 14.919747][ T383] console_unlock+0xee/0x1f0 [ 14.919750][ T383] ? console_flush_one_record+0x710/0x710 [ 14.919752][ T383] ? rcu_is_watching+0x16/0xd0 [ 14.919754][ T383] ? lock_acquire+0xe0/0x160 [ 14.919757][ T383] ? __down_trylock_console_sem+0x5e/0xa0 [ 14.919759][ T383] ? vprintk_emit+0x320/0x3e0 [ 14.919762][ T383] vprintk_emit+0x37c/0x3e0 [ 14.919765][ T383] ? wake_up_klogd_work_func+0x90/0x90 [ 14.919770][ T383] ? gact_cleanup_module+0xf0/0xf0 [act_gact] [ 14.919772][ T383] _printk+0xc7/0x100 [ 14.919776][ T383] ? snapshot_read.cold+0x21/0x21 [ 14.919782][ T383] ? do_one_initcall+0x113/0x4f0 [ 14.919785][ T383] gact_init_module+0x15/0x1000 [act_gact] [ 14.919787][ T383] do_one_initcall+0x124/0x4f0 [ 14.919790][ T383] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 14.919795][ T383] ? do_init_module+0xae/0x8a0 [ 14.919797][ T383] ? kasan_unpoison+0x44/0x70 [ 14.919802][ T383] do_init_module+0x2ad/0x8a0 [ 14.919805][ T383] ? lockdep_hardirqs_on+0x91/0x130 [ 14.919809][ T383] ? free_module+0x470/0x470 [ 14.919812][ T383] ? kfree+0x123/0x590 [ 14.919816][ T383] load_module+0x1424/0x1bb0 [ 14.919820][ T383] ? security_kernel_post_read_file+0x2f/0x60 [ 14.919825][ T383] ? layout_and_allocate.isra.0+0x680/0x680 [ 14.919829][ T383] ? __ia32_sys_fsconfig+0x180/0x180 [ 14.919832][ T383] ? find_held_lock+0x2b/0x80 [ 14.919835][ T383] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 14.919838][ T383] init_module_from_file+0x11f/0x1a0 [ 14.919841][ T383] ? __do_sys_init_module+0x270/0x270 [ 14.919848][ T383] ? __rwlock_init+0x150/0x150 [ 14.919851][ T383] ? do_raw_spin_unlock+0x59/0x250 [ 14.919855][ T383] idempotent_init_module+0x37b/0x7c0 [ 14.919857][ T383] ? init_module_from_file+0x1a0/0x1a0 [ 14.919862][ T383] ? cap_capable+0x1d7/0x3d0 [ 14.919864][ T383] ? exc_page_fault+0x87/0x100 [ 14.919869][ T383] __x64_sys_finit_module+0xdf/0x190 [ 14.919870][ T383] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 14.919874][ T383] do_syscall_64+0xff/0x530 [ 14.919877][ T383] ? exc_page_fault+0xee/0x100 [ 14.919880][ T383] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 14.919882][ T383] RIP: 0033:0x7f8b0472837d [ 14.919885][ T383] 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 [ 14.919887][ T383] RSP: 002b:00007ffeb4efcb98 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 14.919889][ T383] RAX: ffffffffffffffda RBX: 000055c64b73d810 RCX: 00007f8b0472837d [ 14.919891][ T383] RDX: 0000000000000000 RSI: 000055c62198fffd RDI: 0000000000000000 [ 14.919892][ T383] RBP: 00007ffeb4efcc30 R08: 0000000000000000 R09: 0000000000000000 [ 14.919892][ T383] R10: 0000000000000000 R11: 0000000000000246 R12: 000055c62198fffd [ 14.919893][ T383] R13: 000055c64b73d960 R14: 0000000000040000 R15: 0000000000000000 [ 14.919900][ T383]