[ 17.628915][ T382] GACT probability NOT on [ 17.628937][ T382] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 17.628940][ T382] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 382, name: modprobe [ 17.628943][ T382] preempt_count: 1, expected: 0 [ 17.628944][ T382] RCU nest depth: 0, expected: 0 [ 17.628946][ T382] locks held by modprobe/382: 4, last CPU#3: [ 17.628948][ T382] #0: ffffffff9a77ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 17.628963][ T382] #1: ffffffff9a77de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 17.628970][ T382] #2: ffffffff9a69d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 17.628976][ T382] #3: ffffffff9a69d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 17.628983][ T382] irq event stamp: 26910 [ 17.628984][ T382] hardirqs last enabled at (26909): [] __down_trylock_console_sem+0x86/0xa0 [ 17.628988][ T382] hardirqs last disabled at (26910): [] console_emit_next_record+0x3d4/0x4c0 [ 17.628991][ T382] softirqs last enabled at (25784): [] handle_softirqs+0x67c/0x900 [ 17.628996][ T382] softirqs last disabled at (24823): [] __irq_exit_rcu+0x145/0x1c0 [ 17.629000][ T382] Preemption disabled at: [ 17.629000][ T382] [] vprintk_emit+0x31b/0x3e0 [ 17.629007][ T382] CPU: 3 UID: 0 PID: 382 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 17.629012][ T382] Tainted: [W]=WARN [ 17.629013][ T382] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.629015][ T382] Call Trace: [ 17.629017][ T382] [ 17.629019][ T382] dump_stack_lvl+0x6f/0xa0 [ 17.629027][ T382] ? vprintk_emit+0x31b/0x3e0 [ 17.629029][ T382] __might_resched.cold+0x1fe/0x2c1 [ 17.629035][ T382] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 17.629041][ T382] ? __kmalloc_noprof+0xdb/0x760 [ 17.629047][ T382] __kmalloc_noprof+0x443/0x760 [ 17.629051][ T382] ? alloc_buf.isra.0+0x4b/0x260 [ 17.629060][ T382] ? do_raw_spin_unlock+0x59/0x250 [ 17.629064][ T382] alloc_buf.isra.0+0x4b/0x260 [ 17.629070][ T382] put_chars+0x1e1/0x2f0 [ 17.629072][ T382] ? desc_read_finalized_seq+0x79/0x120 [ 17.629076][ T382] ? __send_to_port+0x420/0x420 [ 17.629081][ T382] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.629085][ T382] ? validate_chain+0x38b/0xc20 [ 17.629093][ T382] hvc_console_print+0x292/0x780 [ 17.629098][ T382] ? __lock_acquire+0x518/0xc20 [ 17.629100][ T382] ? __lock_acquire+0x518/0xc20 [ 17.629108][ T382] ? hvc_write+0x3a0/0x3a0 [ 17.629111][ T382] ? console_emit_next_record+0x1df/0x4c0 [ 17.629116][ T382] ? rcu_is_watching+0x16/0xd0 [ 17.629120][ T382] ? lock_acquire+0x13c/0x160 [ 17.629126][ T382] console_emit_next_record+0x22f/0x4c0 [ 17.629137][ T382] ? devkmsg_read+0x4b0/0x4b0 [ 17.629140][ T382] ? console_flush_one_record+0x106/0x710 [ 17.629145][ T382] ? rcu_is_watching+0x16/0xd0 [ 17.629148][ T382] ? lock_acquire+0x13c/0x160 [ 17.629154][ T382] console_flush_one_record+0x46f/0x710 [ 17.629161][ T382] ? console_emit_next_record+0x4c0/0x4c0 [ 17.629164][ T382] ? __lock_acquire+0x518/0xc20 [ 17.629173][ T382] console_unlock+0xee/0x1f0 [ 17.629177][ T382] ? console_flush_one_record+0x710/0x710 [ 17.629180][ T382] ? rcu_is_watching+0x16/0xd0 [ 17.629183][ T382] ? lock_acquire+0xe0/0x160 [ 17.629189][ T382] ? __down_trylock_console_sem+0x5e/0xa0 [ 17.629192][ T382] ? vprintk_emit+0x320/0x3e0 [ 17.629197][ T382] vprintk_emit+0x37c/0x3e0 [ 17.629203][ T382] ? wake_up_klogd_work_func+0x90/0x90 [ 17.629211][ T382] ? gact_cleanup_module+0xf0/0xf0 [act_gact] [ 17.629216][ T382] _printk+0xc7/0x100 [ 17.629221][ T382] ? snapshot_read.cold+0x21/0x21 [ 17.629232][ T382] ? do_one_initcall+0x113/0x4f0 [ 17.629237][ T382] gact_init_module+0x15/0x1000 [act_gact] [ 17.629241][ T382] do_one_initcall+0x124/0x4f0 [ 17.629245][ T382] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 17.629253][ T382] ? do_init_module+0xae/0x8a0 [ 17.629257][ T382] ? kasan_unpoison+0x44/0x70 [ 17.629266][ T382] do_init_module+0x2ad/0x8a0 [ 17.629271][ T382] ? lockdep_hardirqs_on+0x91/0x130 [ 17.629276][ T382] ? free_module+0x470/0x470 [ 17.629281][ T382] ? kfree+0x123/0x590 [ 17.629287][ T382] load_module+0x1424/0x1bb0 [ 17.629297][ T382] ? security_kernel_post_read_file+0x2f/0x60 [ 17.629304][ T382] ? layout_and_allocate.isra.0+0x680/0x680 [ 17.629309][ T382] ? __ia32_sys_fsconfig+0x180/0x180 [ 17.629315][ T382] ? backing_file_read_iter+0x541/0x790 [ 17.629320][ T382] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 17.629326][ T382] init_module_from_file+0x11f/0x1a0 [ 17.629330][ T382] ? __do_sys_init_module+0x270/0x270 [ 17.629344][ T382] ? __rwlock_init+0x150/0x150 [ 17.629350][ T382] ? do_raw_spin_unlock+0x59/0x250 [ 17.629355][ T382] idempotent_init_module+0x37b/0x7c0 [ 17.629359][ T382] ? init_module_from_file+0x1a0/0x1a0 [ 17.629369][ T382] ? cap_capable+0x1d7/0x3d0 [ 17.629373][ T382] ? __x64_sys_pread64+0x18d/0x250 [ 17.629381][ T382] __x64_sys_finit_module+0xdf/0x190 [ 17.629383][ T382] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 17.629389][ T382] do_syscall_64+0xff/0x530 [ 17.629393][ T382] ? exc_page_fault+0xee/0x100 [ 17.629397][ T382] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.629401][ T382] RIP: 0033:0x7f3afacdf37d [ 17.629405][ T382] 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 [ 17.629407][ T382] RSP: 002b:00007ffd2b879e28 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 17.629411][ T382] RAX: ffffffffffffffda RBX: 0000561a78950810 RCX: 00007f3afacdf37d [ 17.629413][ T382] RDX: 0000000000000000 RSI: 0000561a7209bffd RDI: 0000000000000000 [ 17.629415][ T382] RBP: 00007ffd2b879ec0 R08: 0000000000000000 R09: 0000000000000000 [ 17.629416][ T382] R10: 0000000000000000 R11: 0000000000000246 R12: 0000561a7209bffd [ 17.629418][ T382] R13: 0000561a78950960 R14: 0000000000040000 R15: 0000000000000000 [ 17.629430][ T382]