[ 10.732319][ T158] netconsole selftest: netcons_cgTv1 [ 10.732341][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.732343][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 10.732345][ T158] preempt_count: 1, expected: 0 [ 10.732346][ T158] RCU nest depth: 0, expected: 0 [ 10.732347][ T158] locks held by bash/158: 4, last CPU#3: [ 10.732350][ T158] #0: ffffffffbc399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.732363][ T158] #1: ffffffffbc399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.732368][ T158] #2: ffffffffbc289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.732372][ T158] #3: ffffffffbc289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.732377][ T158] irq event stamp: 168038 [ 10.732379][ T158] hardirqs last enabled at (168037): [] __down_trylock_console_sem+0x86/0xa0 [ 10.732381][ T158] hardirqs last disabled at (168038): [] console_emit_next_record+0x3f8/0x4f0 [ 10.732383][ T158] softirqs last enabled at (167790): [] restore_fpregs_from_user+0x1cf/0x490 [ 10.732386][ T158] softirqs last disabled at (167788): [] restore_fpregs_from_user+0xc3/0x490 [ 10.732389][ T158] Preemption disabled at: [ 10.732390][ T158] [] vprintk_emit+0x31b/0x3e0 [ 10.732395][ T158] CPU: 3 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.732398][ T158] Tainted: [W]=WARN [ 10.732399][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.732401][ T158] Call Trace: [ 10.732403][ T158] [ 10.732404][ T158] dump_stack_lvl+0x6f/0xa0 [ 10.732409][ T158] ? vprintk_emit+0x31b/0x3e0 [ 10.732411][ T158] __might_resched.cold+0x1fe/0x2c1 [ 10.732416][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.732420][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 10.732424][ T158] __kmalloc_noprof+0x443/0x760 [ 10.732427][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 10.732433][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 10.732435][ T158] alloc_buf.isra.0+0x4b/0x260 [ 10.732438][ T158] put_chars+0x1e1/0x2f0 [ 10.732441][ T158] ? __send_to_port+0x420/0x420 [ 10.732443][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 10.732446][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.732449][ T158] ? validate_chain+0x38b/0xc20 [ 10.732453][ T158] hvc_console_print+0x292/0x780 [ 10.732456][ T158] ? __lock_acquire+0x518/0xc20 [ 10.732458][ T158] ? __lock_acquire+0x518/0xc20 [ 10.732462][ T158] ? hvc_write+0x3a0/0x3a0 [ 10.732465][ T158] ? rcu_is_watching+0x16/0xd0 [ 10.732468][ T158] ? lock_acquire+0x13c/0x160 [ 10.732472][ T158] console_emit_next_record+0x252/0x4f0 [ 10.732476][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 10.732480][ T158] ? rcu_is_watching+0x16/0xd0 [ 10.732482][ T158] ? lock_acquire+0x13c/0x160 [ 10.732486][ T158] console_flush_one_record+0x46f/0x710 [ 10.732490][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 10.732492][ T158] ? __lock_acquire+0x518/0xc20 [ 10.732497][ T158] console_unlock+0xee/0x1f0 [ 10.732500][ T158] ? console_flush_one_record+0x710/0x710 [ 10.732501][ T158] ? rcu_is_watching+0x16/0xd0 [ 10.732504][ T158] ? lock_acquire+0x60/0x160 [ 10.732507][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.732509][ T158] ? vprintk_emit+0x320/0x3e0 [ 10.732512][ T158] vprintk_emit+0x37c/0x3e0 [ 10.732515][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 10.732519][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 10.732524][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 10.732528][ T158] ? vprintk_emit.cold+0x107/0x107 [ 10.732532][ T158] ? __kmalloc_noprof+0x302/0x760 [ 10.732534][ T158] ? idr_get_free+0x830/0x830 [ 10.732538][ T158] ? devkmsg_write+0xd1/0x2c0 [ 10.732541][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 10.732544][ T158] devkmsg_write.cold+0x5a/0x8b [ 10.732547][ T158] ? vprintk_default+0x20/0x20 [ 10.732549][ T158] ? __lock_acquire+0x518/0xc20 [ 10.732551][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 10.732555][ T158] ? vprintk_default+0x20/0x20 [ 10.732558][ T158] new_sync_write+0x33e/0x760 [ 10.732563][ T158] ? new_sync_read+0x750/0x750 [ 10.732564][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.732572][ T158] vfs_write+0x6a2/0xbd0 [ 10.732577][ T158] ksys_write+0x116/0x250 [ 10.732580][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 10.732581][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 10.732584][ T158] ? rcu_is_watching+0x16/0xd0 [ 10.732588][ T158] do_syscall_64+0xff/0x530 [ 10.732590][ T158] ? exc_page_fault+0xee/0x100 [ 10.732593][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.732595][ T158] RIP: 0033:0x7fceba2e454e [ 10.732604][ 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.732606][ T158] RSP: 002b:00007ffea2665c90 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 10.732610][ T158] RAX: ffffffffffffffda RBX: 00007fceba465580 RCX: 00007fceba2e454e [ 10.732611][ T158] RDX: 0000000000000023 RSI: 00005594924a1d20 RDI: 0000000000000001 [ 10.732612][ T158] RBP: 00007ffea2665ca0 R08: 0000000000000000 R09: 0000000000000000 [ 10.732613][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 10.732614][ T158] R13: 0000000000000023 R14: 00005594924a1d20 R15: 0000000000000000 [ 10.732621][ T158] [ 13.695675][ T158] netconsole selftest: netcons_cgTv1 [ 13.695691][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 13.695694][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 13.695695][ T158] preempt_count: 1, expected: 0 [ 13.695696][ T158] RCU nest depth: 0, expected: 0 [ 13.695697][ T158] locks held by bash/158: 4, last CPU#1: [ 13.695699][ T158] #0: ffffffffbc399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 13.695712][ T158] #1: ffffffffbc399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 13.695717][ T158] #2: ffffffffbc289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 13.695721][ T158] #3: ffffffffbc289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 13.695725][ T158] irq event stamp: 348590 [ 13.695727][ T158] hardirqs last enabled at (348589): [] __down_trylock_console_sem+0x86/0xa0 [ 13.695730][ T158] hardirqs last disabled at (348590): [] console_emit_next_record+0x3f8/0x4f0 [ 13.695731][ T158] softirqs last enabled at (348374): [] restore_fpregs_from_user+0x1cf/0x490 [ 13.695735][ T158] softirqs last disabled at (348372): [] restore_fpregs_from_user+0xc3/0x490 [ 13.695738][ T158] Preemption disabled at: [ 13.695738][ T158] [] vprintk_emit+0x31b/0x3e0 [ 13.695744][ T158] CPU: 1 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 13.695747][ T158] Tainted: [W]=WARN [ 13.695748][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.695750][ T158] Call Trace: [ 13.695752][ T158] [ 13.695753][ T158] dump_stack_lvl+0x6f/0xa0 [ 13.695758][ T158] ? vprintk_emit+0x31b/0x3e0 [ 13.695760][ T158] __might_resched.cold+0x1fe/0x2c1 [ 13.695765][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 13.695769][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 13.695773][ T158] __kmalloc_noprof+0x443/0x760 [ 13.695775][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 13.695781][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 13.695783][ T158] alloc_buf.isra.0+0x4b/0x260 [ 13.695786][ T158] put_chars+0x1e1/0x2f0 [ 13.695789][ T158] ? __send_to_port+0x420/0x420 [ 13.695790][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 13.695794][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.695796][ T158] ? validate_chain+0x38b/0xc20 [ 13.695801][ T158] hvc_console_print+0x292/0x780 [ 13.695803][ T158] ? __lock_acquire+0x518/0xc20 [ 13.695805][ T158] ? __lock_acquire+0x518/0xc20 [ 13.695809][ T158] ? hvc_write+0x3a0/0x3a0 [ 13.695812][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.695815][ T158] ? lock_acquire+0x13c/0x160 [ 13.695818][ T158] console_emit_next_record+0x252/0x4f0 [ 13.695822][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 13.695826][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.695828][ T158] ? lock_acquire+0x13c/0x160 [ 13.695832][ T158] console_flush_one_record+0x46f/0x710 [ 13.695835][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 13.695837][ T158] ? __lock_acquire+0x518/0xc20 [ 13.695842][ T158] console_unlock+0xee/0x1f0 [ 13.695844][ T158] ? console_flush_one_record+0x710/0x710 [ 13.695846][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.695848][ T158] ? lock_acquire+0x60/0x160 [ 13.695851][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 13.695853][ T158] ? vprintk_emit+0x320/0x3e0 [ 13.695856][ T158] vprintk_emit+0x37c/0x3e0 [ 13.695859][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 13.695862][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 13.695868][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 13.695872][ T158] ? vprintk_emit.cold+0x107/0x107 [ 13.695876][ T158] ? __kmalloc_noprof+0x302/0x760 [ 13.695877][ T158] ? idr_get_free+0x830/0x830 [ 13.695881][ T158] ? devkmsg_write+0xd1/0x2c0 [ 13.695884][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 13.695887][ T158] devkmsg_write.cold+0x5a/0x8b [ 13.695889][ T158] ? vprintk_default+0x20/0x20 [ 13.695891][ T158] ? __lock_acquire+0x518/0xc20 [ 13.695893][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 13.695897][ T158] ? vprintk_default+0x20/0x20 [ 13.695900][ T158] new_sync_write+0x33e/0x760 [ 13.695905][ T158] ? new_sync_read+0x750/0x750 [ 13.695906][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.695914][ T158] vfs_write+0x6a2/0xbd0 [ 13.695918][ T158] ksys_write+0x116/0x250 [ 13.695921][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 13.695922][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 13.695925][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.695928][ T158] do_syscall_64+0xff/0x530 [ 13.695930][ T158] ? exc_page_fault+0xee/0x100 [ 13.695933][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.695936][ T158] RIP: 0033:0x7fceba2e454e [ 13.695939][ 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 [ 13.695941][ T158] RSP: 002b:00007ffea2665c90 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 13.695944][ T158] RAX: ffffffffffffffda RBX: 00007fceba465580 RCX: 00007fceba2e454e [ 13.695945][ T158] RDX: 0000000000000023 RSI: 00005594924a1d20 RDI: 0000000000000001 [ 13.695946][ T158] RBP: 00007ffea2665ca0 R08: 0000000000000000 R09: 0000000000000000 [ 13.695947][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 13.695948][ T158] R13: 0000000000000023 R14: 00005594924a1d20 R15: 0000000000000000 [ 13.695955][ T158]