[ 10.856996][ T238] Mirror/redirect action on [ 10.857013][ T238] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.857016][ T238] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 238, name: modprobe [ 10.857018][ T238] preempt_count: 1, expected: 0 [ 10.857018][ T238] RCU nest depth: 0, expected: 0 [ 10.857019][ T238] locks held by modprobe/238: 4, last CPU#0: [ 10.857021][ T238] #0: ffffffffb8b7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.857033][ T238] #1: ffffffffb8b7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.857038][ T238] #2: ffffffffb8a9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.857042][ T238] #3: ffffffffb8a9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.857046][ T238] irq event stamp: 24994 [ 10.857047][ T238] hardirqs last enabled at (24993): [] __down_trylock_console_sem+0x86/0xa0 [ 10.857050][ T238] hardirqs last disabled at (24994): [] console_emit_next_record+0x3d4/0x4c0 [ 10.857052][ T238] softirqs last enabled at (23068): [] handle_softirqs+0x67c/0x900 [ 10.857055][ T238] softirqs last disabled at (22037): [] __irq_exit_rcu+0x145/0x1c0 [ 10.857057][ T238] Preemption disabled at: [ 10.857058][ T238] [] vprintk_emit+0x31b/0x3e0 [ 10.857063][ T238] CPU: 0 UID: 0 PID: 238 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.857066][ T238] Tainted: [W]=WARN [ 10.857067][ T238] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.857069][ T238] Call Trace: [ 10.857070][ T238] [ 10.857072][ T238] dump_stack_lvl+0x6f/0xa0 [ 10.857078][ T238] ? vprintk_emit+0x31b/0x3e0 [ 10.857080][ T238] __might_resched.cold+0x1fe/0x2c1 [ 10.857084][ T238] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.857088][ T238] ? __kmalloc_noprof+0xdb/0x760 [ 10.857093][ T238] __kmalloc_noprof+0x443/0x760 [ 10.857095][ T238] ? alloc_buf.isra.0+0x4b/0x260 [ 10.857102][ T238] ? do_raw_spin_unlock+0x59/0x250 [ 10.857105][ T238] alloc_buf.isra.0+0x4b/0x260 [ 10.857108][ T238] put_chars+0x1e1/0x2f0 [ 10.857111][ T238] ? __send_to_port+0x420/0x420 [ 10.857112][ T238] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.857116][ T238] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.857118][ T238] ? validate_chain+0x38b/0xc20 [ 10.857123][ T238] hvc_console_print+0x292/0x780 [ 10.857127][ T238] ? __lock_acquire+0x518/0xc20 [ 10.857132][ T238] ? hvc_write+0x3a0/0x3a0 [ 10.857136][ T238] ? rcu_is_watching+0x16/0xd0 [ 10.857140][ T238] console_emit_next_record+0x22f/0x4c0 [ 10.857144][ T238] ? devkmsg_read+0x4b0/0x4b0 [ 10.857146][ T238] ? console_flush_one_record+0x106/0x710 [ 10.857149][ T238] ? rcu_is_watching+0x16/0xd0 [ 10.857151][ T238] ? lock_acquire+0x13c/0x160 [ 10.857155][ T238] console_flush_one_record+0x46f/0x710 [ 10.857159][ T238] ? console_emit_next_record+0x4c0/0x4c0 [ 10.857161][ T238] ? __lock_acquire+0x518/0xc20 [ 10.857166][ T238] console_unlock+0xee/0x1f0 [ 10.857169][ T238] ? console_flush_one_record+0x710/0x710 [ 10.857171][ T238] ? rcu_is_watching+0x16/0xd0 [ 10.857172][ T238] ? lock_acquire+0xe0/0x160 [ 10.857176][ T238] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.857178][ T238] ? vprintk_emit+0x320/0x3e0 [ 10.857180][ T238] vprintk_emit+0x37c/0x3e0 [ 10.857184][ T238] ? wake_up_klogd_work_func+0x90/0x90 [ 10.857186][ T238] ? netdev_run_todo+0x2a8/0xfd0 [ 10.857189][ T238] ? mirred_device_event+0x3d/0x1d0 [act_mirred] [ 10.857195][ T238] ? mirred_cleanup_module+0x7f0/0x7f0 [act_mirred] [ 10.857197][ T238] _printk+0xc7/0x100 [ 10.857201][ T238] ? snapshot_read.cold+0x21/0x21 [ 10.857203][ T238] ? __lock_release.isra.0+0x69/0x1a0 [ 10.857206][ T238] ? mirred_cleanup_module+0x7f0/0x7f0 [act_mirred] [ 10.857207][ T238] ? __up_write+0x23d/0x5f0 [ 10.857209][ T238] ? __up_write+0x2e5/0x5f0 [ 10.857212][ T238] ? __up_write+0x2c7/0x5f0 [ 10.857215][ T238] mirred_init_module+0x28/0x1000 [act_mirred] [ 10.857218][ T238] do_one_initcall+0x124/0x4f0 [ 10.857221][ T238] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.857226][ T238] ? do_init_module+0xae/0x8a0 [ 10.857228][ T238] ? kasan_unpoison+0x44/0x70 [ 10.857233][ T238] do_init_module+0x2ad/0x8a0 [ 10.857236][ T238] ? lockdep_hardirqs_on+0x91/0x130 [ 10.857240][ T238] ? free_module+0x470/0x470 [ 10.857243][ T238] ? kfree+0x123/0x590 [ 10.857246][ T238] load_module+0x1424/0x1bb0 [ 10.857251][ T238] ? security_kernel_post_read_file+0x2f/0x60 [ 10.857256][ T238] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.857259][ T238] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.857264][ T238] ? backing_file_read_iter+0x541/0x790 [ 10.857267][ T238] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.857270][ T238] init_module_from_file+0x11f/0x1a0 [ 10.857273][ T238] ? __do_sys_init_module+0x270/0x270 [ 10.857280][ T238] ? __rwlock_init+0x150/0x150 [ 10.857284][ T238] ? do_raw_spin_unlock+0x59/0x250 [ 10.857287][ T238] idempotent_init_module+0x37b/0x7c0 [ 10.857290][ T238] ? init_module_from_file+0x1a0/0x1a0 [ 10.857295][ T238] ? cap_capable+0x1d7/0x3d0 [ 10.857298][ T238] ? __x64_sys_pread64+0x18d/0x250 [ 10.857303][ T238] __x64_sys_finit_module+0xdf/0x190 [ 10.857304][ T238] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.857308][ T238] do_syscall_64+0xff/0x530 [ 10.857311][ T238] ? irq_exit_rcu+0x1a/0x30 [ 10.857313][ T238] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.857316][ T238] RIP: 0033:0x7f8d8bb8037d [ 10.857319][ 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.857320][ T238] RSP: 002b:00007ffd27ed45f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.857323][ T238] RAX: ffffffffffffffda RBX: 00005631fdf3c810 RCX: 00007f8d8bb8037d [ 10.857325][ T238] RDX: 0000000000000000 RSI: 00005631c18c8ffd RDI: 0000000000000000 [ 10.857325][ T238] RBP: 00007ffd27ed4690 R08: 0000000000000000 R09: 0000000000000000 [ 10.857326][ T238] R10: 0000000000000000 R11: 0000000000000246 R12: 00005631c18c8ffd [ 10.857327][ T238] R13: 00005631fdf3c960 R14: 0000000000040000 R15: 0000000000000000 [ 10.857334][ T238]