[ 17.587551][ T298] GACT probability NOT on [ 17.587571][ T298] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 17.587574][ T298] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 298, name: modprobe [ 17.587576][ T298] preempt_count: 1, expected: 0 [ 17.587577][ T298] RCU nest depth: 0, expected: 0 [ 17.587578][ T298] locks held by modprobe/298: 4, last CPU#0: [ 17.587580][ T298] #0: ffffffff92969cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 17.587593][ T298] #1: ffffffff92969d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 17.587597][ T298] #2: ffffffff92889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 17.587602][ T298] #3: ffffffff92889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 17.587606][ T298] irq event stamp: 15862 [ 17.587607][ T298] hardirqs last enabled at (15861): [] __down_trylock_console_sem+0x86/0xa0 [ 17.587609][ T298] hardirqs last disabled at (15862): [] console_emit_next_record+0x3d4/0x4c0 [ 17.587611][ T298] softirqs last enabled at (12042): [] handle_softirqs+0x67c/0x900 [ 17.587614][ T298] softirqs last disabled at (12033): [] __irq_exit_rcu+0x145/0x1c0 [ 17.587617][ T298] Preemption disabled at: [ 17.587618][ T298] [] vprintk_emit+0x31b/0x3e0 [ 17.587623][ T298] CPU: 0 UID: 0 PID: 298 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 17.587627][ T298] Tainted: [W]=WARN [ 17.587628][ T298] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.587630][ T298] Call Trace: [ 17.587632][ T298] [ 17.587633][ T298] dump_stack_lvl+0x6f/0xa0 [ 17.587639][ T298] ? vprintk_emit+0x31b/0x3e0 [ 17.587642][ T298] __might_resched.cold+0x1fe/0x2c1 [ 17.587646][ T298] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 17.587651][ T298] ? __kmalloc_noprof+0xdb/0x760 [ 17.587656][ T298] __kmalloc_noprof+0x443/0x760 [ 17.587658][ T298] ? alloc_buf.isra.0+0x4b/0x260 [ 17.587664][ T298] ? do_raw_spin_unlock+0x59/0x250 [ 17.587667][ T298] alloc_buf.isra.0+0x4b/0x260 [ 17.587670][ T298] put_chars+0x1e1/0x2f0 [ 17.587672][ T298] ? desc_read_finalized_seq+0x79/0x120 [ 17.587675][ T298] ? __send_to_port+0x420/0x420 [ 17.587678][ T298] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.587681][ T298] ? validate_chain+0x38b/0xc20 [ 17.587686][ T298] hvc_console_print+0x292/0x780 [ 17.587688][ T298] ? __lock_acquire+0x518/0xc20 [ 17.587690][ T298] ? __lock_acquire+0x518/0xc20 [ 17.587695][ T298] ? hvc_write+0x3a0/0x3a0 [ 17.587696][ T298] ? console_emit_next_record+0x1df/0x4c0 [ 17.587700][ T298] ? rcu_is_watching+0x16/0xd0 [ 17.587703][ T298] ? lock_acquire+0x13c/0x160 [ 17.587707][ T298] console_emit_next_record+0x22f/0x4c0 [ 17.587711][ T298] ? devkmsg_read+0x4b0/0x4b0 [ 17.587713][ T298] ? console_flush_one_record+0x106/0x710 [ 17.587716][ T298] ? rcu_is_watching+0x16/0xd0 [ 17.587719][ T298] ? lock_acquire+0x13c/0x160 [ 17.587723][ T298] console_flush_one_record+0x46f/0x710 [ 17.587727][ T298] ? console_emit_next_record+0x4c0/0x4c0 [ 17.587729][ T298] ? __lock_acquire+0x518/0xc20 [ 17.587735][ T298] console_unlock+0xee/0x1f0 [ 17.587738][ T298] ? console_flush_one_record+0x710/0x710 [ 17.587740][ T298] ? rcu_is_watching+0x16/0xd0 [ 17.587742][ T298] ? lock_acquire+0x60/0x160 [ 17.587746][ T298] ? __down_trylock_console_sem+0x5e/0xa0 [ 17.587748][ T298] ? vprintk_emit+0x320/0x3e0 [ 17.587751][ T298] vprintk_emit+0x37c/0x3e0 [ 17.587756][ T298] ? wake_up_klogd_work_func+0x90/0x90 [ 17.587762][ T298] ? gact_cleanup_module+0xf0/0xf0 [act_gact] [ 17.587765][ T298] _printk+0xc7/0x100 [ 17.587768][ T298] ? snapshot_read.cold+0x21/0x21 [ 17.587775][ T298] ? do_one_initcall+0x113/0x4f0 [ 17.587778][ T298] gact_init_module+0x15/0x1000 [act_gact] [ 17.587781][ T298] do_one_initcall+0x124/0x4f0 [ 17.587784][ T298] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 17.587788][ T298] ? do_init_module+0xae/0x8a0 [ 17.587792][ T298] ? kasan_unpoison+0x44/0x70 [ 17.587797][ T298] do_init_module+0x2ad/0x8a0 [ 17.587801][ T298] ? lockdep_hardirqs_on+0x91/0x130 [ 17.587805][ T298] ? free_module+0x470/0x470 [ 17.587808][ T298] ? kfree+0x123/0x590 [ 17.587813][ T298] load_module+0x1424/0x1bb0 [ 17.587820][ T298] ? layout_and_allocate.isra.0+0x680/0x680 [ 17.587824][ T298] ? __ia32_sys_fsconfig+0x180/0x180 [ 17.587828][ T298] ? find_held_lock+0x2b/0x80 [ 17.587830][ T298] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 17.587835][ T298] init_module_from_file+0x11f/0x1a0 [ 17.587838][ T298] ? __do_sys_init_module+0x220/0x220 [ 17.587847][ T298] ? __rwlock_init+0x150/0x150 [ 17.587850][ T298] ? do_raw_spin_unlock+0x59/0x250 [ 17.587854][ T298] idempotent_init_module+0x37b/0x7c0 [ 17.587857][ T298] ? init_module_from_file+0x1a0/0x1a0 [ 17.587864][ T298] ? rcu_is_watching+0x16/0xd0 [ 17.587867][ T298] ? cap_capable+0x1d7/0x3d0 [ 17.587873][ T298] __x64_sys_finit_module+0xdf/0x190 [ 17.587875][ T298] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 17.587879][ T298] do_syscall_64+0xff/0x530 [ 17.587881][ T298] ? exc_page_fault+0xee/0x100 [ 17.587884][ T298] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.587887][ T298] RIP: 0033:0x7f162769837d [ 17.587890][ T298] 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 [ 17.587892][ T298] RSP: 002b:00007ffc939d5658 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 17.587895][ T298] RAX: ffffffffffffffda RBX: 00005628e7129810 RCX: 00007f162769837d [ 17.587896][ T298] RDX: 0000000000000000 RSI: 00005628e5c79ffd RDI: 0000000000000000 [ 17.587897][ T298] RBP: 00007ffc939d56f0 R08: 0000000000000000 R09: 0000000000000000 [ 17.587898][ T298] R10: 0000000000000000 R11: 0000000000000246 R12: 00005628e5c79ffd [ 17.587899][ T298] R13: 00005628e7129960 R14: 0000000000040000 R15: 0000000000000000 [ 17.587906][ T298] [ 60.020047][ T524] Mirror/redirect action on [ 60.020066][ T524] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 60.020069][ T524] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 524, name: modprobe [ 60.020071][ T524] preempt_count: 1, expected: 0 [ 60.020072][ T524] RCU nest depth: 0, expected: 0 [ 60.020073][ T524] locks held by modprobe/524: 4, last CPU#0: [ 60.020075][ T524] #0: ffffffff92969cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 60.020088][ T524] #1: ffffffff92969d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 60.020092][ T524] #2: ffffffff92889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 60.020096][ T524] #3: ffffffff92889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 60.020100][ T524] irq event stamp: 26790 [ 60.020101][ T524] hardirqs last enabled at (26789): [] __down_trylock_console_sem+0x86/0xa0 [ 60.020103][ T524] hardirqs last disabled at (26790): [] console_emit_next_record+0x3d4/0x4c0 [ 60.020105][ T524] softirqs last enabled at (26782): [] handle_softirqs+0x67c/0x900 [ 60.020109][ T524] softirqs last disabled at (26775): [] __irq_exit_rcu+0x145/0x1c0 [ 60.020111][ T524] Preemption disabled at: [ 60.020112][ T524] [] vprintk_emit+0x31b/0x3e0 [ 60.020118][ T524] CPU: 0 UID: 0 PID: 524 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 60.020121][ T524] Tainted: [W]=WARN [ 60.020122][ T524] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 60.020124][ T524] Call Trace: [ 60.020125][ T524] [ 60.020127][ T524] dump_stack_lvl+0x6f/0xa0 [ 60.020132][ T524] ? vprintk_emit+0x31b/0x3e0 [ 60.020135][ T524] __might_resched.cold+0x1fe/0x2c1 [ 60.020139][ T524] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 60.020143][ T524] ? __kmalloc_noprof+0xdb/0x760 [ 60.020148][ T524] __kmalloc_noprof+0x443/0x760 [ 60.020150][ T524] ? alloc_buf.isra.0+0x4b/0x260 [ 60.020156][ T524] ? do_raw_spin_unlock+0x59/0x250 [ 60.020158][ T524] alloc_buf.isra.0+0x4b/0x260 [ 60.020162][ T524] put_chars+0x1e1/0x2f0 [ 60.020165][ T524] ? __send_to_port+0x420/0x420 [ 60.020166][ T524] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 60.020171][ T524] ? rcu_read_lock_any_held+0x3c/0x90 [ 60.020173][ T524] ? validate_chain+0x38b/0xc20 [ 60.020177][ T524] hvc_console_print+0x292/0x780 [ 60.020180][ T524] ? __lock_acquire+0x518/0xc20 [ 60.020185][ T524] ? hvc_write+0x3a0/0x3a0 [ 60.020187][ T524] ? rcu_is_watching+0x16/0xd0 [ 60.020192][ T524] console_emit_next_record+0x22f/0x4c0 [ 60.020196][ T524] ? devkmsg_read+0x4b0/0x4b0 [ 60.020198][ T524] ? console_flush_one_record+0x106/0x710 [ 60.020201][ T524] ? rcu_is_watching+0x16/0xd0 [ 60.020203][ T524] ? lock_acquire+0x13c/0x160 [ 60.020207][ T524] console_flush_one_record+0x46f/0x710 [ 60.020211][ T524] ? console_emit_next_record+0x4c0/0x4c0 [ 60.020213][ T524] ? __lock_acquire+0x518/0xc20 [ 60.020218][ T524] console_unlock+0xee/0x1f0 [ 60.020221][ T524] ? console_flush_one_record+0x710/0x710 [ 60.020223][ T524] ? rcu_is_watching+0x16/0xd0 [ 60.020225][ T524] ? lock_acquire+0x60/0x160 [ 60.020229][ T524] ? __down_trylock_console_sem+0x5e/0xa0 [ 60.020230][ T524] ? vprintk_emit+0x320/0x3e0 [ 60.020234][ T524] vprintk_emit+0x37c/0x3e0 [ 60.020238][ T524] ? wake_up_klogd_work_func+0x90/0x90 [ 60.020241][ T524] ? netdev_run_todo+0x2a8/0xfd0 [ 60.020245][ T524] ? mirred_device_event+0x3d/0x1d0 [act_mirred] [ 60.020249][ T524] ? rcu_is_watching+0x16/0xd0 [ 60.020253][ T524] ? mirred_cleanup_module+0x750/0x750 [act_mirred] [ 60.020255][ T524] _printk+0xc7/0x100 [ 60.020259][ T524] ? snapshot_read.cold+0x21/0x21 [ 60.020260][ T524] ? __lock_release.isra.0+0x69/0x1a0 [ 60.020263][ T524] ? mirred_cleanup_module+0x750/0x750 [act_mirred] [ 60.020265][ T524] ? __up_write+0x23d/0x5f0 [ 60.020267][ T524] ? __up_write+0x2e5/0x5f0 [ 60.020270][ T524] ? __up_write+0x2c7/0x5f0 [ 60.020272][ T524] mirred_init_module+0x28/0x1000 [act_mirred] [ 60.020275][ T524] do_one_initcall+0x124/0x4f0 [ 60.020278][ T524] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 60.020283][ T524] ? do_init_module+0xae/0x8a0 [ 60.020286][ T524] ? kasan_unpoison+0x44/0x70 [ 60.020290][ T524] do_init_module+0x2ad/0x8a0 [ 60.020294][ T524] ? lockdep_hardirqs_on+0x91/0x130 [ 60.020298][ T524] ? free_module+0x470/0x470 [ 60.020302][ T524] ? kfree+0x123/0x590 [ 60.020306][ T524] load_module+0x1424/0x1bb0 [ 60.020313][ T524] ? layout_and_allocate.isra.0+0x680/0x680 [ 60.020317][ T524] ? __ia32_sys_fsconfig+0x180/0x180 [ 60.020319][ T524] ? ovl_real_file+0x172/0x1e0 [ 60.020324][ T524] ? backing_file_read_iter+0x541/0x790 [ 60.020327][ T524] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 60.020330][ T524] init_module_from_file+0x11f/0x1a0 [ 60.020334][ T524] ? __do_sys_init_module+0x220/0x220 [ 60.020342][ T524] ? __rwlock_init+0x150/0x150 [ 60.020345][ T524] ? do_raw_spin_unlock+0x59/0x250 [ 60.020348][ T524] idempotent_init_module+0x37b/0x7c0 [ 60.020352][ T524] ? init_module_from_file+0x1a0/0x1a0 [ 60.020358][ T524] ? rcu_is_watching+0x16/0xd0 [ 60.020360][ T524] ? cap_capable+0x1d7/0x3d0 [ 60.020366][ T524] __x64_sys_finit_module+0xdf/0x190 [ 60.020368][ T524] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 60.020372][ T524] do_syscall_64+0xff/0x530 [ 60.020373][ T524] ? exc_page_fault+0xee/0x100 [ 60.020376][ T524] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 60.020378][ T524] RIP: 0033:0x7f853834737d [ 60.020382][ T524] 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 [ 60.020383][ T524] RSP: 002b:00007ffe09e8ba28 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 60.020386][ T524] RAX: ffffffffffffffda RBX: 000055ce87cad810 RCX: 00007f853834737d [ 60.020388][ T524] RDX: 0000000000000000 RSI: 000055ce58b21ffd RDI: 0000000000000000 [ 60.020389][ T524] RBP: 00007ffe09e8bac0 R08: 0000000000000000 R09: 0000000000000000 [ 60.020389][ T524] R10: 0000000000000000 R11: 0000000000000246 R12: 000055ce58b21ffd [ 60.020390][ T524] R13: 000055ce87cad960 R14: 0000000000040000 R15: 0000000000000000 [ 60.020397][ T524]