[ 9.691916][ T218] GACT probability NOT on [ 9.691932][ T218] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.691934][ T218] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 218, name: modprobe [ 9.691936][ T218] preempt_count: 1, expected: 0 [ 9.691936][ T218] RCU nest depth: 0, expected: 0 [ 9.691937][ T218] locks held by modprobe/218: 4, last CPU#2: [ 9.691939][ T218] #0: ffffffffa457ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.691950][ T218] #1: ffffffffa457de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.691955][ T218] #2: ffffffffa449d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.691959][ T218] #3: ffffffffa449d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.691963][ T218] irq event stamp: 20478 [ 9.691964][ T218] hardirqs last enabled at (20477): [] __down_trylock_console_sem+0x86/0xa0 [ 9.691967][ T218] hardirqs last disabled at (20478): [] console_emit_next_record+0x3d4/0x4c0 [ 9.691969][ T218] softirqs last enabled at (19186): [] handle_softirqs+0x67c/0x900 [ 9.691972][ T218] softirqs last disabled at (19177): [] __irq_exit_rcu+0x145/0x1c0 [ 9.691975][ T218] Preemption disabled at: [ 9.691975][ T218] [] vprintk_emit+0x31b/0x3e0 [ 9.691980][ T218] CPU: 2 UID: 0 PID: 218 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.691984][ T218] Tainted: [W]=WARN [ 9.691984][ T218] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.691986][ T218] Call Trace: [ 9.691987][ T218] [ 9.691989][ T218] dump_stack_lvl+0x6f/0xa0 [ 9.691995][ T218] ? vprintk_emit+0x31b/0x3e0 [ 9.691996][ T218] __might_resched.cold+0x1fe/0x2c1 [ 9.692001][ T218] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.692007][ T218] ? __kmalloc_noprof+0xdb/0x760 [ 9.692012][ T218] __kmalloc_noprof+0x443/0x760 [ 9.692014][ T218] ? alloc_buf.isra.0+0x4b/0x260 [ 9.692020][ T218] ? do_raw_spin_unlock+0x59/0x250 [ 9.692023][ T218] alloc_buf.isra.0+0x4b/0x260 [ 9.692027][ T218] put_chars+0x1e1/0x2f0 [ 9.692028][ T218] ? desc_read_finalized_seq+0x79/0x120 [ 9.692031][ T218] ? __send_to_port+0x420/0x420 [ 9.692033][ T218] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.692037][ T218] ? validate_chain+0x38b/0xc20 [ 9.692041][ T218] hvc_console_print+0x292/0x780 [ 9.692045][ T218] ? __lock_acquire+0x518/0xc20 [ 9.692047][ T218] ? __lock_acquire+0x518/0xc20 [ 9.692051][ T218] ? hvc_write+0x3a0/0x3a0 [ 9.692053][ T218] ? console_emit_next_record+0x1df/0x4c0 [ 9.692056][ T218] ? rcu_is_watching+0x16/0xd0 [ 9.692058][ T218] ? lock_acquire+0x13c/0x160 [ 9.692062][ T218] console_emit_next_record+0x22f/0x4c0 [ 9.692066][ T218] ? devkmsg_read+0x4b0/0x4b0 [ 9.692068][ T218] ? console_flush_one_record+0x106/0x710 [ 9.692071][ T218] ? rcu_is_watching+0x16/0xd0 [ 9.692073][ T218] ? lock_acquire+0x13c/0x160 [ 9.692076][ T218] console_flush_one_record+0x46f/0x710 [ 9.692081][ T218] ? console_emit_next_record+0x4c0/0x4c0 [ 9.692082][ T218] ? __lock_acquire+0x518/0xc20 [ 9.692088][ T218] console_unlock+0xee/0x1f0 [ 9.692090][ T218] ? console_flush_one_record+0x710/0x710 [ 9.692092][ T218] ? rcu_is_watching+0x16/0xd0 [ 9.692094][ T218] ? lock_acquire+0xe0/0x160 [ 9.692097][ T218] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.692099][ T218] ? vprintk_emit+0x320/0x3e0 [ 9.692102][ T218] vprintk_emit+0x37c/0x3e0 [ 9.692105][ T218] ? wake_up_klogd_work_func+0x90/0x90 [ 9.692110][ T218] ? gact_cleanup_module+0xf0/0xf0 [act_gact] [ 9.692113][ T218] _printk+0xc7/0x100 [ 9.692116][ T218] ? snapshot_read.cold+0x21/0x21 [ 9.692122][ T218] ? do_one_initcall+0x113/0x4f0 [ 9.692126][ T218] gact_init_module+0x15/0x1000 [act_gact] [ 9.692128][ T218] do_one_initcall+0x124/0x4f0 [ 9.692130][ T218] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.692135][ T218] ? do_init_module+0xae/0x8a0 [ 9.692137][ T218] ? kasan_unpoison+0x44/0x70 [ 9.692143][ T218] do_init_module+0x2ad/0x8a0 [ 9.692146][ T218] ? lockdep_hardirqs_on+0x91/0x130 [ 9.692150][ T218] ? free_module+0x470/0x470 [ 9.692152][ T218] ? kfree+0x123/0x590 [ 9.692156][ T218] load_module+0x1424/0x1bb0 [ 9.692161][ T218] ? security_kernel_post_read_file+0x2f/0x60 [ 9.692166][ T218] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.692169][ T218] ? __ia32_sys_fsconfig+0x180/0x180 [ 9.692173][ T218] ? backing_file_read_iter+0x541/0x790 [ 9.692176][ T218] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.692180][ T218] init_module_from_file+0x11f/0x1a0 [ 9.692182][ T218] ? __do_sys_init_module+0x270/0x270 [ 9.692190][ T218] ? __rwlock_init+0x150/0x150 [ 9.692193][ T218] ? do_raw_spin_unlock+0x59/0x250 [ 9.692196][ T218] idempotent_init_module+0x37b/0x7c0 [ 9.692199][ T218] ? init_module_from_file+0x1a0/0x1a0 [ 9.692204][ T218] ? cap_capable+0x1d7/0x3d0 [ 9.692207][ T218] ? __x64_sys_pread64+0x18d/0x250 [ 9.692212][ T218] __x64_sys_finit_module+0xdf/0x190 [ 9.692213][ T218] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.692217][ T218] do_syscall_64+0xff/0x530 [ 9.692220][ T218] ? exc_page_fault+0xee/0x100 [ 9.692223][ T218] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.692225][ T218] RIP: 0033:0x7fbb11f8437d [ 9.692228][ 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 [ 9.692230][ T218] RSP: 002b:00007ffc4ae70808 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.692232][ T218] RAX: ffffffffffffffda RBX: 0000557d79d4f810 RCX: 00007fbb11f8437d [ 9.692234][ T218] RDX: 0000000000000000 RSI: 0000557d6471dffd RDI: 0000000000000000 [ 9.692234][ T218] RBP: 00007ffc4ae708a0 R08: 0000000000000000 R09: 0000000000000000 [ 9.692235][ T218] R10: 0000000000000000 R11: 0000000000000246 R12: 0000557d6471dffd [ 9.692236][ T218] R13: 0000557d79d4f960 R14: 0000000000040000 R15: 0000000000000000 [ 9.692243][ T218]