[ 10.043265][ T158] netconsole selftest: netcons_Zoj6c [ 10.043286][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.043289][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 10.043291][ T158] preempt_count: 1, expected: 0 [ 10.043291][ T158] RCU nest depth: 0, expected: 0 [ 10.043292][ T158] locks held by bash/158: 4, last CPU#0: [ 10.043294][ T158] #0: ffffffffaf799cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.043307][ T158] #1: ffffffffaf799d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.043311][ T158] #2: ffffffffaf689660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.043315][ T158] #3: ffffffffaf689560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.043320][ T158] irq event stamp: 139290 [ 10.043321][ T158] hardirqs last enabled at (139289): [] __down_trylock_console_sem+0x86/0xa0 [ 10.043324][ T158] hardirqs last disabled at (139290): [] console_emit_next_record+0x3f8/0x4f0 [ 10.043326][ T158] softirqs last enabled at (139200): [] handle_softirqs+0x67c/0x900 [ 10.043329][ T158] softirqs last disabled at (139193): [] __irq_exit_rcu+0x145/0x1c0 [ 10.043332][ T158] Preemption disabled at: [ 10.043333][ T158] [] vprintk_emit+0x31b/0x3e0 [ 10.043339][ T158] CPU: 0 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.043342][ T158] Tainted: [W]=WARN [ 10.043344][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.043345][ T158] Call Trace: [ 10.043347][ T158] [ 10.043349][ T158] dump_stack_lvl+0x6f/0xa0 [ 10.043355][ T158] ? vprintk_emit+0x31b/0x3e0 [ 10.043357][ T158] __might_resched.cold+0x1fe/0x2c1 [ 10.043362][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.043365][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 10.043370][ T158] __kmalloc_noprof+0x443/0x760 [ 10.043372][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 10.043378][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 10.043380][ T158] alloc_buf.isra.0+0x4b/0x260 [ 10.043384][ T158] put_chars+0x1e1/0x2f0 [ 10.043386][ T158] ? __send_to_port+0x420/0x420 [ 10.043388][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 10.043391][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.043394][ T158] ? validate_chain+0x38b/0xc20 [ 10.043398][ T158] hvc_console_print+0x292/0x780 [ 10.043401][ T158] ? __lock_acquire+0x518/0xc20 [ 10.043403][ T158] ? __lock_acquire+0x518/0xc20 [ 10.043407][ T158] ? hvc_write+0x3a0/0x3a0 [ 10.043410][ T158] ? rcu_is_watching+0x16/0xd0 [ 10.043413][ T158] ? lock_acquire+0x13c/0x160 [ 10.043416][ T158] console_emit_next_record+0x252/0x4f0 [ 10.043420][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 10.043424][ T158] ? rcu_is_watching+0x16/0xd0 [ 10.043426][ T158] ? lock_acquire+0x13c/0x160 [ 10.043430][ T158] console_flush_one_record+0x46f/0x710 [ 10.043433][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 10.043435][ T158] ? __lock_acquire+0x518/0xc20 [ 10.043440][ T158] console_unlock+0xee/0x1f0 [ 10.043442][ T158] ? console_flush_one_record+0x710/0x710 [ 10.043444][ T158] ? rcu_is_watching+0x16/0xd0 [ 10.043446][ T158] ? lock_acquire+0x60/0x160 [ 10.043449][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.043451][ T158] ? vprintk_emit+0x320/0x3e0 [ 10.043454][ T158] vprintk_emit+0x37c/0x3e0 [ 10.043457][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 10.043460][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 10.043466][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 10.043470][ T158] ? vprintk_emit.cold+0x107/0x107 [ 10.043474][ T158] ? __kmalloc_noprof+0x302/0x760 [ 10.043476][ T158] ? idr_get_free+0x830/0x830 [ 10.043480][ T158] ? devkmsg_write+0xd1/0x2c0 [ 10.043483][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 10.043485][ T158] devkmsg_write.cold+0x5a/0x8b [ 10.043488][ T158] ? vprintk_default+0x20/0x20 [ 10.043490][ T158] ? __lock_acquire+0x518/0xc20 [ 10.043492][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 10.043496][ T158] ? vprintk_default+0x20/0x20 [ 10.043499][ T158] new_sync_write+0x33e/0x760 [ 10.043504][ T158] ? new_sync_read+0x750/0x750 [ 10.043505][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.043513][ T158] vfs_write+0x6a2/0xbd0 [ 10.043519][ T158] ksys_write+0x116/0x250 [ 10.043522][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 10.043524][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 10.043526][ T158] ? rcu_is_watching+0x16/0xd0 [ 10.043530][ T158] do_syscall_64+0xff/0x530 [ 10.043532][ T158] ? exc_page_fault+0xee/0x100 [ 10.043535][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.043537][ T158] RIP: 0033:0x7f4a2808654e [ 10.043541][ 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.043543][ T158] RSP: 002b:00007fffdee07f20 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 10.043546][ T158] RAX: ffffffffffffffda RBX: 00007f4a28207580 RCX: 00007f4a2808654e [ 10.043547][ T158] RDX: 0000000000000023 RSI: 0000557243bb9490 RDI: 0000000000000001 [ 10.043548][ T158] RBP: 00007fffdee07f30 R08: 0000000000000000 R09: 0000000000000000 [ 10.043549][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 10.043550][ T158] R13: 0000000000000023 R14: 0000557243bb9490 R15: 0000000000000000 [ 10.043557][ T158] [ 10.916380][ T158] netconsole selftest: netcons_Zoj6c