[ 9.467330][ T157] netconsole selftest: netcons_Vchno [ 9.467347][ T157] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.467349][ T157] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 157, name: bash [ 9.467351][ T157] preempt_count: 1, expected: 0 [ 9.467352][ T157] RCU nest depth: 0, expected: 0 [ 9.467353][ T157] locks held by bash/157: 4, last CPU#0: [ 9.467355][ T157] #0: ffffffffb3799cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.467368][ T157] #1: ffffffffb3799d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.467372][ T157] #2: ffffffffb3689660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.467376][ T157] #3: ffffffffb3689560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 9.467380][ T157] irq event stamp: 117676 [ 9.467382][ T157] hardirqs last enabled at (117675): [] __down_trylock_console_sem+0x86/0xa0 [ 9.467384][ T157] hardirqs last disabled at (117676): [] console_emit_next_record+0x3f8/0x4f0 [ 9.467386][ T157] softirqs last enabled at (117476): [] restore_fpregs_from_user+0x1cf/0x490 [ 9.467389][ T157] softirqs last disabled at (117474): [] restore_fpregs_from_user+0xc3/0x490 [ 9.467391][ T157] Preemption disabled at: [ 9.467392][ T157] [] vprintk_emit+0x31b/0x3e0 [ 9.467398][ T157] CPU: 0 UID: 0 PID: 157 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.467401][ T157] Tainted: [W]=WARN [ 9.467402][ T157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.467404][ T157] Call Trace: [ 9.467405][ T157] [ 9.467407][ T157] dump_stack_lvl+0x6f/0xa0 [ 9.467412][ T157] ? vprintk_emit+0x31b/0x3e0 [ 9.467414][ T157] __might_resched.cold+0x1fe/0x2c1 [ 9.467418][ T157] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.467422][ T157] ? __kmalloc_noprof+0xdb/0x760 [ 9.467427][ T157] __kmalloc_noprof+0x443/0x760 [ 9.467429][ T157] ? alloc_buf.isra.0+0x4b/0x260 [ 9.467435][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 9.467437][ T157] alloc_buf.isra.0+0x4b/0x260 [ 9.467440][ T157] put_chars+0x1e1/0x2f0 [ 9.467444][ T157] ? __send_to_port+0x420/0x420 [ 9.467445][ T157] ? printk_get_next_message+0x2fe/0x7d0 [ 9.467448][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.467451][ T157] ? validate_chain+0x38b/0xc20 [ 9.467456][ T157] hvc_console_print+0x292/0x780 [ 9.467459][ T157] ? __lock_acquire+0x518/0xc20 [ 9.467460][ T157] ? __lock_acquire+0x518/0xc20 [ 9.467464][ T157] ? hvc_write+0x3a0/0x3a0 [ 9.467467][ T157] ? rcu_is_watching+0x16/0xd0 [ 9.467470][ T157] ? lock_acquire+0x13c/0x160 [ 9.467474][ T157] console_emit_next_record+0x252/0x4f0 [ 9.467477][ T157] ? devkmsg_read+0x4e0/0x4e0 [ 9.467482][ T157] ? rcu_is_watching+0x16/0xd0 [ 9.467484][ T157] ? lock_acquire+0x13c/0x160 [ 9.467487][ T157] console_flush_one_record+0x46f/0x710 [ 9.467491][ T157] ? console_emit_next_record+0x4f0/0x4f0 [ 9.467493][ T157] ? __lock_acquire+0x518/0xc20 [ 9.467498][ T157] console_unlock+0xee/0x1f0 [ 9.467501][ T157] ? console_flush_one_record+0x710/0x710 [ 9.467502][ T157] ? rcu_is_watching+0x16/0xd0 [ 9.467504][ T157] ? lock_acquire+0x60/0x160 [ 9.467508][ T157] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.467509][ T157] ? vprintk_emit+0x320/0x3e0 [ 9.467513][ T157] vprintk_emit+0x37c/0x3e0 [ 9.467516][ T157] ? wake_up_klogd_work_func+0x90/0x90 [ 9.467519][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 9.467525][ T157] devkmsg_emit.constprop.0+0xbc/0xf1 [ 9.467529][ T157] ? vprintk_emit.cold+0x107/0x107 [ 9.467533][ T157] ? __kmalloc_noprof+0x302/0x760 [ 9.467535][ T157] ? idr_get_free+0x830/0x830 [ 9.467538][ T157] ? devkmsg_write+0xd1/0x2c0 [ 9.467541][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 9.467544][ T157] devkmsg_write.cold+0x5a/0x8b [ 9.467547][ T157] ? vprintk_default+0x20/0x20 [ 9.467548][ T157] ? __lock_acquire+0x518/0xc20 [ 9.467551][ T157] ? vfs_lock_file+0x1b0/0x1b0 [ 9.467555][ T157] ? vprintk_default+0x20/0x20 [ 9.467557][ T157] new_sync_write+0x33e/0x760 [ 9.467562][ T157] ? new_sync_read+0x750/0x750 [ 9.467564][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.467572][ T157] vfs_write+0x6a2/0xbd0 [ 9.467576][ T157] ksys_write+0x116/0x250 [ 9.467579][ T157] ? __ia32_sys_read+0xc0/0xc0 [ 9.467581][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 9.467583][ T157] ? rcu_is_watching+0x16/0xd0 [ 9.467586][ T157] do_syscall_64+0xff/0x530 [ 9.467589][ T157] ? exc_page_fault+0xee/0x100 [ 9.467592][ T157] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.467594][ T157] RIP: 0033:0x7f9a2eae354e [ 9.467598][ T157] 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 [ 9.467600][ T157] RSP: 002b:00007ffebd06b5a0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 9.467603][ T157] RAX: ffffffffffffffda RBX: 00007f9a2ec64580 RCX: 00007f9a2eae354e [ 9.467604][ T157] RDX: 0000000000000023 RSI: 000056296eca5490 RDI: 0000000000000001 [ 9.467605][ T157] RBP: 00007ffebd06b5b0 R08: 0000000000000000 R09: 0000000000000000 [ 9.467606][ T157] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 9.467607][ T157] R13: 0000000000000023 R14: 000056296eca5490 R15: 0000000000000000 [ 9.467614][ T157] [ 10.286805][ T157] netconsole selftest: netcons_Vchno