[ 9.882761][ T221] Mirror/redirect action on [ 9.882774][ T221] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.882777][ T221] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 221, name: modprobe [ 9.882778][ T221] preempt_count: 1, expected: 0 [ 9.882779][ T221] RCU nest depth: 0, expected: 0 [ 9.882780][ T221] locks held by modprobe/221: 4, last CPU#2: [ 9.882782][ T221] #0: ffffffff9df7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.882793][ T221] #1: ffffffff9df7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.882798][ T221] #2: ffffffff9de9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.882801][ T221] #3: ffffffff9de9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.882806][ T221] irq event stamp: 15942 [ 9.882806][ T221] hardirqs last enabled at (15941): [] __down_trylock_console_sem+0x86/0xa0 [ 9.882810][ T221] hardirqs last disabled at (15942): [] console_emit_next_record+0x3d4/0x4c0 [ 9.882812][ T221] softirqs last enabled at (14746): [] handle_softirqs+0x67c/0x900 [ 9.882815][ T221] softirqs last disabled at (13841): [] __irq_exit_rcu+0x145/0x1c0 [ 9.882818][ T221] Preemption disabled at: [ 9.882818][ T221] [] vprintk_emit+0x31b/0x3e0 [ 9.882823][ T221] CPU: 2 UID: 0 PID: 221 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.882826][ T221] Tainted: [W]=WARN [ 9.882827][ T221] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.882829][ T221] Call Trace: [ 9.882830][ T221] [ 9.882832][ T221] dump_stack_lvl+0x6f/0xa0 [ 9.882837][ T221] ? vprintk_emit+0x31b/0x3e0 [ 9.882839][ T221] __might_resched.cold+0x1fe/0x2c1 [ 9.882844][ T221] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.882848][ T221] ? __kmalloc_noprof+0xdb/0x760 [ 9.882852][ T221] __kmalloc_noprof+0x443/0x760 [ 9.882854][ T221] ? alloc_buf.isra.0+0x4b/0x260 [ 9.882861][ T221] ? do_raw_spin_unlock+0x59/0x250 [ 9.882864][ T221] alloc_buf.isra.0+0x4b/0x260 [ 9.882867][ T221] put_chars+0x1e1/0x2f0 [ 9.882870][ T221] ? __send_to_port+0x420/0x420 [ 9.882871][ T221] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.882874][ T221] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.882877][ T221] ? validate_chain+0x38b/0xc20 [ 9.882882][ T221] hvc_console_print+0x292/0x780 [ 9.882886][ T221] ? __lock_acquire+0x518/0xc20 [ 9.882891][ T221] ? hvc_write+0x3a0/0x3a0 [ 9.882894][ T221] ? rcu_is_watching+0x16/0xd0 [ 9.882898][ T221] console_emit_next_record+0x22f/0x4c0 [ 9.882902][ T221] ? devkmsg_read+0x4b0/0x4b0 [ 9.882904][ T221] ? console_flush_one_record+0x106/0x710 [ 9.882907][ T221] ? rcu_is_watching+0x16/0xd0 [ 9.882909][ T221] ? lock_acquire+0x13c/0x160 [ 9.882913][ T221] console_flush_one_record+0x46f/0x710 [ 9.882917][ T221] ? console_emit_next_record+0x4c0/0x4c0 [ 9.882918][ T221] ? __lock_acquire+0x518/0xc20 [ 9.882923][ T221] console_unlock+0xee/0x1f0 [ 9.882926][ T221] ? console_flush_one_record+0x710/0x710 [ 9.882928][ T221] ? rcu_is_watching+0x16/0xd0 [ 9.882930][ T221] ? lock_acquire+0xe0/0x160 [ 9.882933][ T221] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.882935][ T221] ? vprintk_emit+0x320/0x3e0 [ 9.882938][ T221] vprintk_emit+0x37c/0x3e0 [ 9.882941][ T221] ? wake_up_klogd_work_func+0x90/0x90 [ 9.882943][ T221] ? netdev_run_todo+0x2a8/0xfd0 [ 9.882946][ T221] ? mirred_device_event+0x3d/0x1d0 [act_mirred] [ 9.882951][ T221] ? mirred_cleanup_module+0x7f0/0x7f0 [act_mirred] [ 9.882953][ T221] _printk+0xc7/0x100 [ 9.882957][ T221] ? snapshot_read.cold+0x21/0x21 [ 9.882958][ T221] ? __lock_release.isra.0+0x69/0x1a0 [ 9.882961][ T221] ? mirred_cleanup_module+0x7f0/0x7f0 [act_mirred] [ 9.882963][ T221] ? __up_write+0x23d/0x5f0 [ 9.882964][ T221] ? __up_write+0x2e5/0x5f0 [ 9.882968][ T221] ? __up_write+0x2c7/0x5f0 [ 9.882970][ T221] mirred_init_module+0x28/0x1000 [act_mirred] [ 9.882973][ T221] do_one_initcall+0x124/0x4f0 [ 9.882976][ T221] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.882981][ T221] ? do_init_module+0xae/0x8a0 [ 9.882983][ T221] ? kasan_unpoison+0x44/0x70 [ 9.882988][ T221] do_init_module+0x2ad/0x8a0 [ 9.882991][ T221] ? lockdep_hardirqs_on+0x91/0x130 [ 9.882995][ T221] ? free_module+0x470/0x470 [ 9.882998][ T221] ? kfree+0x123/0x590 [ 9.883001][ T221] load_module+0x1424/0x1bb0 [ 9.883006][ T221] ? security_kernel_post_read_file+0x2f/0x60 [ 9.883011][ T221] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.883014][ T221] ? __ia32_sys_fsconfig+0x180/0x180 [ 9.883017][ T221] ? backing_file_read_iter+0x541/0x790 [ 9.883021][ T221] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.883024][ T221] init_module_from_file+0x11f/0x1a0 [ 9.883027][ T221] ? __do_sys_init_module+0x270/0x270 [ 9.883034][ T221] ? __rwlock_init+0x150/0x150 [ 9.883038][ T221] ? do_raw_spin_unlock+0x59/0x250 [ 9.883041][ T221] idempotent_init_module+0x37b/0x7c0 [ 9.883043][ T221] ? init_module_from_file+0x1a0/0x1a0 [ 9.883048][ T221] ? cap_capable+0x1d7/0x3d0 [ 9.883051][ T221] ? __x64_sys_pread64+0x18d/0x250 [ 9.883056][ T221] __x64_sys_finit_module+0xdf/0x190 [ 9.883057][ T221] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.883061][ T221] do_syscall_64+0xff/0x530 [ 9.883064][ T221] ? exc_page_fault+0xee/0x100 [ 9.883067][ T221] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.883069][ T221] RIP: 0033:0x7f13ec91337d [ 9.883072][ T221] 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 [ 9.883074][ T221] RSP: 002b:00007ffdbfde6578 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.883077][ T221] RAX: ffffffffffffffda RBX: 000055c4d75a2810 RCX: 00007f13ec91337d [ 9.883078][ T221] RDX: 0000000000000000 RSI: 000055c4b8898ffd RDI: 0000000000000000 [ 9.883079][ T221] RBP: 00007ffdbfde6610 R08: 0000000000000000 R09: 0000000000000000 [ 9.883080][ T221] R10: 0000000000000000 R11: 0000000000000246 R12: 000055c4b8898ffd [ 9.883080][ T221] R13: 000055c4d75a2960 R14: 0000000000040000 R15: 0000000000000000 [ 9.883087][ T221]