[ 10.869516][ T158] netconsole selftest: netcons_R0OOJ [ 10.869537][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.869539][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 10.869541][ T158] preempt_count: 1, expected: 0 [ 10.869542][ T158] RCU nest depth: 0, expected: 0 [ 10.869543][ T158] locks held by bash/158: 4, last CPU#2: [ 10.869545][ T158] #0: ffffffff94b99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.869557][ T158] #1: ffffffff94b99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.869562][ T158] #2: ffffffff94a89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.869565][ T158] #3: ffffffff94a89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.869569][ T158] irq event stamp: 174718 [ 10.869571][ T158] hardirqs last enabled at (174717): [] __down_trylock_console_sem+0x86/0xa0 [ 10.869574][ T158] hardirqs last disabled at (174718): [] console_emit_next_record+0x3f8/0x4f0 [ 10.869576][ T158] softirqs last enabled at (174478): [] restore_fpregs_from_user+0x1cf/0x490 [ 10.869579][ T158] softirqs last disabled at (174476): [] restore_fpregs_from_user+0xc3/0x490 [ 10.869581][ T158] Preemption disabled at: [ 10.869582][ T158] [] vprintk_emit+0x31b/0x3e0 [ 10.869587][ T158] CPU: 2 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.869590][ T158] Tainted: [W]=WARN [ 10.869591][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.869593][ T158] Call Trace: [ 10.869595][ T158] [ 10.869596][ T158] dump_stack_lvl+0x6f/0xa0 [ 10.869601][ T158] ? vprintk_emit+0x31b/0x3e0 [ 10.869603][ T158] __might_resched.cold+0x1fe/0x2c1 [ 10.869608][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.869612][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 10.869617][ T158] __kmalloc_noprof+0x443/0x760 [ 10.869619][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 10.869624][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 10.869627][ T158] alloc_buf.isra.0+0x4b/0x260 [ 10.869630][ T158] put_chars+0x1e1/0x2f0 [ 10.869633][ T158] ? __send_to_port+0x420/0x420 [ 10.869634][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 10.869637][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.869640][ T158] ? validate_chain+0x38b/0xc20 [ 10.869645][ T158] hvc_console_print+0x292/0x780 [ 10.869648][ T158] ? __lock_acquire+0x518/0xc20 [ 10.869649][ T158] ? __lock_acquire+0x518/0xc20 [ 10.869654][ T158] ? hvc_write+0x3a0/0x3a0 [ 10.869657][ T158] ? rcu_is_watching+0x16/0xd0 [ 10.869660][ T158] ? lock_acquire+0x13c/0x160 [ 10.869663][ T158] console_emit_next_record+0x252/0x4f0 [ 10.869667][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 10.869671][ T158] ? rcu_is_watching+0x16/0xd0 [ 10.869674][ T158] ? lock_acquire+0x13c/0x160 [ 10.869677][ T158] console_flush_one_record+0x46f/0x710 [ 10.869682][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 10.869683][ T158] ? __lock_acquire+0x518/0xc20 [ 10.869688][ T158] console_unlock+0xee/0x1f0 [ 10.869691][ T158] ? console_flush_one_record+0x710/0x710 [ 10.869693][ T158] ? rcu_is_watching+0x16/0xd0 [ 10.869695][ T158] ? lock_acquire+0x60/0x160 [ 10.869698][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.869700][ T158] ? vprintk_emit+0x320/0x3e0 [ 10.869703][ T158] vprintk_emit+0x37c/0x3e0 [ 10.869706][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 10.869709][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 10.869715][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 10.869719][ T158] ? vprintk_emit.cold+0x107/0x107 [ 10.869723][ T158] ? __kmalloc_noprof+0x302/0x760 [ 10.869725][ T158] ? idr_get_free+0x830/0x830 [ 10.869729][ T158] ? devkmsg_write+0xd1/0x2c0 [ 10.869732][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 10.869735][ T158] devkmsg_write.cold+0x5a/0x8b [ 10.869737][ T158] ? vprintk_default+0x20/0x20 [ 10.869739][ T158] ? __lock_acquire+0x518/0xc20 [ 10.869741][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 10.869746][ T158] ? vprintk_default+0x20/0x20 [ 10.869748][ T158] new_sync_write+0x33e/0x760 [ 10.869753][ T158] ? new_sync_read+0x750/0x750 [ 10.869754][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.869763][ T158] vfs_write+0x6a2/0xbd0 [ 10.869767][ T158] ksys_write+0x116/0x250 [ 10.869770][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 10.869772][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 10.869774][ T158] ? rcu_is_watching+0x16/0xd0 [ 10.869778][ T158] do_syscall_64+0xff/0x530 [ 10.869780][ T158] ? exc_page_fault+0xee/0x100 [ 10.869783][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.869785][ T158] RIP: 0033:0x7efeda2c754e [ 10.869789][ T158] Code: 4d 89 d8 e8 b4 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa [ 10.869791][ T158] RSP: 002b:00007ffd053b79f0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 10.869794][ T158] RAX: ffffffffffffffda RBX: 00007efeda448580 RCX: 00007efeda2c754e [ 10.869795][ T158] RDX: 0000000000000023 RSI: 0000558b996b3d20 RDI: 0000000000000001 [ 10.869796][ T158] RBP: 00007ffd053b7a00 R08: 0000000000000000 R09: 0000000000000000 [ 10.869797][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 10.869798][ T158] R13: 0000000000000023 R14: 0000558b996b3d20 R15: 0000000000000000 [ 10.869806][ T158] [ 13.936659][ T158] netconsole selftest: netcons_R0OOJ [ 13.936679][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 13.936682][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 13.936683][ T158] preempt_count: 1, expected: 0 [ 13.936684][ T158] RCU nest depth: 0, expected: 0 [ 13.936685][ T158] locks held by bash/158: 4, last CPU#0: [ 13.936687][ T158] #0: ffffffff94b99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 13.936700][ T158] #1: ffffffff94b99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 13.936705][ T158] #2: ffffffff94a89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 13.936709][ T158] #3: ffffffff94a89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 13.936713][ T158] irq event stamp: 376430 [ 13.936715][ T158] hardirqs last enabled at (376429): [] __down_trylock_console_sem+0x86/0xa0 [ 13.936718][ T158] hardirqs last disabled at (376430): [] console_emit_next_record+0x3f8/0x4f0 [ 13.936720][ T158] softirqs last enabled at (376206): [] restore_fpregs_from_user+0x1cf/0x490 [ 13.936723][ T158] softirqs last disabled at (376204): [] restore_fpregs_from_user+0xc3/0x490 [ 13.936725][ T158] Preemption disabled at: [ 13.936726][ T158] [] vprintk_emit+0x31b/0x3e0 [ 13.936732][ T158] CPU: 0 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 13.936735][ T158] Tainted: [W]=WARN [ 13.936736][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.936738][ T158] Call Trace: [ 13.936740][ T158] [ 13.936742][ T158] dump_stack_lvl+0x6f/0xa0 [ 13.936747][ T158] ? vprintk_emit+0x31b/0x3e0 [ 13.936749][ T158] __might_resched.cold+0x1fe/0x2c1 [ 13.936754][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 13.936757][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 13.936762][ T158] __kmalloc_noprof+0x443/0x760 [ 13.936764][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 13.936770][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 13.936773][ T158] alloc_buf.isra.0+0x4b/0x260 [ 13.936776][ T158] put_chars+0x1e1/0x2f0 [ 13.936779][ T158] ? __send_to_port+0x420/0x420 [ 13.936780][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 13.936784][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.936787][ T158] ? validate_chain+0x38b/0xc20 [ 13.936791][ T158] hvc_console_print+0x292/0x780 [ 13.936794][ T158] ? __lock_acquire+0x518/0xc20 [ 13.936795][ T158] ? __lock_acquire+0x518/0xc20 [ 13.936800][ T158] ? hvc_write+0x3a0/0x3a0 [ 13.936803][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.936806][ T158] ? lock_acquire+0x13c/0x160 [ 13.936810][ T158] console_emit_next_record+0x252/0x4f0 [ 13.936814][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 13.936818][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.936820][ T158] ? lock_acquire+0x13c/0x160 [ 13.936824][ T158] console_flush_one_record+0x46f/0x710 [ 13.936828][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 13.936830][ T158] ? __lock_acquire+0x518/0xc20 [ 13.936835][ T158] console_unlock+0xee/0x1f0 [ 13.936838][ T158] ? console_flush_one_record+0x710/0x710 [ 13.936840][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.936842][ T158] ? lock_acquire+0x60/0x160 [ 13.936845][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 13.936847][ T158] ? vprintk_emit+0x320/0x3e0 [ 13.936850][ T158] vprintk_emit+0x37c/0x3e0 [ 13.936853][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 13.936857][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 13.936862][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 13.936867][ T158] ? vprintk_emit.cold+0x107/0x107 [ 13.936871][ T158] ? __kmalloc_noprof+0x302/0x760 [ 13.936872][ T158] ? idr_get_free+0x830/0x830 [ 13.936876][ T158] ? devkmsg_write+0xd1/0x2c0 [ 13.936880][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 13.936882][ T158] devkmsg_write.cold+0x5a/0x8b [ 13.936885][ T158] ? vprintk_default+0x20/0x20 [ 13.936887][ T158] ? __lock_acquire+0x518/0xc20 [ 13.936889][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 13.936894][ T158] ? vprintk_default+0x20/0x20 [ 13.936896][ T158] new_sync_write+0x33e/0x760 [ 13.936901][ T158] ? new_sync_read+0x750/0x750 [ 13.936903][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.936911][ T158] vfs_write+0x6a2/0xbd0 [ 13.936916][ T158] ksys_write+0x116/0x250 [ 13.936919][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 13.936920][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 13.936923][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.936927][ T158] do_syscall_64+0xff/0x530 [ 13.936929][ T158] ? exc_page_fault+0xee/0x100 [ 13.936932][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.936934][ T158] RIP: 0033:0x7efeda2c754e [ 13.936938][ T158] Code: 4d 89 d8 e8 b4 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa [ 13.936940][ T158] RSP: 002b:00007ffd053b79f0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 13.936943][ T158] RAX: ffffffffffffffda RBX: 00007efeda448580 RCX: 00007efeda2c754e [ 13.936945][ T158] RDX: 0000000000000023 RSI: 0000558b996b3d20 RDI: 0000000000000001 [ 13.936946][ T158] RBP: 00007ffd053b7a00 R08: 0000000000000000 R09: 0000000000000000 [ 13.936947][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 13.936948][ T158] R13: 0000000000000023 R14: 0000558b996b3d20 R15: 0000000000000000 [ 13.936955][ T158]