[ 11.244264][ T218] GACT probability NOT on [ 11.244282][ T218] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.244284][ T218] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 218, name: modprobe [ 11.244286][ T218] preempt_count: 1, expected: 0 [ 11.244287][ T218] RCU nest depth: 0, expected: 0 [ 11.244288][ T218] locks held by modprobe/218: 4, last CPU#3: [ 11.244290][ T218] #0: ffffffff94b7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.244302][ T218] #1: ffffffff94b7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.244306][ T218] #2: ffffffff94a9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.244310][ T218] #3: ffffffff94a9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.244314][ T218] irq event stamp: 24752 [ 11.244315][ T218] hardirqs last enabled at (24751): [] __down_trylock_console_sem+0x86/0xa0 [ 11.244318][ T218] hardirqs last disabled at (24752): [] console_emit_next_record+0x3d4/0x4c0 [ 11.244320][ T218] softirqs last enabled at (21208): [] handle_softirqs+0x67c/0x900 [ 11.244324][ T218] softirqs last disabled at (21203): [] __irq_exit_rcu+0x145/0x1c0 [ 11.244326][ T218] Preemption disabled at: [ 11.244327][ T218] [] vprintk_emit+0x31b/0x3e0 [ 11.244332][ T218] CPU: 3 UID: 0 PID: 218 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.244338][ T218] Tainted: [W]=WARN [ 11.244339][ T218] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.244341][ T218] Call Trace: [ 11.244343][ T218] [ 11.244344][ T218] dump_stack_lvl+0x6f/0xa0 [ 11.244350][ T218] ? vprintk_emit+0x31b/0x3e0 [ 11.244352][ T218] __might_resched.cold+0x1fe/0x2c1 [ 11.244357][ T218] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.244361][ T218] ? __kmalloc_noprof+0xdb/0x760 [ 11.244365][ T218] __kmalloc_noprof+0x443/0x760 [ 11.244367][ T218] ? alloc_buf.isra.0+0x4b/0x260 [ 11.244374][ T218] ? do_raw_spin_unlock+0x59/0x250 [ 11.244377][ T218] alloc_buf.isra.0+0x4b/0x260 [ 11.244380][ T218] put_chars+0x1e1/0x2f0 [ 11.244382][ T218] ? desc_read_finalized_seq+0x79/0x120 [ 11.244384][ T218] ? __send_to_port+0x420/0x420 [ 11.244387][ T218] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.244390][ T218] ? validate_chain+0x38b/0xc20 [ 11.244395][ T218] hvc_console_print+0x292/0x780 [ 11.244399][ T218] ? __lock_acquire+0x518/0xc20 [ 11.244400][ T218] ? __lock_acquire+0x518/0xc20 [ 11.244405][ T218] ? hvc_write+0x3a0/0x3a0 [ 11.244407][ T218] ? console_emit_next_record+0x1df/0x4c0 [ 11.244410][ T218] ? rcu_is_watching+0x16/0xd0 [ 11.244412][ T218] ? lock_acquire+0x13c/0x160 [ 11.244416][ T218] console_emit_next_record+0x22f/0x4c0 [ 11.244420][ T218] ? devkmsg_read+0x4b0/0x4b0 [ 11.244422][ T218] ? console_flush_one_record+0x106/0x710 [ 11.244425][ T218] ? rcu_is_watching+0x16/0xd0 [ 11.244426][ T218] ? lock_acquire+0x13c/0x160 [ 11.244430][ T218] console_flush_one_record+0x46f/0x710 [ 11.244434][ T218] ? console_emit_next_record+0x4c0/0x4c0 [ 11.244436][ T218] ? __lock_acquire+0x518/0xc20 [ 11.244441][ T218] console_unlock+0xee/0x1f0 [ 11.244444][ T218] ? console_flush_one_record+0x710/0x710 [ 11.244446][ T218] ? rcu_is_watching+0x16/0xd0 [ 11.244448][ T218] ? lock_acquire+0xe0/0x160 [ 11.244452][ T218] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.244454][ T218] ? vprintk_emit+0x320/0x3e0 [ 11.244457][ T218] vprintk_emit+0x37c/0x3e0 [ 11.244461][ T218] ? wake_up_klogd_work_func+0x90/0x90 [ 11.244466][ T218] ? gact_cleanup_module+0xf0/0xf0 [act_gact] [ 11.244469][ T218] _printk+0xc7/0x100 [ 11.244472][ T218] ? snapshot_read.cold+0x21/0x21 [ 11.244478][ T218] ? do_one_initcall+0x113/0x4f0 [ 11.244481][ T218] gact_init_module+0x15/0x1000 [act_gact] [ 11.244484][ T218] do_one_initcall+0x124/0x4f0 [ 11.244486][ T218] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 11.244491][ T218] ? do_init_module+0xae/0x8a0 [ 11.244494][ T218] ? kasan_unpoison+0x44/0x70 [ 11.244500][ T218] do_init_module+0x2ad/0x8a0 [ 11.244503][ T218] ? lockdep_hardirqs_on+0x91/0x130 [ 11.244507][ T218] ? free_module+0x470/0x470 [ 11.244510][ T218] ? kfree+0x123/0x590 [ 11.244513][ T218] load_module+0x1424/0x1bb0 [ 11.244518][ T218] ? security_kernel_post_read_file+0x2f/0x60 [ 11.244523][ T218] ? layout_and_allocate.isra.0+0x680/0x680 [ 11.244526][ T218] ? __ia32_sys_fsconfig+0x180/0x180 [ 11.244530][ T218] ? backing_file_read_iter+0x541/0x790 [ 11.244534][ T218] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.244537][ T218] init_module_from_file+0x11f/0x1a0 [ 11.244540][ T218] ? __do_sys_init_module+0x270/0x270 [ 11.244548][ T218] ? __rwlock_init+0x150/0x150 [ 11.244551][ T218] ? do_raw_spin_unlock+0x59/0x250 [ 11.244554][ T218] idempotent_init_module+0x37b/0x7c0 [ 11.244557][ T218] ? init_module_from_file+0x1a0/0x1a0 [ 11.244562][ T218] ? cap_capable+0x1d7/0x3d0 [ 11.244565][ T218] ? __x64_sys_pread64+0x18d/0x250 [ 11.244570][ T218] __x64_sys_finit_module+0xdf/0x190 [ 11.244571][ T218] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 11.244575][ T218] do_syscall_64+0xff/0x530 [ 11.244578][ T218] ? exc_page_fault+0xee/0x100 [ 11.244581][ T218] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.244583][ T218] RIP: 0033:0x7f375878337d [ 11.244586][ 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 [ 11.244588][ T218] RSP: 002b:00007ffc4fc385e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 11.244590][ T218] RAX: ffffffffffffffda RBX: 000055a813e27810 RCX: 00007f375878337d [ 11.244592][ T218] RDX: 0000000000000000 RSI: 000055a80d6f4ffd RDI: 0000000000000000 [ 11.244593][ T218] RBP: 00007ffc4fc38680 R08: 0000000000000000 R09: 0000000000000000 [ 11.244593][ T218] R10: 0000000000000000 R11: 0000000000000246 R12: 000055a80d6f4ffd [ 11.244594][ T218] R13: 000055a813e27960 R14: 0000000000040000 R15: 0000000000000000 [ 11.244601][ T218]