[ 10.046041][ T157] netconsole selftest: netcons_2CUad [ 10.046065][ T157] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.046067][ T157] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 157, name: bash [ 10.046069][ T157] preempt_count: 1, expected: 0 [ 10.046070][ T157] RCU nest depth: 0, expected: 0 [ 10.046071][ T157] locks held by bash/157: 4, last CPU#1: [ 10.046074][ T157] #0: ffffffff87999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.046086][ T157] #1: ffffffff87999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.046091][ T157] #2: ffffffff87889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.046095][ T157] #3: ffffffff87889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.046099][ T157] irq event stamp: 105652 [ 10.046101][ T157] hardirqs last enabled at (105651): [] __down_trylock_console_sem+0x86/0xa0 [ 10.046104][ T157] hardirqs last disabled at (105652): [] console_emit_next_record+0x3f8/0x4f0 [ 10.046106][ T157] softirqs last enabled at (105452): [] restore_fpregs_from_user+0x1cf/0x490 [ 10.046109][ T157] softirqs last disabled at (105450): [] restore_fpregs_from_user+0xc3/0x490 [ 10.046111][ T157] Preemption disabled at: [ 10.046112][ T157] [] vprintk_emit+0x31b/0x3e0 [ 10.046118][ T157] CPU: 1 UID: 0 PID: 157 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.046122][ T157] Tainted: [W]=WARN [ 10.046123][ T157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.046125][ T157] Call Trace: [ 10.046127][ T157] [ 10.046128][ T157] dump_stack_lvl+0x6f/0xa0 [ 10.046133][ T157] ? vprintk_emit+0x31b/0x3e0 [ 10.046135][ T157] __might_resched.cold+0x1fe/0x2c1 [ 10.046140][ T157] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.046144][ T157] ? __kmalloc_noprof+0xdb/0x760 [ 10.046149][ T157] __kmalloc_noprof+0x443/0x760 [ 10.046151][ T157] ? alloc_buf.isra.0+0x4b/0x260 [ 10.046157][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 10.046159][ T157] alloc_buf.isra.0+0x4b/0x260 [ 10.046163][ T157] put_chars+0x1e1/0x2f0 [ 10.046165][ T157] ? __send_to_port+0x420/0x420 [ 10.046167][ T157] ? printk_get_next_message+0x2fe/0x7d0 [ 10.046170][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.046173][ T157] ? validate_chain+0x38b/0xc20 [ 10.046177][ T157] hvc_console_print+0x292/0x780 [ 10.046180][ T157] ? __lock_acquire+0x518/0xc20 [ 10.046182][ T157] ? __lock_acquire+0x518/0xc20 [ 10.046186][ T157] ? hvc_write+0x3a0/0x3a0 [ 10.046189][ T157] ? rcu_is_watching+0x16/0xd0 [ 10.046192][ T157] ? lock_acquire+0x13c/0x160 [ 10.046195][ T157] console_emit_next_record+0x252/0x4f0 [ 10.046199][ T157] ? devkmsg_read+0x4e0/0x4e0 [ 10.046203][ T157] ? rcu_is_watching+0x16/0xd0 [ 10.046205][ T157] ? lock_acquire+0x13c/0x160 [ 10.046209][ T157] console_flush_one_record+0x46f/0x710 [ 10.046213][ T157] ? console_emit_next_record+0x4f0/0x4f0 [ 10.046214][ T157] ? __lock_acquire+0x518/0xc20 [ 10.046219][ T157] console_unlock+0xee/0x1f0 [ 10.046222][ T157] ? console_flush_one_record+0x710/0x710 [ 10.046223][ T157] ? rcu_is_watching+0x16/0xd0 [ 10.046226][ T157] ? lock_acquire+0x60/0x160 [ 10.046229][ T157] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.046230][ T157] ? vprintk_emit+0x320/0x3e0 [ 10.046234][ T157] vprintk_emit+0x37c/0x3e0 [ 10.046237][ T157] ? wake_up_klogd_work_func+0x90/0x90 [ 10.046240][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 10.046245][ T157] devkmsg_emit.constprop.0+0xbc/0xf1 [ 10.046249][ T157] ? vprintk_emit.cold+0x107/0x107 [ 10.046253][ T157] ? __kmalloc_noprof+0x302/0x760 [ 10.046255][ T157] ? idr_get_free+0x830/0x830 [ 10.046259][ T157] ? devkmsg_write+0xd1/0x2c0 [ 10.046262][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 10.046265][ T157] devkmsg_write.cold+0x5a/0x8b [ 10.046267][ T157] ? vprintk_default+0x20/0x20 [ 10.046269][ T157] ? __lock_acquire+0x518/0xc20 [ 10.046271][ T157] ? vfs_lock_file+0x1b0/0x1b0 [ 10.046276][ T157] ? vprintk_default+0x20/0x20 [ 10.046278][ T157] new_sync_write+0x33e/0x760 [ 10.046283][ T157] ? new_sync_read+0x750/0x750 [ 10.046284][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.046292][ T157] vfs_write+0x6a2/0xbd0 [ 10.046296][ T157] ksys_write+0x116/0x250 [ 10.046299][ T157] ? __ia32_sys_read+0xc0/0xc0 [ 10.046301][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 10.046303][ T157] ? rcu_is_watching+0x16/0xd0 [ 10.046307][ T157] do_syscall_64+0xff/0x530 [ 10.046309][ T157] ? exc_page_fault+0xee/0x100 [ 10.046312][ T157] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.046314][ T157] RIP: 0033:0x7f73016e554e [ 10.046318][ 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 [ 10.046320][ T157] RSP: 002b:00007fff8add7860 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 10.046323][ T157] RAX: ffffffffffffffda RBX: 00007f7301866580 RCX: 00007f73016e554e [ 10.046324][ T157] RDX: 0000000000000023 RSI: 0000562a01fe8490 RDI: 0000000000000001 [ 10.046326][ T157] RBP: 00007fff8add7870 R08: 0000000000000000 R09: 0000000000000000 [ 10.046326][ T157] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 10.046328][ T157] R13: 0000000000000023 R14: 0000562a01fe8490 R15: 0000000000000000 [ 10.046334][ T157] [ 10.878672][ T157] netconsole selftest: netcons_2CUad