[ 11.761121][ T158] netconsole selftest: netcons_tltZi [ 11.761148][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.761152][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 11.761154][ T158] preempt_count: 1, expected: 0 [ 11.761156][ T158] RCU nest depth: 0, expected: 0 [ 11.761158][ T158] locks held by bash/158: 4, last CPU#3: [ 11.761161][ T158] #0: ffffffff84999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.761177][ T158] #1: ffffffff84999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.761185][ T158] #2: ffffffff84889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.761192][ T158] #3: ffffffff84889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 11.761199][ T158] irq event stamp: 182266 [ 11.761201][ T158] hardirqs last enabled at (182265): [] __down_trylock_console_sem+0x86/0xa0 [ 11.761204][ T158] hardirqs last disabled at (182266): [] console_emit_next_record+0x3f8/0x4f0 [ 11.761207][ T158] softirqs last enabled at (182182): [] handle_softirqs+0x67c/0x900 [ 11.761212][ T158] softirqs last disabled at (182175): [] __irq_exit_rcu+0x145/0x1c0 [ 11.761216][ T158] Preemption disabled at: [ 11.761217][ T158] [] vprintk_emit+0x31b/0x3e0 [ 11.761225][ T158] CPU: 3 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.761230][ T158] Tainted: [W]=WARN [ 11.761231][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.761233][ T158] Call Trace: [ 11.761236][ T158] [ 11.761238][ T158] dump_stack_lvl+0x6f/0xa0 [ 11.761245][ T158] ? vprintk_emit+0x31b/0x3e0 [ 11.761248][ T158] __might_resched.cold+0x1fe/0x2c1 [ 11.761254][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.761260][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 11.761266][ T158] __kmalloc_noprof+0x443/0x760 [ 11.761270][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 11.761279][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 11.761282][ T158] alloc_buf.isra.0+0x4b/0x260 [ 11.761287][ T158] put_chars+0x1e1/0x2f0 [ 11.761292][ T158] ? __send_to_port+0x420/0x420 [ 11.761294][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 11.761300][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.761304][ T158] ? validate_chain+0x38b/0xc20 [ 11.761311][ T158] hvc_console_print+0x292/0x780 [ 11.761315][ T158] ? __lock_acquire+0x518/0xc20 [ 11.761318][ T158] ? __lock_acquire+0x518/0xc20 [ 11.761325][ T158] ? hvc_write+0x3a0/0x3a0 [ 11.761331][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.761335][ T158] ? lock_acquire+0x13c/0x160 [ 11.761343][ T158] console_emit_next_record+0x252/0x4f0 [ 11.761349][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 11.761356][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.761360][ T158] ? lock_acquire+0x13c/0x160 [ 11.761366][ T158] console_flush_one_record+0x46f/0x710 [ 11.761373][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 11.761375][ T158] ? __lock_acquire+0x518/0xc20 [ 11.761385][ T158] console_unlock+0xee/0x1f0 [ 11.761389][ T158] ? console_flush_one_record+0x710/0x710 [ 11.761391][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.761395][ T158] ? lock_acquire+0x60/0x160 [ 11.761401][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.761404][ T158] ? vprintk_emit+0x320/0x3e0 [ 11.761409][ T158] vprintk_emit+0x37c/0x3e0 [ 11.761415][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 11.761420][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 11.761428][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 11.761434][ T158] ? vprintk_emit.cold+0x107/0x107 [ 11.761440][ T158] ? __kmalloc_noprof+0x302/0x760 [ 11.761443][ T158] ? idr_get_free+0x830/0x830 [ 11.761448][ T158] ? devkmsg_write+0xd1/0x2c0 [ 11.761453][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 11.761457][ T158] devkmsg_write.cold+0x5a/0x8b [ 11.761462][ T158] ? vprintk_default+0x20/0x20 [ 11.761464][ T158] ? __lock_acquire+0x518/0xc20 [ 11.761468][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 11.761475][ T158] ? vprintk_default+0x20/0x20 [ 11.761479][ T158] new_sync_write+0x33e/0x760 [ 11.761486][ T158] ? new_sync_read+0x750/0x750 [ 11.761489][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.761503][ T158] vfs_write+0x6a2/0xbd0 [ 11.761510][ T158] ksys_write+0x116/0x250 [ 11.761515][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 11.761518][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 11.761522][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.761528][ T158] do_syscall_64+0xff/0x530 [ 11.761531][ T158] ? exc_page_fault+0xee/0x100 [ 11.761536][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.761540][ T158] RIP: 0033:0x7f9e094cf54e [ 11.761545][ 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 [ 11.761548][ T158] RSP: 002b:00007ffed483a450 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 11.761552][ T158] RAX: ffffffffffffffda RBX: 00007f9e09650580 RCX: 00007f9e094cf54e [ 11.761554][ T158] RDX: 0000000000000023 RSI: 0000556d66b5ad20 RDI: 0000000000000001 [ 11.761556][ T158] RBP: 00007ffed483a460 R08: 0000000000000000 R09: 0000000000000000 [ 11.761558][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 11.761559][ T158] R13: 0000000000000023 R14: 0000556d66b5ad20 R15: 0000000000000000 [ 11.761572][ T158] [ 15.133148][ T158] netconsole selftest: netcons_tltZi [ 15.133171][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 15.133173][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 15.133175][ T158] preempt_count: 1, expected: 0 [ 15.133176][ T158] RCU nest depth: 0, expected: 0 [ 15.133177][ T158] locks held by bash/158: 4, last CPU#2: [ 15.133180][ T158] #0: ffffffff84999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 15.133192][ T158] #1: ffffffff84999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 15.133197][ T158] #2: ffffffff84889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 15.133201][ T158] #3: ffffffff84889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 15.133205][ T158] irq event stamp: 359976 [ 15.133207][ T158] hardirqs last enabled at (359975): [] __down_trylock_console_sem+0x86/0xa0 [ 15.133210][ T158] hardirqs last disabled at (359976): [] console_emit_next_record+0x3f8/0x4f0 [ 15.133211][ T158] softirqs last enabled at (359776): [] handle_softirqs+0x67c/0x900 [ 15.133215][ T158] softirqs last disabled at (359769): [] __irq_exit_rcu+0x145/0x1c0 [ 15.133218][ T158] Preemption disabled at: [ 15.133219][ T158] [] vprintk_emit+0x31b/0x3e0 [ 15.133225][ T158] CPU: 2 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 15.133229][ T158] Tainted: [W]=WARN [ 15.133230][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.133231][ T158] Call Trace: [ 15.133233][ T158] [ 15.133235][ T158] dump_stack_lvl+0x6f/0xa0 [ 15.133241][ T158] ? vprintk_emit+0x31b/0x3e0 [ 15.133243][ T158] __might_resched.cold+0x1fe/0x2c1 [ 15.133248][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 15.133252][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 15.133256][ T158] __kmalloc_noprof+0x443/0x760 [ 15.133258][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 15.133264][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 15.133267][ T158] alloc_buf.isra.0+0x4b/0x260 [ 15.133270][ T158] put_chars+0x1e1/0x2f0 [ 15.133273][ T158] ? __send_to_port+0x420/0x420 [ 15.133275][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 15.133278][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.133281][ T158] ? validate_chain+0x38b/0xc20 [ 15.133285][ T158] hvc_console_print+0x292/0x780 [ 15.133288][ T158] ? __lock_acquire+0x518/0xc20 [ 15.133289][ T158] ? __lock_acquire+0x518/0xc20 [ 15.133294][ T158] ? hvc_write+0x3a0/0x3a0 [ 15.133297][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.133300][ T158] ? lock_acquire+0x13c/0x160 [ 15.133303][ T158] console_emit_next_record+0x252/0x4f0 [ 15.133307][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 15.133311][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.133313][ T158] ? lock_acquire+0x13c/0x160 [ 15.133317][ T158] console_flush_one_record+0x46f/0x710 [ 15.133321][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 15.133323][ T158] ? __lock_acquire+0x518/0xc20 [ 15.133328][ T158] console_unlock+0xee/0x1f0 [ 15.133330][ T158] ? console_flush_one_record+0x710/0x710 [ 15.133332][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.133334][ T158] ? lock_acquire+0x60/0x160 [ 15.133338][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 15.133339][ T158] ? vprintk_emit+0x320/0x3e0 [ 15.133343][ T158] vprintk_emit+0x37c/0x3e0 [ 15.133346][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 15.133349][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 15.133355][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 15.133359][ T158] ? vprintk_emit.cold+0x107/0x107 [ 15.133363][ T158] ? __kmalloc_noprof+0x302/0x760 [ 15.133365][ T158] ? idr_get_free+0x830/0x830 [ 15.133369][ T158] ? devkmsg_write+0xd1/0x2c0 [ 15.133372][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 15.133374][ T158] devkmsg_write.cold+0x5a/0x8b [ 15.133377][ T158] ? vprintk_default+0x20/0x20 [ 15.133379][ T158] ? __lock_acquire+0x518/0xc20 [ 15.133381][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 15.133386][ T158] ? vprintk_default+0x20/0x20 [ 15.133388][ T158] new_sync_write+0x33e/0x760 [ 15.133393][ T158] ? new_sync_read+0x750/0x750 [ 15.133395][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.133403][ T158] vfs_write+0x6a2/0xbd0 [ 15.133407][ T158] ksys_write+0x116/0x250 [ 15.133410][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 15.133412][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 15.133414][ T158] ? rcu_is_watching+0x16/0xd0 [ 15.133418][ T158] do_syscall_64+0xff/0x530 [ 15.133420][ T158] ? exc_page_fault+0xee/0x100 [ 15.133423][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.133425][ T158] RIP: 0033:0x7f9e094cf54e [ 15.133429][ 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.133431][ T158] RSP: 002b:00007ffed483a450 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 15.133434][ T158] RAX: ffffffffffffffda RBX: 00007f9e09650580 RCX: 00007f9e094cf54e [ 15.133436][ T158] RDX: 0000000000000023 RSI: 0000556d66b5ad20 RDI: 0000000000000001 [ 15.133437][ T158] RBP: 00007ffed483a460 R08: 0000000000000000 R09: 0000000000000000 [ 15.133438][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 15.133439][ T158] R13: 0000000000000023 R14: 0000556d66b5ad20 R15: 0000000000000000 [ 15.133446][ T158]