[ 14.719209][ T384] GACT probability NOT on [ 14.719226][ T384] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 14.719228][ T384] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 384, name: modprobe [ 14.719230][ T384] preempt_count: 1, expected: 0 [ 14.719230][ T384] RCU nest depth: 0, expected: 0 [ 14.719231][ T384] locks held by modprobe/384: 4, last CPU#2: [ 14.719233][ T384] #0: ffffffffa597ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 14.719244][ T384] #1: ffffffffa597de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 14.719250][ T384] #2: ffffffffa589d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 14.719253][ T384] #3: ffffffffa589d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 14.719257][ T384] irq event stamp: 23194 [ 14.719258][ T384] hardirqs last enabled at (23193): [] __down_trylock_console_sem+0x86/0xa0 [ 14.719261][ T384] hardirqs last disabled at (23194): [] console_emit_next_record+0x3d4/0x4c0 [ 14.719263][ T384] softirqs last enabled at (21706): [] handle_softirqs+0x67c/0x900 [ 14.719266][ T384] softirqs last disabled at (21699): [] __irq_exit_rcu+0x145/0x1c0 [ 14.719269][ T384] Preemption disabled at: [ 14.719270][ T384] [] vprintk_emit+0x31b/0x3e0 [ 14.719274][ T384] CPU: 2 UID: 0 PID: 384 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 14.719278][ T384] Tainted: [W]=WARN [ 14.719279][ T384] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.719280][ T384] Call Trace: [ 14.719282][ T384] [ 14.719283][ T384] dump_stack_lvl+0x6f/0xa0 [ 14.719289][ T384] ? vprintk_emit+0x31b/0x3e0 [ 14.719291][ T384] __might_resched.cold+0x1fe/0x2c1 [ 14.719296][ T384] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 14.719299][ T384] ? __kmalloc_noprof+0xdb/0x760 [ 14.719304][ T384] __kmalloc_noprof+0x443/0x760 [ 14.719306][ T384] ? alloc_buf.isra.0+0x4b/0x260 [ 14.719312][ T384] ? do_raw_spin_unlock+0x59/0x250 [ 14.719315][ T384] alloc_buf.isra.0+0x4b/0x260 [ 14.719319][ T384] put_chars+0x1e1/0x2f0 [ 14.719320][ T384] ? desc_read_finalized_seq+0x79/0x120 [ 14.719323][ T384] ? __send_to_port+0x420/0x420 [ 14.719325][ T384] ? rcu_read_lock_any_held+0x3c/0x90 [ 14.719328][ T384] ? validate_chain+0x38b/0xc20 [ 14.719333][ T384] hvc_console_print+0x292/0x780 [ 14.719337][ T384] ? __lock_acquire+0x518/0xc20 [ 14.719338][ T384] ? __lock_acquire+0x518/0xc20 [ 14.719343][ T384] ? hvc_write+0x3a0/0x3a0 [ 14.719344][ T384] ? console_emit_next_record+0x1df/0x4c0 [ 14.719348][ T384] ? rcu_is_watching+0x16/0xd0 [ 14.719350][ T384] ? lock_acquire+0x13c/0x160 [ 14.719354][ T384] console_emit_next_record+0x22f/0x4c0 [ 14.719357][ T384] ? devkmsg_read+0x4b0/0x4b0 [ 14.719359][ T384] ? console_flush_one_record+0x106/0x710 [ 14.719362][ T384] ? rcu_is_watching+0x16/0xd0 [ 14.719364][ T384] ? lock_acquire+0x13c/0x160 [ 14.719368][ T384] console_flush_one_record+0x46f/0x710 [ 14.719372][ T384] ? console_emit_next_record+0x4c0/0x4c0 [ 14.719374][ T384] ? __lock_acquire+0x518/0xc20 [ 14.719379][ T384] console_unlock+0xee/0x1f0 [ 14.719382][ T384] ? console_flush_one_record+0x710/0x710 [ 14.719384][ T384] ? rcu_is_watching+0x16/0xd0 [ 14.719385][ T384] ? lock_acquire+0xe0/0x160 [ 14.719389][ T384] ? __down_trylock_console_sem+0x5e/0xa0 [ 14.719391][ T384] ? vprintk_emit+0x320/0x3e0 [ 14.719393][ T384] vprintk_emit+0x37c/0x3e0 [ 14.719396][ T384] ? wake_up_klogd_work_func+0x90/0x90 [ 14.719401][ T384] ? gact_cleanup_module+0xf0/0xf0 [act_gact] [ 14.719404][ T384] _printk+0xc7/0x100 [ 14.719407][ T384] ? snapshot_read.cold+0x21/0x21 [ 14.719413][ T384] ? do_one_initcall+0x113/0x4f0 [ 14.719416][ T384] gact_init_module+0x15/0x1000 [act_gact] [ 14.719418][ T384] do_one_initcall+0x124/0x4f0 [ 14.719421][ T384] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 14.719426][ T384] ? do_init_module+0xae/0x8a0 [ 14.719428][ T384] ? kasan_unpoison+0x44/0x70 [ 14.719433][ T384] do_init_module+0x2ad/0x8a0 [ 14.719436][ T384] ? lockdep_hardirqs_on+0x91/0x130 [ 14.719440][ T384] ? free_module+0x470/0x470 [ 14.719443][ T384] ? kfree+0x123/0x590 [ 14.719446][ T384] load_module+0x1424/0x1bb0 [ 14.719451][ T384] ? security_kernel_post_read_file+0x2f/0x60 [ 14.719455][ T384] ? layout_and_allocate.isra.0+0x680/0x680 [ 14.719458][ T384] ? __ia32_sys_fsconfig+0x180/0x180 [ 14.719462][ T384] ? find_held_lock+0x2b/0x80 [ 14.719464][ T384] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 14.719468][ T384] init_module_from_file+0x11f/0x1a0 [ 14.719470][ T384] ? __do_sys_init_module+0x270/0x270 [ 14.719478][ T384] ? __rwlock_init+0x150/0x150 [ 14.719481][ T384] ? do_raw_spin_unlock+0x59/0x250 [ 14.719484][ T384] idempotent_init_module+0x37b/0x7c0 [ 14.719487][ T384] ? init_module_from_file+0x1a0/0x1a0 [ 14.719492][ T384] ? cap_capable+0x1d7/0x3d0 [ 14.719494][ T384] ? exc_page_fault+0x87/0x100 [ 14.719499][ T384] __x64_sys_finit_module+0xdf/0x190 [ 14.719500][ T384] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 14.719506][ T384] do_syscall_64+0xff/0x530 [ 14.719509][ T384] ? exc_page_fault+0xee/0x100 [ 14.719511][ T384] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 14.719514][ T384] RIP: 0033:0x7f2fac85837d [ 14.719517][ T384] 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 [ 14.719518][ T384] RSP: 002b:00007ffd360f8dc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 14.719521][ T384] RAX: ffffffffffffffda RBX: 00005575e3e50810 RCX: 00007f2fac85837d [ 14.719522][ T384] RDX: 0000000000000000 RSI: 00005575c87daffd RDI: 0000000000000000 [ 14.719523][ T384] RBP: 00007ffd360f8e60 R08: 0000000000000000 R09: 0000000000000000 [ 14.719524][ T384] R10: 0000000000000000 R11: 0000000000000246 R12: 00005575c87daffd [ 14.719524][ T384] R13: 00005575e3e50960 R14: 0000000000040000 R15: 0000000000000000 [ 14.719531][ T384]