[ 11.361228][ T240] Mirror/redirect action on [ 11.361243][ T240] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.361246][ T240] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 240, name: modprobe [ 11.361247][ T240] preempt_count: 1, expected: 0 [ 11.361248][ T240] RCU nest depth: 0, expected: 0 [ 11.361249][ T240] locks held by modprobe/240: 4, last CPU#2: [ 11.361251][ T240] #0: ffffffff8c37ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.361262][ T240] #1: ffffffff8c37de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.361267][ T240] #2: ffffffff8c29d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.361271][ T240] #3: ffffffff8c29d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.361275][ T240] irq event stamp: 24032 [ 11.361276][ T240] hardirqs last enabled at (24031): [] __down_trylock_console_sem+0x86/0xa0 [ 11.361279][ T240] hardirqs last disabled at (24032): [] console_emit_next_record+0x3d4/0x4c0 [ 11.361281][ T240] softirqs last enabled at (23184): [] handle_softirqs+0x67c/0x900 [ 11.361285][ T240] softirqs last disabled at (23177): [] __irq_exit_rcu+0x145/0x1c0 [ 11.361287][ T240] Preemption disabled at: [ 11.361288][ T240] [] vprintk_emit+0x31b/0x3e0 [ 11.361292][ T240] CPU: 2 UID: 0 PID: 240 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.361296][ T240] Tainted: [W]=WARN [ 11.361297][ T240] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.361299][ T240] Call Trace: [ 11.361300][ T240] [ 11.361301][ T240] dump_stack_lvl+0x6f/0xa0 [ 11.361307][ T240] ? vprintk_emit+0x31b/0x3e0 [ 11.361309][ T240] __might_resched.cold+0x1fe/0x2c1 [ 11.361313][ T240] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.361317][ T240] ? __kmalloc_noprof+0xdb/0x760 [ 11.361321][ T240] __kmalloc_noprof+0x443/0x760 [ 11.361323][ T240] ? alloc_buf.isra.0+0x4b/0x260 [ 11.361329][ T240] ? do_raw_spin_unlock+0x59/0x250 [ 11.361332][ T240] alloc_buf.isra.0+0x4b/0x260 [ 11.361336][ T240] put_chars+0x1e1/0x2f0 [ 11.361338][ T240] ? __send_to_port+0x420/0x420 [ 11.361340][ T240] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.361343][ T240] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.361346][ T240] ? validate_chain+0x38b/0xc20 [ 11.361350][ T240] hvc_console_print+0x292/0x780 [ 11.361354][ T240] ? __lock_acquire+0x518/0xc20 [ 11.361359][ T240] ? hvc_write+0x3a0/0x3a0 [ 11.361362][ T240] ? rcu_is_watching+0x16/0xd0 [ 11.361366][ T240] console_emit_next_record+0x22f/0x4c0 [ 11.361370][ T240] ? devkmsg_read+0x4b0/0x4b0 [ 11.361372][ T240] ? console_flush_one_record+0x106/0x710 [ 11.361375][ T240] ? rcu_is_watching+0x16/0xd0 [ 11.361377][ T240] ? lock_acquire+0x13c/0x160 [ 11.361381][ T240] console_flush_one_record+0x46f/0x710 [ 11.361385][ T240] ? console_emit_next_record+0x4c0/0x4c0 [ 11.361387][ T240] ? __lock_acquire+0x518/0xc20 [ 11.361392][ T240] console_unlock+0xee/0x1f0 [ 11.361395][ T240] ? console_flush_one_record+0x710/0x710 [ 11.361396][ T240] ? rcu_is_watching+0x16/0xd0 [ 11.361398][ T240] ? lock_acquire+0xe0/0x160 [ 11.361401][ T240] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.361403][ T240] ? vprintk_emit+0x320/0x3e0 [ 11.361406][ T240] vprintk_emit+0x37c/0x3e0 [ 11.361409][ T240] ? wake_up_klogd_work_func+0x90/0x90 [ 11.361411][ T240] ? netdev_run_todo+0x2a8/0xfd0 [ 11.361414][ T240] ? mirred_device_event+0x3d/0x1d0 [act_mirred] [ 11.361419][ T240] ? mirred_cleanup_module+0x7f0/0x7f0 [act_mirred] [ 11.361421][ T240] _printk+0xc7/0x100 [ 11.361425][ T240] ? snapshot_read.cold+0x21/0x21 [ 11.361427][ T240] ? __lock_release.isra.0+0x69/0x1a0 [ 11.361429][ T240] ? mirred_cleanup_module+0x7f0/0x7f0 [act_mirred] [ 11.361431][ T240] ? __up_write+0x23d/0x5f0 [ 11.361432][ T240] ? __up_write+0x2e5/0x5f0 [ 11.361436][ T240] ? __up_write+0x2c7/0x5f0 [ 11.361438][ T240] mirred_init_module+0x28/0x1000 [act_mirred] [ 11.361441][ T240] do_one_initcall+0x124/0x4f0 [ 11.361444][ T240] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 11.361449][ T240] ? do_init_module+0xae/0x8a0 [ 11.361451][ T240] ? kasan_unpoison+0x44/0x70 [ 11.361457][ T240] do_init_module+0x2ad/0x8a0 [ 11.361460][ T240] ? lockdep_hardirqs_on+0x91/0x130 [ 11.361463][ T240] ? free_module+0x470/0x470 [ 11.361466][ T240] ? kfree+0x123/0x590 [ 11.361469][ T240] load_module+0x1424/0x1bb0 [ 11.361474][ T240] ? security_kernel_post_read_file+0x2f/0x60 [ 11.361479][ T240] ? layout_and_allocate.isra.0+0x680/0x680 [ 11.361482][ T240] ? __ia32_sys_fsconfig+0x180/0x180 [ 11.361485][ T240] ? find_held_lock+0x2b/0x80 [ 11.361488][ T240] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.361491][ T240] init_module_from_file+0x11f/0x1a0 [ 11.361493][ T240] ? __do_sys_init_module+0x270/0x270 [ 11.361500][ T240] ? __rwlock_init+0x150/0x150 [ 11.361504][ T240] ? do_raw_spin_unlock+0x59/0x250 [ 11.361507][ T240] idempotent_init_module+0x37b/0x7c0 [ 11.361509][ T240] ? init_module_from_file+0x1a0/0x1a0 [ 11.361514][ T240] ? cap_capable+0x1d7/0x3d0 [ 11.361516][ T240] ? exc_page_fault+0x87/0x100 [ 11.361521][ T240] __x64_sys_finit_module+0xdf/0x190 [ 11.361522][ T240] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 11.361526][ T240] do_syscall_64+0xff/0x530 [ 11.361529][ T240] ? exc_page_fault+0xee/0x100 [ 11.361532][ T240] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.361534][ T240] RIP: 0033:0x7f73b070a37d [ 11.361537][ T240] 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.361539][ T240] RSP: 002b:00007ffddc787ca8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 11.361541][ T240] RAX: ffffffffffffffda RBX: 000055b74065f810 RCX: 00007f73b070a37d [ 11.361543][ T240] RDX: 0000000000000000 RSI: 000055b72ec8fffd RDI: 0000000000000000 [ 11.361543][ T240] RBP: 00007ffddc787d40 R08: 0000000000000000 R09: 0000000000000000 [ 11.361545][ T240] R10: 0000000000000000 R11: 0000000000000246 R12: 000055b72ec8fffd [ 11.361545][ T240] R13: 000055b74065f960 R14: 0000000000040000 R15: 0000000000000000 [ 11.361552][ T240]