[ 10.018691][ T222] GACT probability NOT on [ 10.018707][ T222] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.018709][ T222] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 222, name: modprobe [ 10.018711][ T222] preempt_count: 1, expected: 0 [ 10.018712][ T222] RCU nest depth: 0, expected: 0 [ 10.018713][ T222] locks held by modprobe/222: 4, last CPU#2: [ 10.018715][ T222] #0: ffffffffab97ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.018727][ T222] #1: ffffffffab97de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.018731][ T222] #2: ffffffffab89d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.018735][ T222] #3: ffffffffab89d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.018739][ T222] irq event stamp: 17536 [ 10.018740][ T222] hardirqs last enabled at (17535): [] __down_trylock_console_sem+0x86/0xa0 [ 10.018743][ T222] hardirqs last disabled at (17536): [] console_emit_next_record+0x3d4/0x4c0 [ 10.018745][ T222] softirqs last enabled at (16516): [] handle_softirqs+0x67c/0x900 [ 10.018749][ T222] softirqs last disabled at (15691): [] __irq_exit_rcu+0x145/0x1c0 [ 10.018751][ T222] Preemption disabled at: [ 10.018751][ T222] [] vprintk_emit+0x31b/0x3e0 [ 10.018756][ T222] CPU: 2 UID: 0 PID: 222 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.018760][ T222] Tainted: [W]=WARN [ 10.018760][ T222] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.018762][ T222] Call Trace: [ 10.018763][ T222] [ 10.018765][ T222] dump_stack_lvl+0x6f/0xa0 [ 10.018770][ T222] ? vprintk_emit+0x31b/0x3e0 [ 10.018772][ T222] __might_resched.cold+0x1fe/0x2c1 [ 10.018776][ T222] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.018780][ T222] ? __kmalloc_noprof+0xdb/0x760 [ 10.018784][ T222] __kmalloc_noprof+0x443/0x760 [ 10.018786][ T222] ? alloc_buf.isra.0+0x4b/0x260 [ 10.018792][ T222] ? do_raw_spin_unlock+0x59/0x250 [ 10.018795][ T222] alloc_buf.isra.0+0x4b/0x260 [ 10.018799][ T222] put_chars+0x1e1/0x2f0 [ 10.018800][ T222] ? desc_read_finalized_seq+0x79/0x120 [ 10.018803][ T222] ? __send_to_port+0x420/0x420 [ 10.018806][ T222] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.018809][ T222] ? validate_chain+0x38b/0xc20 [ 10.018813][ T222] hvc_console_print+0x292/0x780 [ 10.018817][ T222] ? __lock_acquire+0x518/0xc20 [ 10.018819][ T222] ? __lock_acquire+0x518/0xc20 [ 10.018823][ T222] ? hvc_write+0x3a0/0x3a0 [ 10.018825][ T222] ? console_emit_next_record+0x1df/0x4c0 [ 10.018828][ T222] ? rcu_is_watching+0x16/0xd0 [ 10.018830][ T222] ? lock_acquire+0x13c/0x160 [ 10.018834][ T222] console_emit_next_record+0x22f/0x4c0 [ 10.018838][ T222] ? devkmsg_read+0x4b0/0x4b0 [ 10.018840][ T222] ? console_flush_one_record+0x106/0x710 [ 10.018843][ T222] ? rcu_is_watching+0x16/0xd0 [ 10.018845][ T222] ? lock_acquire+0x13c/0x160 [ 10.018848][ T222] console_flush_one_record+0x46f/0x710 [ 10.018853][ T222] ? console_emit_next_record+0x4c0/0x4c0 [ 10.018854][ T222] ? __lock_acquire+0x518/0xc20 [ 10.018859][ T222] console_unlock+0xee/0x1f0 [ 10.018862][ T222] ? console_flush_one_record+0x710/0x710 [ 10.018864][ T222] ? rcu_is_watching+0x16/0xd0 [ 10.018866][ T222] ? lock_acquire+0xe0/0x160 [ 10.018869][ T222] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.018871][ T222] ? vprintk_emit+0x320/0x3e0 [ 10.018874][ T222] vprintk_emit+0x37c/0x3e0 [ 10.018877][ T222] ? wake_up_klogd_work_func+0x90/0x90 [ 10.018881][ T222] ? gact_cleanup_module+0xf0/0xf0 [act_gact] [ 10.018884][ T222] _printk+0xc7/0x100 [ 10.018888][ T222] ? snapshot_read.cold+0x21/0x21 [ 10.018894][ T222] ? do_one_initcall+0x113/0x4f0 [ 10.018897][ T222] gact_init_module+0x15/0x1000 [act_gact] [ 10.018899][ T222] do_one_initcall+0x124/0x4f0 [ 10.018902][ T222] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.018906][ T222] ? do_init_module+0xae/0x8a0 [ 10.018909][ T222] ? kasan_unpoison+0x44/0x70 [ 10.018914][ T222] do_init_module+0x2ad/0x8a0 [ 10.018917][ T222] ? lockdep_hardirqs_on+0x91/0x130 [ 10.018921][ T222] ? free_module+0x470/0x470 [ 10.018924][ T222] ? kfree+0x123/0x590 [ 10.018927][ T222] load_module+0x1424/0x1bb0 [ 10.018932][ T222] ? security_kernel_post_read_file+0x2f/0x60 [ 10.018937][ T222] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.018940][ T222] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.018944][ T222] ? backing_file_read_iter+0x541/0x790 [ 10.018947][ T222] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.018950][ T222] init_module_from_file+0x11f/0x1a0 [ 10.018953][ T222] ? __do_sys_init_module+0x270/0x270 [ 10.018960][ T222] ? __rwlock_init+0x150/0x150 [ 10.018964][ T222] ? do_raw_spin_unlock+0x59/0x250 [ 10.018967][ T222] idempotent_init_module+0x37b/0x7c0 [ 10.018969][ T222] ? init_module_from_file+0x1a0/0x1a0 [ 10.018974][ T222] ? cap_capable+0x1d7/0x3d0 [ 10.018977][ T222] ? __x64_sys_pread64+0x18d/0x250 [ 10.018982][ T222] __x64_sys_finit_module+0xdf/0x190 [ 10.018983][ T222] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.018987][ T222] do_syscall_64+0xff/0x530 [ 10.018990][ T222] ? exc_page_fault+0xee/0x100 [ 10.018992][ T222] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.018994][ T222] RIP: 0033:0x7fab7d02e37d [ 10.018997][ T222] 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 [ 10.018999][ T222] RSP: 002b:00007ffe4c913a78 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.019001][ T222] RAX: ffffffffffffffda RBX: 00005633970fa810 RCX: 00007fab7d02e37d [ 10.019003][ T222] RDX: 0000000000000000 RSI: 00005633967f7ffd RDI: 0000000000000000 [ 10.019003][ T222] RBP: 00007ffe4c913b10 R08: 0000000000000000 R09: 0000000000000000 [ 10.019004][ T222] R10: 0000000000000000 R11: 0000000000000246 R12: 00005633967f7ffd [ 10.019005][ T222] R13: 00005633970fa960 R14: 0000000000040000 R15: 0000000000000000 [ 10.019011][ T222]