[ 10.062942][ T238] Mirror/redirect action on [ 10.062957][ T238] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.062959][ T238] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 238, name: modprobe [ 10.062961][ T238] preempt_count: 1, expected: 0 [ 10.062962][ T238] RCU nest depth: 0, expected: 0 [ 10.062963][ T238] locks held by modprobe/238: 4, last CPU#3: [ 10.062965][ T238] #0: ffffffff8e57ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.062976][ T238] #1: ffffffff8e57de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.062980][ T238] #2: ffffffff8e49d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.062984][ T238] #3: ffffffff8e49d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.062988][ T238] irq event stamp: 23362 [ 10.062989][ T238] hardirqs last enabled at (23361): [] __down_trylock_console_sem+0x86/0xa0 [ 10.062992][ T238] hardirqs last disabled at (23362): [] console_emit_next_record+0x3d4/0x4c0 [ 10.062994][ T238] softirqs last enabled at (16434): [] handle_softirqs+0x67c/0x900 [ 10.062998][ T238] softirqs last disabled at (16325): [] __irq_exit_rcu+0x145/0x1c0 [ 10.063000][ T238] Preemption disabled at: [ 10.063001][ T238] [] vprintk_emit+0x31b/0x3e0 [ 10.063006][ T238] CPU: 3 UID: 0 PID: 238 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.063009][ T238] Tainted: [W]=WARN [ 10.063010][ T238] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.063012][ T238] Call Trace: [ 10.063013][ T238] [ 10.063015][ T238] dump_stack_lvl+0x6f/0xa0 [ 10.063021][ T238] ? vprintk_emit+0x31b/0x3e0 [ 10.063022][ T238] __might_resched.cold+0x1fe/0x2c1 [ 10.063027][ T238] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.063031][ T238] ? __kmalloc_noprof+0xdb/0x760 [ 10.063035][ T238] __kmalloc_noprof+0x443/0x760 [ 10.063037][ T238] ? alloc_buf.isra.0+0x4b/0x260 [ 10.063043][ T238] ? do_raw_spin_unlock+0x59/0x250 [ 10.063046][ T238] alloc_buf.isra.0+0x4b/0x260 [ 10.063049][ T238] put_chars+0x1e1/0x2f0 [ 10.063052][ T238] ? __send_to_port+0x420/0x420 [ 10.063053][ T238] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.063056][ T238] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.063059][ T238] ? validate_chain+0x38b/0xc20 [ 10.063064][ T238] hvc_console_print+0x292/0x780 [ 10.063067][ T238] ? __lock_acquire+0x518/0xc20 [ 10.063072][ T238] ? hvc_write+0x3a0/0x3a0 [ 10.063075][ T238] ? rcu_is_watching+0x16/0xd0 [ 10.063079][ T238] console_emit_next_record+0x22f/0x4c0 [ 10.063083][ T238] ? devkmsg_read+0x4b0/0x4b0 [ 10.063085][ T238] ? console_flush_one_record+0x106/0x710 [ 10.063088][ T238] ? rcu_is_watching+0x16/0xd0 [ 10.063090][ T238] ? lock_acquire+0x13c/0x160 [ 10.063094][ T238] console_flush_one_record+0x46f/0x710 [ 10.063098][ T238] ? console_emit_next_record+0x4c0/0x4c0 [ 10.063100][ T238] ? __lock_acquire+0x518/0xc20 [ 10.063105][ T238] console_unlock+0xee/0x1f0 [ 10.063107][ T238] ? console_flush_one_record+0x710/0x710 [ 10.063109][ T238] ? rcu_is_watching+0x16/0xd0 [ 10.063111][ T238] ? lock_acquire+0xe0/0x160 [ 10.063114][ T238] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.063116][ T238] ? vprintk_emit+0x320/0x3e0 [ 10.063119][ T238] vprintk_emit+0x37c/0x3e0 [ 10.063122][ T238] ? wake_up_klogd_work_func+0x90/0x90 [ 10.063124][ T238] ? netdev_run_todo+0x2a8/0xfd0 [ 10.063127][ T238] ? mirred_device_event+0x3d/0x1d0 [act_mirred] [ 10.063131][ T238] ? mirred_cleanup_module+0x7f0/0x7f0 [act_mirred] [ 10.063134][ T238] _printk+0xc7/0x100 [ 10.063138][ T238] ? snapshot_read.cold+0x21/0x21 [ 10.063140][ T238] ? __lock_release.isra.0+0x69/0x1a0 [ 10.063142][ T238] ? mirred_cleanup_module+0x7f0/0x7f0 [act_mirred] [ 10.063144][ T238] ? __up_write+0x23d/0x5f0 [ 10.063146][ T238] ? __up_write+0x2e5/0x5f0 [ 10.063149][ T238] ? __up_write+0x2c7/0x5f0 [ 10.063151][ T238] mirred_init_module+0x28/0x1000 [act_mirred] [ 10.063154][ T238] do_one_initcall+0x124/0x4f0 [ 10.063157][ T238] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.063162][ T238] ? do_init_module+0xae/0x8a0 [ 10.063164][ T238] ? kasan_unpoison+0x44/0x70 [ 10.063172][ T238] do_init_module+0x2ad/0x8a0 [ 10.063175][ T238] ? lockdep_hardirqs_on+0x91/0x130 [ 10.063179][ T238] ? free_module+0x470/0x470 [ 10.063181][ T238] ? kfree+0x123/0x590 [ 10.063184][ T238] load_module+0x1424/0x1bb0 [ 10.063190][ T238] ? security_kernel_post_read_file+0x2f/0x60 [ 10.063194][ T238] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.063197][ T238] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.063201][ T238] ? backing_file_read_iter+0x541/0x790 [ 10.063205][ T238] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.063208][ T238] init_module_from_file+0x11f/0x1a0 [ 10.063210][ T238] ? __do_sys_init_module+0x270/0x270 [ 10.063218][ T238] ? __rwlock_init+0x150/0x150 [ 10.063221][ T238] ? do_raw_spin_unlock+0x59/0x250 [ 10.063224][ T238] idempotent_init_module+0x37b/0x7c0 [ 10.063227][ T238] ? init_module_from_file+0x1a0/0x1a0 [ 10.063232][ T238] ? cap_capable+0x1d7/0x3d0 [ 10.063235][ T238] ? __x64_sys_pread64+0x18d/0x250 [ 10.063240][ T238] __x64_sys_finit_module+0xdf/0x190 [ 10.063241][ T238] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.063245][ T238] do_syscall_64+0xff/0x530 [ 10.063248][ T238] ? exc_page_fault+0xee/0x100 [ 10.063250][ T238] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.063252][ T238] RIP: 0033:0x7fe57456737d [ 10.063255][ T238] 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 [ 10.063257][ T238] RSP: 002b:00007ffefea2ee88 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.063260][ T238] RAX: ffffffffffffffda RBX: 0000558e1ad40810 RCX: 00007fe57456737d [ 10.063261][ T238] RDX: 0000000000000000 RSI: 0000558ddb234ffd RDI: 0000000000000000 [ 10.063262][ T238] RBP: 00007ffefea2ef20 R08: 0000000000000000 R09: 0000000000000000 [ 10.063263][ T238] R10: 0000000000000000 R11: 0000000000000246 R12: 0000558ddb234ffd [ 10.063263][ T238] R13: 0000558e1ad40960 R14: 0000000000040000 R15: 0000000000000000 [ 10.063270][ T238]