[ 16.720633][ T246] GACT probability NOT on [ 16.720652][ T246] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 16.720655][ T246] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 246, name: modprobe [ 16.720657][ T246] preempt_count: 1, expected: 0 [ 16.720658][ T246] RCU nest depth: 0, expected: 0 [ 16.720659][ T246] locks held by modprobe/246: 4, last CPU#2: [ 16.720661][ T246] #0: ffffffffb8b69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 16.720674][ T246] #1: ffffffffb8b69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 16.720678][ T246] #2: ffffffffb8a89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 16.720682][ T246] #3: ffffffffb8a89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 16.720686][ T246] irq event stamp: 23954 [ 16.720686][ T246] hardirqs last enabled at (23953): [] __down_trylock_console_sem+0x86/0xa0 [ 16.720689][ T246] hardirqs last disabled at (23954): [] console_emit_next_record+0x3d4/0x4c0 [ 16.720691][ T246] softirqs last enabled at (22866): [] handle_softirqs+0x67c/0x900 [ 16.720694][ T246] softirqs last disabled at (21775): [] __irq_exit_rcu+0x145/0x1c0 [ 16.720697][ T246] Preemption disabled at: [ 16.720697][ T246] [] vprintk_emit+0x31b/0x3e0 [ 16.720703][ T246] CPU: 2 UID: 0 PID: 246 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 16.720706][ T246] Tainted: [W]=WARN [ 16.720707][ T246] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.720709][ T246] Call Trace: [ 16.720711][ T246] [ 16.720712][ T246] dump_stack_lvl+0x6f/0xa0 [ 16.720718][ T246] ? vprintk_emit+0x31b/0x3e0 [ 16.720720][ T246] __might_resched.cold+0x1fe/0x2c1 [ 16.720725][ T246] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 16.720729][ T246] ? __kmalloc_noprof+0xdb/0x760 [ 16.720734][ T246] __kmalloc_noprof+0x443/0x760 [ 16.720736][ T246] ? alloc_buf.isra.0+0x4b/0x260 [ 16.720742][ T246] ? do_raw_spin_unlock+0x59/0x250 [ 16.720744][ T246] alloc_buf.isra.0+0x4b/0x260 [ 16.720748][ T246] put_chars+0x1e1/0x2f0 [ 16.720749][ T246] ? desc_read_finalized_seq+0x79/0x120 [ 16.720752][ T246] ? __send_to_port+0x420/0x420 [ 16.720754][ T246] ? rcu_read_lock_any_held+0x3c/0x90 [ 16.720758][ T246] ? validate_chain+0x38b/0xc20 [ 16.720762][ T246] hvc_console_print+0x292/0x780 [ 16.720764][ T246] ? __lock_acquire+0x518/0xc20 [ 16.720766][ T246] ? __lock_acquire+0x518/0xc20 [ 16.720770][ T246] ? hvc_write+0x3a0/0x3a0 [ 16.720771][ T246] ? console_emit_next_record+0x1df/0x4c0 [ 16.720774][ T246] ? rcu_is_watching+0x16/0xd0 [ 16.720777][ T246] ? lock_acquire+0x13c/0x160 [ 16.720781][ T246] console_emit_next_record+0x22f/0x4c0 [ 16.720785][ T246] ? devkmsg_read+0x4b0/0x4b0 [ 16.720787][ T246] ? console_flush_one_record+0x106/0x710 [ 16.720790][ T246] ? rcu_is_watching+0x16/0xd0 [ 16.720792][ T246] ? lock_acquire+0x13c/0x160 [ 16.720796][ T246] console_flush_one_record+0x46f/0x710 [ 16.720800][ T246] ? console_emit_next_record+0x4c0/0x4c0 [ 16.720802][ T246] ? __lock_acquire+0x518/0xc20 [ 16.720806][ T246] console_unlock+0xee/0x1f0 [ 16.720809][ T246] ? console_flush_one_record+0x710/0x710 [ 16.720811][ T246] ? rcu_is_watching+0x16/0xd0 [ 16.720813][ T246] ? lock_acquire+0x60/0x160 [ 16.720817][ T246] ? __down_trylock_console_sem+0x5e/0xa0 [ 16.720818][ T246] ? vprintk_emit+0x320/0x3e0 [ 16.720826][ T246] vprintk_emit+0x37c/0x3e0 [ 16.720830][ T246] ? wake_up_klogd_work_func+0x90/0x90 [ 16.720836][ T246] ? gact_cleanup_module+0xf0/0xf0 [act_gact] [ 16.720838][ T246] _printk+0xc7/0x100 [ 16.720842][ T246] ? snapshot_read.cold+0x21/0x21 [ 16.720848][ T246] ? do_one_initcall+0x113/0x4f0 [ 16.720851][ T246] gact_init_module+0x15/0x1000 [act_gact] [ 16.720853][ T246] do_one_initcall+0x124/0x4f0 [ 16.720856][ T246] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 16.720860][ T246] ? do_init_module+0xae/0x8a0 [ 16.720863][ T246] ? kasan_unpoison+0x44/0x70 [ 16.720868][ T246] do_init_module+0x2ad/0x8a0 [ 16.720871][ T246] ? lockdep_hardirqs_on+0x91/0x130 [ 16.720875][ T246] ? free_module+0x470/0x470 [ 16.720879][ T246] ? kfree+0x123/0x590 [ 16.720883][ T246] load_module+0x1424/0x1bb0 [ 16.720890][ T246] ? layout_and_allocate.isra.0+0x680/0x680 [ 16.720893][ T246] ? __ia32_sys_fsconfig+0x180/0x180 [ 16.720896][ T246] ? ovl_real_file+0x172/0x1e0 [ 16.720900][ T246] ? backing_file_read_iter+0x541/0x790 [ 16.720903][ T246] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 16.720907][ T246] init_module_from_file+0x11f/0x1a0 [ 16.720910][ T246] ? __do_sys_init_module+0x220/0x220 [ 16.720918][ T246] ? __rwlock_init+0x150/0x150 [ 16.720921][ T246] ? do_raw_spin_unlock+0x59/0x250 [ 16.720924][ T246] idempotent_init_module+0x37b/0x7c0 [ 16.720928][ T246] ? init_module_from_file+0x1a0/0x1a0 [ 16.720934][ T246] ? rcu_is_watching+0x16/0xd0 [ 16.720936][ T246] ? cap_capable+0x1d7/0x3d0 [ 16.720941][ T246] __x64_sys_finit_module+0xdf/0x190 [ 16.720943][ T246] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 16.720947][ T246] do_syscall_64+0xff/0x530 [ 16.720949][ T246] ? exc_page_fault+0xee/0x100 [ 16.720951][ T246] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 16.720954][ T246] RIP: 0033:0x7f5cf1aa137d [ 16.720957][ T246] 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 [ 16.720959][ T246] RSP: 002b:00007ffc2195c918 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 16.720961][ T246] RAX: ffffffffffffffda RBX: 0000561301abb810 RCX: 00007f5cf1aa137d [ 16.720963][ T246] RDX: 0000000000000000 RSI: 00005612f2b88ffd RDI: 0000000000000000 [ 16.720964][ T246] RBP: 00007ffc2195c9b0 R08: 0000000000000000 R09: 0000000000000000 [ 16.720965][ T246] R10: 0000000000000000 R11: 0000000000000246 R12: 00005612f2b88ffd [ 16.720965][ T246] R13: 0000561301abb960 R14: 0000000000040000 R15: 0000000000000000 [ 16.720972][ T246] [ 16.784926][ T244] tc (244) used greatest stack depth: 24144 bytes left