[ 9.608663][ T217] GACT probability NOT on [ 9.608678][ T217] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.608680][ T217] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 217, name: modprobe [ 9.608682][ T217] preempt_count: 1, expected: 0 [ 9.608683][ T217] RCU nest depth: 0, expected: 0 [ 9.608684][ T217] locks held by modprobe/217: 4, last CPU#2: [ 9.608686][ T217] #0: ffffffffb4f7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.608697][ T217] #1: ffffffffb4f7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.608701][ T217] #2: ffffffffb4e9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.608705][ T217] #3: ffffffffb4e9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.608709][ T217] irq event stamp: 25438 [ 9.608710][ T217] hardirqs last enabled at (25437): [] __down_trylock_console_sem+0x86/0xa0 [ 9.608713][ T217] hardirqs last disabled at (25438): [] console_emit_next_record+0x3d4/0x4c0 [ 9.608715][ T217] softirqs last enabled at (24108): [] handle_softirqs+0x67c/0x900 [ 9.608718][ T217] softirqs last disabled at (24101): [] __irq_exit_rcu+0x145/0x1c0 [ 9.608720][ T217] Preemption disabled at: [ 9.608721][ T217] [] vprintk_emit+0x31b/0x3e0 [ 9.608726][ T217] CPU: 2 UID: 0 PID: 217 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.608729][ T217] Tainted: [W]=WARN [ 9.608730][ T217] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.608732][ T217] Call Trace: [ 9.608733][ T217] [ 9.608735][ T217] dump_stack_lvl+0x6f/0xa0 [ 9.608740][ T217] ? vprintk_emit+0x31b/0x3e0 [ 9.608742][ T217] __might_resched.cold+0x1fe/0x2c1 [ 9.608746][ T217] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.608750][ T217] ? __kmalloc_noprof+0xdb/0x760 [ 9.608754][ T217] __kmalloc_noprof+0x443/0x760 [ 9.608756][ T217] ? alloc_buf.isra.0+0x4b/0x260 [ 9.608763][ T217] ? do_raw_spin_unlock+0x59/0x250 [ 9.608765][ T217] alloc_buf.isra.0+0x4b/0x260 [ 9.608769][ T217] put_chars+0x1e1/0x2f0 [ 9.608771][ T217] ? desc_read_finalized_seq+0x79/0x120 [ 9.608773][ T217] ? __send_to_port+0x420/0x420 [ 9.608776][ T217] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.608779][ T217] ? validate_chain+0x38b/0xc20 [ 9.608784][ T217] hvc_console_print+0x292/0x780 [ 9.608787][ T217] ? __lock_acquire+0x518/0xc20 [ 9.608789][ T217] ? __lock_acquire+0x518/0xc20 [ 9.608794][ T217] ? hvc_write+0x3a0/0x3a0 [ 9.608796][ T217] ? console_emit_next_record+0x1df/0x4c0 [ 9.608799][ T217] ? rcu_is_watching+0x16/0xd0 [ 9.608801][ T217] ? lock_acquire+0x13c/0x160 [ 9.608805][ T217] console_emit_next_record+0x22f/0x4c0 [ 9.608809][ T217] ? devkmsg_read+0x4b0/0x4b0 [ 9.608811][ T217] ? console_flush_one_record+0x106/0x710 [ 9.608814][ T217] ? rcu_is_watching+0x16/0xd0 [ 9.608815][ T217] ? lock_acquire+0x13c/0x160 [ 9.608819][ T217] console_flush_one_record+0x46f/0x710 [ 9.608823][ T217] ? console_emit_next_record+0x4c0/0x4c0 [ 9.608825][ T217] ? __lock_acquire+0x518/0xc20 [ 9.608830][ T217] console_unlock+0xee/0x1f0 [ 9.608833][ T217] ? console_flush_one_record+0x710/0x710 [ 9.608834][ T217] ? rcu_is_watching+0x16/0xd0 [ 9.608836][ T217] ? lock_acquire+0xe0/0x160 [ 9.608840][ T217] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.608841][ T217] ? vprintk_emit+0x320/0x3e0 [ 9.608844][ T217] vprintk_emit+0x37c/0x3e0 [ 9.608847][ T217] ? wake_up_klogd_work_func+0x90/0x90 [ 9.608852][ T217] ? gact_cleanup_module+0xf0/0xf0 [act_gact] [ 9.608854][ T217] _printk+0xc7/0x100 [ 9.608858][ T217] ? snapshot_read.cold+0x21/0x21 [ 9.608864][ T217] ? do_one_initcall+0x113/0x4f0 [ 9.608867][ T217] gact_init_module+0x15/0x1000 [act_gact] [ 9.608869][ T217] do_one_initcall+0x124/0x4f0 [ 9.608872][ T217] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.608877][ T217] ? do_init_module+0xae/0x8a0 [ 9.608879][ T217] ? kasan_unpoison+0x44/0x70 [ 9.608885][ T217] do_init_module+0x2ad/0x8a0 [ 9.608888][ T217] ? lockdep_hardirqs_on+0x91/0x130 [ 9.608891][ T217] ? free_module+0x470/0x470 [ 9.608894][ T217] ? kfree+0x123/0x590 [ 9.608897][ T217] load_module+0x1424/0x1bb0 [ 9.608902][ T217] ? security_kernel_post_read_file+0x2f/0x60 [ 9.608907][ T217] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.608910][ T217] ? __ia32_sys_fsconfig+0x180/0x180 [ 9.608913][ T217] ? find_held_lock+0x2b/0x80 [ 9.608916][ T217] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.608919][ T217] init_module_from_file+0x11f/0x1a0 [ 9.608922][ T217] ? __do_sys_init_module+0x270/0x270 [ 9.608930][ T217] ? __rwlock_init+0x150/0x150 [ 9.608933][ T217] ? do_raw_spin_unlock+0x59/0x250 [ 9.608936][ T217] idempotent_init_module+0x37b/0x7c0 [ 9.608939][ T217] ? init_module_from_file+0x1a0/0x1a0 [ 9.608944][ T217] ? cap_capable+0x1d7/0x3d0 [ 9.608946][ T217] ? exc_page_fault+0x87/0x100 [ 9.608951][ T217] __x64_sys_finit_module+0xdf/0x190 [ 9.608952][ T217] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.608956][ T217] do_syscall_64+0xff/0x530 [ 9.608959][ T217] ? exc_page_fault+0xee/0x100 [ 9.608962][ T217] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.608964][ T217] RIP: 0033:0x7fe9be8f837d [ 9.608967][ 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 [ 9.608969][ T217] RSP: 002b:00007ffe09a6db08 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.608971][ T217] RAX: ffffffffffffffda RBX: 000055f5a4933810 RCX: 00007fe9be8f837d [ 9.608972][ T217] RDX: 0000000000000000 RSI: 000055f580eadffd RDI: 0000000000000000 [ 9.608973][ T217] RBP: 00007ffe09a6dba0 R08: 0000000000000000 R09: 0000000000000000 [ 9.608974][ T217] R10: 0000000000000000 R11: 0000000000000246 R12: 000055f580eadffd [ 9.608975][ T217] R13: 000055f5a4933960 R14: 0000000000040000 R15: 0000000000000000 [ 9.608982][ T217] [ 10.117530][ T246] tc (246) used greatest stack depth: 23840 bytes left