[ 10.355848][ T218] GACT probability NOT on [ 10.355864][ T218] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.355866][ T218] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 218, name: modprobe [ 10.355868][ T218] preempt_count: 1, expected: 0 [ 10.355869][ T218] RCU nest depth: 0, expected: 0 [ 10.355870][ T218] locks held by modprobe/218: 4, last CPU#3: [ 10.355871][ T218] #0: ffffffff9a77ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.355883][ T218] #1: ffffffff9a77de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.355887][ T218] #2: ffffffff9a69d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.355891][ T218] #3: ffffffff9a69d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.355895][ T218] irq event stamp: 21440 [ 10.355896][ T218] hardirqs last enabled at (21439): [] __down_trylock_console_sem+0x86/0xa0 [ 10.355899][ T218] hardirqs last disabled at (21440): [] console_emit_next_record+0x3d4/0x4c0 [ 10.355901][ T218] softirqs last enabled at (20144): [] handle_softirqs+0x67c/0x900 [ 10.355905][ T218] softirqs last disabled at (20139): [] __irq_exit_rcu+0x145/0x1c0 [ 10.355907][ T218] Preemption disabled at: [ 10.355908][ T218] [] vprintk_emit+0x31b/0x3e0 [ 10.355913][ T218] CPU: 3 UID: 0 PID: 218 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.355916][ T218] Tainted: [W]=WARN [ 10.355917][ T218] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.355918][ T218] Call Trace: [ 10.355920][ T218] [ 10.355921][ T218] dump_stack_lvl+0x6f/0xa0 [ 10.355927][ T218] ? vprintk_emit+0x31b/0x3e0 [ 10.355929][ T218] __might_resched.cold+0x1fe/0x2c1 [ 10.355934][ T218] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.355938][ T218] ? __kmalloc_noprof+0xdb/0x760 [ 10.355942][ T218] __kmalloc_noprof+0x443/0x760 [ 10.355944][ T218] ? alloc_buf.isra.0+0x4b/0x260 [ 10.355951][ T218] ? do_raw_spin_unlock+0x59/0x250 [ 10.355953][ T218] alloc_buf.isra.0+0x4b/0x260 [ 10.355957][ T218] put_chars+0x1e1/0x2f0 [ 10.355959][ T218] ? desc_read_finalized_seq+0x79/0x120 [ 10.355961][ T218] ? __send_to_port+0x420/0x420 [ 10.355964][ T218] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.355967][ T218] ? validate_chain+0x38b/0xc20 [ 10.355971][ T218] hvc_console_print+0x292/0x780 [ 10.355975][ T218] ? __lock_acquire+0x518/0xc20 [ 10.355977][ T218] ? __lock_acquire+0x518/0xc20 [ 10.355981][ T218] ? hvc_write+0x3a0/0x3a0 [ 10.355983][ T218] ? console_emit_next_record+0x1df/0x4c0 [ 10.355986][ T218] ? rcu_is_watching+0x16/0xd0 [ 10.355988][ T218] ? lock_acquire+0x13c/0x160 [ 10.355992][ T218] console_emit_next_record+0x22f/0x4c0 [ 10.355996][ T218] ? devkmsg_read+0x4b0/0x4b0 [ 10.355998][ T218] ? console_flush_one_record+0x106/0x710 [ 10.356001][ T218] ? rcu_is_watching+0x16/0xd0 [ 10.356008][ T218] ? lock_acquire+0x13c/0x160 [ 10.356012][ T218] console_flush_one_record+0x46f/0x710 [ 10.356016][ T218] ? console_emit_next_record+0x4c0/0x4c0 [ 10.356018][ T218] ? __lock_acquire+0x518/0xc20 [ 10.356023][ T218] console_unlock+0xee/0x1f0 [ 10.356026][ T218] ? console_flush_one_record+0x710/0x710 [ 10.356028][ T218] ? rcu_is_watching+0x16/0xd0 [ 10.356029][ T218] ? lock_acquire+0xe0/0x160 [ 10.356033][ T218] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.356035][ T218] ? vprintk_emit+0x320/0x3e0 [ 10.356037][ T218] vprintk_emit+0x37c/0x3e0 [ 10.356040][ T218] ? wake_up_klogd_work_func+0x90/0x90 [ 10.356045][ T218] ? gact_cleanup_module+0xf0/0xf0 [act_gact] [ 10.356048][ T218] _printk+0xc7/0x100 [ 10.356052][ T218] ? snapshot_read.cold+0x21/0x21 [ 10.356058][ T218] ? do_one_initcall+0x113/0x4f0 [ 10.356061][ T218] gact_init_module+0x15/0x1000 [act_gact] [ 10.356063][ T218] do_one_initcall+0x124/0x4f0 [ 10.356066][ T218] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.356071][ T218] ? do_init_module+0xae/0x8a0 [ 10.356073][ T218] ? kasan_unpoison+0x44/0x70 [ 10.356079][ T218] do_init_module+0x2ad/0x8a0 [ 10.356082][ T218] ? lockdep_hardirqs_on+0x91/0x130 [ 10.356086][ T218] ? free_module+0x470/0x470 [ 10.356088][ T218] ? kfree+0x123/0x590 [ 10.356092][ T218] load_module+0x1424/0x1bb0 [ 10.356097][ T218] ? security_kernel_post_read_file+0x2f/0x60 [ 10.356101][ T218] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.356104][ T218] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.356109][ T218] ? backing_file_read_iter+0x541/0x790 [ 10.356112][ T218] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.356116][ T218] init_module_from_file+0x11f/0x1a0 [ 10.356118][ T218] ? __do_sys_init_module+0x270/0x270 [ 10.356125][ T218] ? __rwlock_init+0x150/0x150 [ 10.356129][ T218] ? do_raw_spin_unlock+0x59/0x250 [ 10.356132][ T218] idempotent_init_module+0x37b/0x7c0 [ 10.356134][ T218] ? init_module_from_file+0x1a0/0x1a0 [ 10.356140][ T218] ? cap_capable+0x1d7/0x3d0 [ 10.356142][ T218] ? __x64_sys_pread64+0x18d/0x250 [ 10.356147][ T218] __x64_sys_finit_module+0xdf/0x190 [ 10.356149][ T218] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.356153][ T218] do_syscall_64+0xff/0x530 [ 10.356155][ T218] ? exc_page_fault+0xee/0x100 [ 10.356158][ T218] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.356160][ T218] RIP: 0033:0x7ffbdad2437d [ 10.356163][ T218] 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.356165][ T218] RSP: 002b:00007ffdc9337d88 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.356167][ T218] RAX: ffffffffffffffda RBX: 00005583093ce810 RCX: 00007ffbdad2437d [ 10.356169][ T218] RDX: 0000000000000000 RSI: 00005582e94d8ffd RDI: 0000000000000000 [ 10.356169][ T218] RBP: 00007ffdc9337e20 R08: 0000000000000000 R09: 0000000000000000 [ 10.356170][ T218] R10: 0000000000000000 R11: 0000000000000246 R12: 00005582e94d8ffd [ 10.356171][ T218] R13: 00005583093ce960 R14: 0000000000040000 R15: 0000000000000000 [ 10.356177][ T218]