[ 12.444629][ T158] netconsole selftest: netcons_WnFYn [ 12.444662][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.444665][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 12.444667][ T158] preempt_count: 1, expected: 0 [ 12.444668][ T158] RCU nest depth: 0, expected: 0 [ 12.444669][ T158] locks held by bash/158: 4, last CPU#3: [ 12.444671][ T158] #0: ffffffff9fd99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.444685][ T158] #1: ffffffff9fd99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.444690][ T158] #2: ffffffff9fc89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.444694][ T158] #3: ffffffff9fc89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 12.444698][ T158] irq event stamp: 179290 [ 12.444700][ T158] hardirqs last enabled at (179289): [] irqentry_exit+0x21c/0x790 [ 12.444705][ T158] hardirqs last disabled at (179290): [] console_emit_next_record+0x3f8/0x4f0 [ 12.444707][ T158] softirqs last enabled at (179288): [] handle_softirqs+0x67c/0x900 [ 12.444711][ T158] softirqs last disabled at (179281): [] __irq_exit_rcu+0x145/0x1c0 [ 12.444714][ T158] Preemption disabled at: [ 12.444715][ T158] [] vprintk_emit+0x31b/0x3e0 [ 12.444720][ T158] CPU: 3 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.444724][ T158] Tainted: [W]=WARN [ 12.444725][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.444727][ T158] Call Trace: [ 12.444729][ T158] [ 12.444731][ T158] dump_stack_lvl+0x6f/0xa0 [ 12.444737][ T158] ? vprintk_emit+0x31b/0x3e0 [ 12.444739][ T158] __might_resched.cold+0x1fe/0x2c1 [ 12.444744][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.444747][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 12.444752][ T158] __kmalloc_noprof+0x443/0x760 [ 12.444755][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 12.444760][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 12.444763][ T158] alloc_buf.isra.0+0x4b/0x260 [ 12.444766][ T158] put_chars+0x1e1/0x2f0 [ 12.444769][ T158] ? __send_to_port+0x420/0x420 [ 12.444770][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 12.444774][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.444777][ T158] ? validate_chain+0x38b/0xc20 [ 12.444781][ T158] hvc_console_print+0x292/0x780 [ 12.444784][ T158] ? __lock_acquire+0x518/0xc20 [ 12.444786][ T158] ? __lock_acquire+0x518/0xc20 [ 12.444790][ T158] ? hvc_write+0x3a0/0x3a0 [ 12.444793][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.444796][ T158] ? lock_acquire+0x13c/0x160 [ 12.444800][ T158] console_emit_next_record+0x252/0x4f0 [ 12.444804][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 12.444808][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.444810][ T158] ? lock_acquire+0x13c/0x160 [ 12.444814][ T158] console_flush_one_record+0x46f/0x710 [ 12.444818][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 12.444820][ T158] ? __lock_acquire+0x518/0xc20 [ 12.444821][ T158] ? asm_fred_entrypoint_user+0xb/0x41 [ 12.444827][ T158] console_unlock+0xee/0x1f0 [ 12.444830][ T158] ? console_flush_one_record+0x710/0x710 [ 12.444831][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.444833][ T158] ? lock_acquire+0x60/0x160 [ 12.444837][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.444839][ T158] ? vprintk_emit+0x320/0x3e0 [ 12.444842][ T158] vprintk_emit+0x37c/0x3e0 [ 12.444845][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 12.444849][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 12.444854][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 12.444859][ T158] ? vprintk_emit.cold+0x107/0x107 [ 12.444863][ T158] ? __kmalloc_noprof+0x302/0x760 [ 12.444865][ T158] ? idr_get_free+0x830/0x830 [ 12.444868][ T158] ? devkmsg_write+0xd1/0x2c0 [ 12.444871][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 12.444874][ T158] devkmsg_write.cold+0x5a/0x8b [ 12.444877][ T158] ? vprintk_default+0x20/0x20 [ 12.444878][ T158] ? __lock_acquire+0x518/0xc20 [ 12.444881][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 12.444885][ T158] ? vprintk_default+0x20/0x20 [ 12.444888][ T158] new_sync_write+0x33e/0x760 [ 12.444893][ T158] ? new_sync_read+0x750/0x750 [ 12.444895][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.444903][ T158] vfs_write+0x6a2/0xbd0 [ 12.444907][ T158] ksys_write+0x116/0x250 [ 12.444910][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 12.444912][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 12.444914][ T158] ? rcu_is_watching+0x16/0xd0 [ 12.444918][ T158] do_syscall_64+0xff/0x530 [ 12.444919][ T158] ? exc_page_fault+0xee/0x100 [ 12.444923][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.444925][ T158] RIP: 0033:0x7fd326f2c54e [ 12.444929][ 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 [ 12.444931][ T158] RSP: 002b:00007ffd23297380 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 12.444934][ T158] RAX: ffffffffffffffda RBX: 00007fd3270ad580 RCX: 00007fd326f2c54e [ 12.444935][ T158] RDX: 0000000000000023 RSI: 0000562f8c062d20 RDI: 0000000000000001 [ 12.444936][ T158] RBP: 00007ffd23297390 R08: 0000000000000000 R09: 0000000000000000 [ 12.444937][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 12.444938][ T158] R13: 0000000000000023 R14: 0000562f8c062d20 R15: 0000000000000000 [ 12.444945][ T158] [ 15.932977][ T158] netconsole selftest: netcons_WnFYn [ 15.933011][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 15.933014][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 15.933016][ T158] preempt_count: 1, expected: 0 [ 15.933017][ T158] RCU nest depth: 0, expected: 0 [ 15.933019][ T158] locks held by bash/158: 4, last CPU#2: [ 15.933021][ T158] #0: ffffffff9fd99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 15.933036][ T158] #1: ffffffff9fd99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 15.933040][ T158] #2: ffffffff9fc89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 15.933045][ T158] #3: ffffffff9fc89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 15.933049][ T158] irq event stamp: 403358 [ 15.933051][ T158] hardirqs last enabled at (403357): [] __down_trylock_console_sem+0x86/0xa0 [ 15.933053][ T158] hardirqs last disabled at (403358): [] console_emit_next_record+0x3f8/0x4f0 [ 15.933055][ T158] softirqs last enabled at (403146): [] restore_fpregs_from_user+0x1cf/0x490 [ 15.933059][ T158] softirqs last disabled at (403144): [] restore_fpregs_from_user+0xc3/0x490 [ 15.933061][ T158] Preemption disabled at: [ 15.933062][ T158] [] vprintk_emit+0x31b/0x3e0 [ 15.933068][ T158] CPU: 2 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 15.933071][ T158] Tainted: [W]=WARN [ 15.933072][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.933075][ T158] Call Trace: [ 15.933076][ T158] [ 15.933078][ T158] dump_stack_lvl+0x6f/0xa0 [ 15.933083][ T158] ? vprintk_emit+0x31b/0x3e0 [ 15.933085][ T158] __might_resched.cold+0x1fe/0x2c1 [ 15.933090][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 15.933094][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 15.933099][ T158] __kmalloc_noprof+0x443/0x760 [ 15.933101][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 15.933107][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 15.933110][ T158] alloc_buf.isra.0+0x4b/0x260 [ 15.933113][ T158] put_chars+0x1e1/0x2f0 [ 15.933116][ T158] ? __send_to_port+0x420/0x420 [ 15.933117][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 15.933121][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.933124][ T158] ? validate_chain+0x38b/0xc20 [ 15.933128][ T158] hvc_console_print+0x292/0x780 [ 15.933131][ T158] ? __lock_acquire+0x518/0xc20 [ 15.933132][ T158] ? __lock_acquire+0x518/0xc20 [ 15.933137][ T158] ? hvc_write+0x3a0/0x3a0 [ 15.933140][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.933143][ T158] ? lock_acquire+0x13c/0x160 [ 15.933147][ T158] console_emit_next_record+0x252/0x4f0 [ 15.933150][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 15.933154][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.933157][ T158] ? lock_acquire+0x13c/0x160 [ 15.933160][ T158] console_flush_one_record+0x46f/0x710 [ 15.933164][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 15.933166][ T158] ? __lock_acquire+0x518/0xc20 [ 15.933171][ T158] console_unlock+0xee/0x1f0 [ 15.933174][ T158] ? console_flush_one_record+0x710/0x710 [ 15.933175][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.933177][ T158] ? lock_acquire+0x60/0x160 [ 15.933181][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 15.933182][ T158] ? vprintk_emit+0x320/0x3e0 [ 15.933186][ T158] vprintk_emit+0x37c/0x3e0 [ 15.933189][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 15.933192][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 15.933198][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 15.933202][ T158] ? vprintk_emit.cold+0x107/0x107 [ 15.933206][ T158] ? __kmalloc_noprof+0x302/0x760 [ 15.933208][ T158] ? idr_get_free+0x830/0x830 [ 15.933212][ T158] ? devkmsg_write+0xd1/0x2c0 [ 15.933215][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 15.933218][ T158] devkmsg_write.cold+0x5a/0x8b [ 15.933221][ T158] ? vprintk_default+0x20/0x20 [ 15.933223][ T158] ? __lock_acquire+0x518/0xc20 [ 15.933225][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 15.933230][ T158] ? vprintk_default+0x20/0x20 [ 15.933232][ T158] new_sync_write+0x33e/0x760 [ 15.933237][ T158] ? new_sync_read+0x750/0x750 [ 15.933238][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.933247][ T158] vfs_write+0x6a2/0xbd0 [ 15.933251][ T158] ksys_write+0x116/0x250 [ 15.933254][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 15.933256][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 15.933258][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.933262][ T158] do_syscall_64+0xff/0x530 [ 15.933264][ T158] ? exc_page_fault+0xee/0x100 [ 15.933267][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.933270][ T158] RIP: 0033:0x7fd326f2c54e [ 15.933274][ 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 [ 15.933275][ T158] RSP: 002b:00007ffd23297380 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 15.933279][ T158] RAX: ffffffffffffffda RBX: 00007fd3270ad580 RCX: 00007fd326f2c54e [ 15.933280][ T158] RDX: 0000000000000023 RSI: 0000562f8c062d20 RDI: 0000000000000001 [ 15.933281][ T158] RBP: 00007ffd23297390 R08: 0000000000000000 R09: 0000000000000000 [ 15.933282][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 15.933283][ T158] R13: 0000000000000023 R14: 0000562f8c062d20 R15: 0000000000000000 [ 15.933290][ T158]