[ 10.008360][ T238] Mirror/redirect action on [ 10.008379][ T238] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.008382][ T238] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 238, name: modprobe [ 10.008383][ T238] preempt_count: 1, expected: 0 [ 10.008384][ T238] RCU nest depth: 0, expected: 0 [ 10.008385][ T238] locks held by modprobe/238: 4, last CPU#0: [ 10.008387][ T238] #0: ffffffffb4b7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.008399][ T238] #1: ffffffffb4b7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.008404][ T238] #2: ffffffffb4a9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.008407][ T238] #3: ffffffffb4a9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.008412][ T238] irq event stamp: 18344 [ 10.008412][ T238] hardirqs last enabled at (18343): [] __down_trylock_console_sem+0x86/0xa0 [ 10.008415][ T238] hardirqs last disabled at (18344): [] console_emit_next_record+0x3d4/0x4c0 [ 10.008417][ T238] softirqs last enabled at (17304): [] handle_softirqs+0x67c/0x900 [ 10.008421][ T238] softirqs last disabled at (17295): [] __irq_exit_rcu+0x145/0x1c0 [ 10.008423][ T238] Preemption disabled at: [ 10.008424][ T238] [] vprintk_emit+0x31b/0x3e0 [ 10.008429][ T238] CPU: 0 UID: 0 PID: 238 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.008433][ T238] Tainted: [W]=WARN [ 10.008433][ T238] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.008435][ T238] Call Trace: [ 10.008437][ T238] [ 10.008438][ T238] dump_stack_lvl+0x6f/0xa0 [ 10.008444][ T238] ? vprintk_emit+0x31b/0x3e0 [ 10.008446][ T238] __might_resched.cold+0x1fe/0x2c1 [ 10.008450][ T238] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.008454][ T238] ? __kmalloc_noprof+0xdb/0x760 [ 10.008458][ T238] __kmalloc_noprof+0x443/0x760 [ 10.008460][ T238] ? alloc_buf.isra.0+0x4b/0x260 [ 10.008467][ T238] ? do_raw_spin_unlock+0x59/0x250 [ 10.008470][ T238] alloc_buf.isra.0+0x4b/0x260 [ 10.008474][ T238] put_chars+0x1e1/0x2f0 [ 10.008476][ T238] ? __send_to_port+0x420/0x420 [ 10.008477][ T238] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.008481][ T238] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.008484][ T238] ? validate_chain+0x38b/0xc20 [ 10.008488][ T238] hvc_console_print+0x292/0x780 [ 10.008492][ T238] ? __lock_acquire+0x518/0xc20 [ 10.008497][ T238] ? hvc_write+0x3a0/0x3a0 [ 10.008500][ T238] ? rcu_is_watching+0x16/0xd0 [ 10.008505][ T238] console_emit_next_record+0x22f/0x4c0 [ 10.008509][ T238] ? devkmsg_read+0x4b0/0x4b0 [ 10.008511][ T238] ? console_flush_one_record+0x106/0x710 [ 10.008514][ T238] ? rcu_is_watching+0x16/0xd0 [ 10.008515][ T238] ? lock_acquire+0x13c/0x160 [ 10.008519][ T238] console_flush_one_record+0x46f/0x710 [ 10.008523][ T238] ? console_emit_next_record+0x4c0/0x4c0 [ 10.008525][ T238] ? __lock_acquire+0x518/0xc20 [ 10.008530][ T238] console_unlock+0xee/0x1f0 [ 10.008533][ T238] ? console_flush_one_record+0x710/0x710 [ 10.008535][ T238] ? rcu_is_watching+0x16/0xd0 [ 10.008537][ T238] ? lock_acquire+0xe0/0x160 [ 10.008540][ T238] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.008542][ T238] ? vprintk_emit+0x320/0x3e0 [ 10.008545][ T238] vprintk_emit+0x37c/0x3e0 [ 10.008548][ T238] ? wake_up_klogd_work_func+0x90/0x90 [ 10.008550][ T238] ? netdev_run_todo+0x2a8/0xfd0 [ 10.008554][ T238] ? mirred_device_event+0x3d/0x1d0 [act_mirred] [ 10.008559][ T238] ? mirred_cleanup_module+0x7f0/0x7f0 [act_mirred] [ 10.008561][ T238] _printk+0xc7/0x100 [ 10.008565][ T238] ? snapshot_read.cold+0x21/0x21 [ 10.008567][ T238] ? __lock_release.isra.0+0x69/0x1a0 [ 10.008569][ T238] ? mirred_cleanup_module+0x7f0/0x7f0 [act_mirred] [ 10.008571][ T238] ? __up_write+0x23d/0x5f0 [ 10.008572][ T238] ? __up_write+0x2e5/0x5f0 [ 10.008576][ T238] ? __up_write+0x2c7/0x5f0 [ 10.008578][ T238] mirred_init_module+0x28/0x1000 [act_mirred] [ 10.008581][ T238] do_one_initcall+0x124/0x4f0 [ 10.008584][ T238] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.008589][ T238] ? do_init_module+0xae/0x8a0 [ 10.008591][ T238] ? kasan_unpoison+0x44/0x70 [ 10.008597][ T238] do_init_module+0x2ad/0x8a0 [ 10.008600][ T238] ? lockdep_hardirqs_on+0x91/0x130 [ 10.008604][ T238] ? free_module+0x470/0x470 [ 10.008606][ T238] ? kfree+0x123/0x590 [ 10.008610][ T238] load_module+0x1424/0x1bb0 [ 10.008615][ T238] ? security_kernel_post_read_file+0x2f/0x60 [ 10.008619][ T238] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.008622][ T238] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.008626][ T238] ? backing_file_read_iter+0x541/0x790 [ 10.008630][ T238] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.008633][ T238] init_module_from_file+0x11f/0x1a0 [ 10.008636][ T238] ? __do_sys_init_module+0x270/0x270 [ 10.008643][ T238] ? __rwlock_init+0x150/0x150 [ 10.008647][ T238] ? do_raw_spin_unlock+0x59/0x250 [ 10.008650][ T238] idempotent_init_module+0x37b/0x7c0 [ 10.008652][ T238] ? init_module_from_file+0x1a0/0x1a0 [ 10.008658][ T238] ? cap_capable+0x1d7/0x3d0 [ 10.008660][ T238] ? __x64_sys_pread64+0x18d/0x250 [ 10.008665][ T238] __x64_sys_finit_module+0xdf/0x190 [ 10.008666][ T238] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.008670][ T238] do_syscall_64+0xff/0x530 [ 10.008673][ T238] ? exc_page_fault+0xee/0x100 [ 10.008676][ T238] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.008678][ T238] RIP: 0033:0x7f627e11237d [ 10.008681][ 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.008683][ T238] RSP: 002b:00007fffbf2282b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.008685][ T238] RAX: ffffffffffffffda RBX: 00005569c4b04810 RCX: 00007f627e11237d [ 10.008687][ T238] RDX: 0000000000000000 RSI: 000055698be64ffd RDI: 0000000000000000 [ 10.008688][ T238] RBP: 00007fffbf228350 R08: 0000000000000000 R09: 0000000000000000 [ 10.008688][ T238] R10: 0000000000000000 R11: 0000000000000246 R12: 000055698be64ffd [ 10.008689][ T238] R13: 00005569c4b04960 R14: 0000000000040000 R15: 0000000000000000 [ 10.008696][ T238]