[ 10.362122][ T237] Mirror/redirect action on [ 10.362137][ T237] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.362140][ T237] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 237, name: modprobe [ 10.362141][ T237] preempt_count: 1, expected: 0 [ 10.362142][ T237] RCU nest depth: 0, expected: 0 [ 10.362143][ T237] locks held by modprobe/237: 4, last CPU#2: [ 10.362146][ T237] #0: ffffffff9957ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.362158][ T237] #1: ffffffff9957de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.362165][ T237] #2: ffffffff9949d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.362169][ T237] #3: ffffffff9949d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.362173][ T237] irq event stamp: 18914 [ 10.362173][ T237] hardirqs last enabled at (18913): [] __down_trylock_console_sem+0x86/0xa0 [ 10.362177][ T237] hardirqs last disabled at (18914): [] console_emit_next_record+0x3d4/0x4c0 [ 10.362179][ T237] softirqs last enabled at (17414): [] handle_softirqs+0x67c/0x900 [ 10.362183][ T237] softirqs last disabled at (16357): [] __irq_exit_rcu+0x145/0x1c0 [ 10.362185][ T237] Preemption disabled at: [ 10.362186][ T237] [] vprintk_emit+0x31b/0x3e0 [ 10.362191][ T237] CPU: 2 UID: 0 PID: 237 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.362194][ T237] Tainted: [W]=WARN [ 10.362195][ T237] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.362197][ T237] Call Trace: [ 10.362199][ T237] [ 10.362200][ T237] dump_stack_lvl+0x6f/0xa0 [ 10.362206][ T237] ? vprintk_emit+0x31b/0x3e0 [ 10.362208][ T237] __might_resched.cold+0x1fe/0x2c1 [ 10.362212][ T237] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.362216][ T237] ? __kmalloc_noprof+0xdb/0x760 [ 10.362221][ T237] __kmalloc_noprof+0x443/0x760 [ 10.362223][ T237] ? alloc_buf.isra.0+0x4b/0x260 [ 10.362230][ T237] ? do_raw_spin_unlock+0x59/0x250 [ 10.362233][ T237] alloc_buf.isra.0+0x4b/0x260 [ 10.362236][ T237] put_chars+0x1e1/0x2f0 [ 10.362239][ T237] ? __send_to_port+0x420/0x420 [ 10.362240][ T237] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.362244][ T237] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.362247][ T237] ? validate_chain+0x38b/0xc20 [ 10.362251][ T237] hvc_console_print+0x292/0x780 [ 10.362256][ T237] ? __lock_acquire+0x518/0xc20 [ 10.362261][ T237] ? hvc_write+0x3a0/0x3a0 [ 10.362264][ T237] ? rcu_is_watching+0x16/0xd0 [ 10.362268][ T237] console_emit_next_record+0x22f/0x4c0 [ 10.362272][ T237] ? devkmsg_read+0x4b0/0x4b0 [ 10.362274][ T237] ? console_flush_one_record+0x106/0x710 [ 10.362278][ T237] ? rcu_is_watching+0x16/0xd0 [ 10.362280][ T237] ? lock_acquire+0x13c/0x160 [ 10.362284][ T237] console_flush_one_record+0x46f/0x710 [ 10.362288][ T237] ? console_emit_next_record+0x4c0/0x4c0 [ 10.362290][ T237] ? __lock_acquire+0x518/0xc20 [ 10.362295][ T237] console_unlock+0xee/0x1f0 [ 10.362298][ T237] ? console_flush_one_record+0x710/0x710 [ 10.362300][ T237] ? rcu_is_watching+0x16/0xd0 [ 10.362301][ T237] ? lock_acquire+0xe0/0x160 [ 10.362305][ T237] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.362307][ T237] ? vprintk_emit+0x320/0x3e0 [ 10.362310][ T237] vprintk_emit+0x37c/0x3e0 [ 10.362313][ T237] ? wake_up_klogd_work_func+0x90/0x90 [ 10.362315][ T237] ? netdev_run_todo+0x2a8/0xfd0 [ 10.362319][ T237] ? mirred_device_event+0x3d/0x1d0 [act_mirred] [ 10.362324][ T237] ? mirred_cleanup_module+0x7f0/0x7f0 [act_mirred] [ 10.362326][ T237] _printk+0xc7/0x100 [ 10.362330][ T237] ? snapshot_read.cold+0x21/0x21 [ 10.362332][ T237] ? __lock_release.isra.0+0x69/0x1a0 [ 10.362335][ T237] ? mirred_cleanup_module+0x7f0/0x7f0 [act_mirred] [ 10.362337][ T237] ? __up_write+0x23d/0x5f0 [ 10.362338][ T237] ? __up_write+0x2e5/0x5f0 [ 10.362342][ T237] ? __up_write+0x2c7/0x5f0 [ 10.362344][ T237] mirred_init_module+0x28/0x1000 [act_mirred] [ 10.362347][ T237] do_one_initcall+0x124/0x4f0 [ 10.362351][ T237] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.362361][ T237] ? do_init_module+0xae/0x8a0 [ 10.362364][ T237] ? kasan_unpoison+0x44/0x70 [ 10.362370][ T237] do_init_module+0x2ad/0x8a0 [ 10.362373][ T237] ? lockdep_hardirqs_on+0x91/0x130 [ 10.362377][ T237] ? free_module+0x470/0x470 [ 10.362379][ T237] ? kfree+0x123/0x590 [ 10.362383][ T237] load_module+0x1424/0x1bb0 [ 10.362388][ T237] ? security_kernel_post_read_file+0x2f/0x60 [ 10.362393][ T237] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.362396][ T237] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.362400][ T237] ? backing_file_read_iter+0x541/0x790 [ 10.362404][ T237] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.362407][ T237] init_module_from_file+0x11f/0x1a0 [ 10.362410][ T237] ? __do_sys_init_module+0x270/0x270 [ 10.362418][ T237] ? __rwlock_init+0x150/0x150 [ 10.362421][ T237] ? do_raw_spin_unlock+0x59/0x250 [ 10.362424][ T237] idempotent_init_module+0x37b/0x7c0 [ 10.362427][ T237] ? init_module_from_file+0x1a0/0x1a0 [ 10.362433][ T237] ? cap_capable+0x1d7/0x3d0 [ 10.362435][ T237] ? __x64_sys_pread64+0x18d/0x250 [ 10.362440][ T237] __x64_sys_finit_module+0xdf/0x190 [ 10.362442][ T237] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.362446][ T237] do_syscall_64+0xff/0x530 [ 10.362449][ T237] ? exc_page_fault+0xee/0x100 [ 10.362452][ T237] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.362454][ T237] RIP: 0033:0x7f705036237d [ 10.362457][ T237] 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.362459][ T237] RSP: 002b:00007ffc6ba22e28 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.362462][ T237] RAX: ffffffffffffffda RBX: 000055688f9b3810 RCX: 00007f705036237d [ 10.362463][ T237] RDX: 0000000000000000 RSI: 0000556884ac9ffd RDI: 0000000000000000 [ 10.362465][ T237] RBP: 00007ffc6ba22ec0 R08: 0000000000000000 R09: 0000000000000000 [ 10.362465][ T237] R10: 0000000000000000 R11: 0000000000000246 R12: 0000556884ac9ffd [ 10.362466][ T237] R13: 000055688f9b3960 R14: 0000000000040000 R15: 0000000000000000 [ 10.362473][ T237] [ 10.407532][ T235] tc (235) used greatest stack depth: 24056 bytes left