[ 12.110294][ T159] netconsole selftest: netcons_RTYhT [ 12.110318][ T159] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.110321][ T159] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 159, name: bash [ 12.110323][ T159] preempt_count: 1, expected: 0 [ 12.110324][ T159] RCU nest depth: 0, expected: 0 [ 12.110326][ T159] locks held by bash/159: 4, last CPU#1: [ 12.110329][ T159] #0: ffffffffa8f99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.110344][ T159] #1: ffffffffa8f99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.110351][ T159] #2: ffffffffa8e89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.110356][ T159] #3: ffffffffa8e89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 12.110362][ T159] irq event stamp: 175928 [ 12.110364][ T159] hardirqs last enabled at (175927): [] __down_trylock_console_sem+0x86/0xa0 [ 12.110368][ T159] hardirqs last disabled at (175928): [] console_emit_next_record+0x3f8/0x4f0 [ 12.110370][ T159] softirqs last enabled at (175684): [] restore_fpregs_from_user+0x1cf/0x490 [ 12.110375][ T159] softirqs last disabled at (175682): [] restore_fpregs_from_user+0xc3/0x490 [ 12.110378][ T159] Preemption disabled at: [ 12.110379][ T159] [] vprintk_emit+0x31b/0x3e0 [ 12.110386][ T159] CPU: 1 UID: 0 PID: 159 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.110390][ T159] Tainted: [W]=WARN [ 12.110391][ T159] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.110394][ T159] Call Trace: [ 12.110396][ T159] [ 12.110398][ T159] dump_stack_lvl+0x6f/0xa0 [ 12.110404][ T159] ? vprintk_emit+0x31b/0x3e0 [ 12.110407][ T159] __might_resched.cold+0x1fe/0x2c1 [ 12.110413][ T159] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.110418][ T159] ? __kmalloc_noprof+0xdb/0x760 [ 12.110424][ T159] __kmalloc_noprof+0x443/0x760 [ 12.110427][ T159] ? alloc_buf.isra.0+0x4b/0x260 [ 12.110435][ T159] ? do_raw_spin_unlock+0x59/0x250 [ 12.110438][ T159] alloc_buf.isra.0+0x4b/0x260 [ 12.110443][ T159] put_chars+0x1e1/0x2f0 [ 12.110447][ T159] ? __send_to_port+0x420/0x420 [ 12.110449][ T159] ? printk_get_next_message+0x2fe/0x7d0 [ 12.110453][ T159] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.110457][ T159] ? validate_chain+0x38b/0xc20 [ 12.110463][ T159] hvc_console_print+0x292/0x780 [ 12.110466][ T159] ? __lock_acquire+0x518/0xc20 [ 12.110468][ T159] ? __lock_acquire+0x518/0xc20 [ 12.110475][ T159] ? hvc_write+0x3a0/0x3a0 [ 12.110479][ T159] ? rcu_is_watching+0x16/0xd0 [ 12.110483][ T159] ? lock_acquire+0x13c/0x160 [ 12.110489][ T159] console_emit_next_record+0x252/0x4f0 [ 12.110494][ T159] ? devkmsg_read+0x4e0/0x4e0 [ 12.110501][ T159] ? rcu_is_watching+0x16/0xd0 [ 12.110504][ T159] ? lock_acquire+0x13c/0x160 [ 12.110509][ T159] console_flush_one_record+0x46f/0x710 [ 12.110515][ T159] ? console_emit_next_record+0x4f0/0x4f0 [ 12.110517][ T159] ? __lock_acquire+0x518/0xc20 [ 12.110525][ T159] console_unlock+0xee/0x1f0 [ 12.110528][ T159] ? console_flush_one_record+0x710/0x710 [ 12.110530][ T159] ? rcu_is_watching+0x16/0xd0 [ 12.110533][ T159] ? lock_acquire+0x60/0x160 [ 12.110538][ T159] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.110540][ T159] ? vprintk_emit+0x320/0x3e0 [ 12.110545][ T159] vprintk_emit+0x37c/0x3e0 [ 12.110549][ T159] ? wake_up_klogd_work_func+0x90/0x90 [ 12.110554][ T159] ? _copy_from_iter+0x1bb/0x1810 [ 12.110561][ T159] devkmsg_emit.constprop.0+0xbc/0xf1 [ 12.110566][ T159] ? vprintk_emit.cold+0x107/0x107 [ 12.110571][ T159] ? __kmalloc_noprof+0x302/0x760 [ 12.110574][ T159] ? idr_get_free+0x830/0x830 [ 12.110578][ T159] ? devkmsg_write+0xd1/0x2c0 [ 12.110583][ T159] ? _copy_from_iter+0x1bb/0x1810 [ 12.110586][ T159] devkmsg_write.cold+0x5a/0x8b [ 12.110590][ T159] ? vprintk_default+0x20/0x20 [ 12.110592][ T159] ? __lock_acquire+0x518/0xc20 [ 12.110595][ T159] ? vfs_lock_file+0x1b0/0x1b0 [ 12.110601][ T159] ? vprintk_default+0x20/0x20 [ 12.110604][ T159] new_sync_write+0x33e/0x760 [ 12.110611][ T159] ? new_sync_read+0x750/0x750 [ 12.110613][ T159] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.110625][ T159] vfs_write+0x6a2/0xbd0 [ 12.110631][ T159] ksys_write+0x116/0x250 [ 12.110634][ T159] ? __ia32_sys_read+0xc0/0xc0 [ 12.110637][ T159] ? do_raw_spin_unlock+0x59/0x250 [ 12.110640][ T159] ? rcu_is_watching+0x16/0xd0 [ 12.110645][ T159] do_syscall_64+0xff/0x530 [ 12.110648][ T159] ? exc_page_fault+0xee/0x100 [ 12.110652][ T159] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.110655][ T159] RIP: 0033:0x7f7df152354e [ 12.110659][ T159] 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 [ 12.110662][ T159] RSP: 002b:00007ffe89e87040 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 12.110665][ T159] RAX: ffffffffffffffda RBX: 00007f7df16a4580 RCX: 00007f7df152354e [ 12.110667][ T159] RDX: 0000000000000023 RSI: 0000555a030dbd20 RDI: 0000000000000001 [ 12.110669][ T159] RBP: 00007ffe89e87050 R08: 0000000000000000 R09: 0000000000000000 [ 12.110670][ T159] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 12.110671][ T159] R13: 0000000000000023 R14: 0000555a030dbd20 R15: 0000000000000000 [ 12.110681][ T159] [ 15.543844][ T159] netconsole selftest: netcons_RTYhT [ 15.543870][ T159] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 15.543873][ T159] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 159, name: bash [ 15.543875][ T159] preempt_count: 1, expected: 0 [ 15.543880][ T159] RCU nest depth: 0, expected: 0 [ 15.543881][ T159] locks held by bash/159: 4, last CPU#1: [ 15.543884][ T159] #0: ffffffffa8f99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 15.543898][ T159] #1: ffffffffa8f99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 15.543903][ T159] #2: ffffffffa8e89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 15.543908][ T159] #3: ffffffffa8e89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 15.543912][ T159] irq event stamp: 374820 [ 15.543914][ T159] hardirqs last enabled at (374819): [] __down_trylock_console_sem+0x86/0xa0 [ 15.543916][ T159] hardirqs last disabled at (374820): [] console_emit_next_record+0x3f8/0x4f0 [ 15.543918][ T159] softirqs last enabled at (374608): [] restore_fpregs_from_user+0x1cf/0x490 [ 15.543922][ T159] softirqs last disabled at (374606): [] restore_fpregs_from_user+0xc3/0x490 [ 15.543924][ T159] Preemption disabled at: [ 15.543925][ T159] [] vprintk_emit+0x31b/0x3e0 [ 15.543931][ T159] CPU: 1 UID: 0 PID: 159 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 15.543934][ T159] Tainted: [W]=WARN [ 15.543935][ T159] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.543938][ T159] Call Trace: [ 15.543939][ T159] [ 15.543941][ T159] dump_stack_lvl+0x6f/0xa0 [ 15.543946][ T159] ? vprintk_emit+0x31b/0x3e0 [ 15.543948][ T159] __might_resched.cold+0x1fe/0x2c1 [ 15.543953][ T159] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 15.543957][ T159] ? __kmalloc_noprof+0xdb/0x760 [ 15.543961][ T159] __kmalloc_noprof+0x443/0x760 [ 15.543964][ T159] ? alloc_buf.isra.0+0x4b/0x260 [ 15.543969][ T159] ? do_raw_spin_unlock+0x59/0x250 [ 15.543972][ T159] alloc_buf.isra.0+0x4b/0x260 [ 15.543975][ T159] put_chars+0x1e1/0x2f0 [ 15.543978][ T159] ? __send_to_port+0x420/0x420 [ 15.543980][ T159] ? printk_get_next_message+0x2fe/0x7d0 [ 15.543983][ T159] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.543986][ T159] ? validate_chain+0x38b/0xc20 [ 15.543990][ T159] hvc_console_print+0x292/0x780 [ 15.543993][ T159] ? __lock_acquire+0x518/0xc20 [ 15.543994][ T159] ? __lock_acquire+0x518/0xc20 [ 15.543999][ T159] ? hvc_write+0x3a0/0x3a0 [ 15.544002][ T159] ? rcu_is_watching+0x16/0xd0 [ 15.544005][ T159] ? lock_acquire+0x13c/0x160 [ 15.544009][ T159] console_emit_next_record+0x252/0x4f0 [ 15.544012][ T159] ? devkmsg_read+0x4e0/0x4e0 [ 15.544016][ T159] ? rcu_is_watching+0x16/0xd0 [ 15.544019][ T159] ? lock_acquire+0x13c/0x160 [ 15.544022][ T159] console_flush_one_record+0x46f/0x710 [ 15.544026][ T159] ? console_emit_next_record+0x4f0/0x4f0 [ 15.544028][ T159] ? __lock_acquire+0x518/0xc20 [ 15.544033][ T159] console_unlock+0xee/0x1f0 [ 15.544036][ T159] ? console_flush_one_record+0x710/0x710 [ 15.544037][ T159] ? rcu_is_watching+0x16/0xd0 [ 15.544040][ T159] ? lock_acquire+0x60/0x160 [ 15.544043][ T159] ? __down_trylock_console_sem+0x5e/0xa0 [ 15.544045][ T159] ? vprintk_emit+0x320/0x3e0 [ 15.544048][ T159] vprintk_emit+0x37c/0x3e0 [ 15.544051][ T159] ? wake_up_klogd_work_func+0x90/0x90 [ 15.544054][ T159] ? _copy_from_iter+0x1bb/0x1810 [ 15.544060][ T159] devkmsg_emit.constprop.0+0xbc/0xf1 [ 15.544064][ T159] ? vprintk_emit.cold+0x107/0x107 [ 15.544068][ T159] ? __kmalloc_noprof+0x302/0x760 [ 15.544069][ T159] ? idr_get_free+0x830/0x830 [ 15.544073][ T159] ? devkmsg_write+0xd1/0x2c0 [ 15.544076][ T159] ? _copy_from_iter+0x1bb/0x1810 [ 15.544079][ T159] devkmsg_write.cold+0x5a/0x8b [ 15.544082][ T159] ? vprintk_default+0x20/0x20 [ 15.544084][ T159] ? __lock_acquire+0x518/0xc20 [ 15.544086][ T159] ? vfs_lock_file+0x1b0/0x1b0 [ 15.544090][ T159] ? vprintk_default+0x20/0x20 [ 15.544093][ T159] new_sync_write+0x33e/0x760 [ 15.544098][ T159] ? new_sync_read+0x750/0x750 [ 15.544099][ T159] ? rcu_read_lock_any_held+0x3c/0x90 [ 15.544107][ T159] vfs_write+0x6a2/0xbd0 [ 15.544111][ T159] ksys_write+0x116/0x250 [ 15.544114][ T159] ? __ia32_sys_read+0xc0/0xc0 [ 15.544116][ T159] ? do_raw_spin_unlock+0x59/0x250 [ 15.544119][ T159] ? rcu_is_watching+0x16/0xd0 [ 15.544122][ T159] do_syscall_64+0xff/0x530 [ 15.544124][ T159] ? exc_page_fault+0xee/0x100 [ 15.544127][ T159] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.544130][ T159] RIP: 0033:0x7f7df152354e [ 15.544134][ T159] 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.544136][ T159] RSP: 002b:00007ffe89e87040 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 15.544139][ T159] RAX: ffffffffffffffda RBX: 00007f7df16a4580 RCX: 00007f7df152354e [ 15.544140][ T159] RDX: 0000000000000023 RSI: 0000555a030dbd20 RDI: 0000000000000001 [ 15.544142][ T159] RBP: 00007ffe89e87050 R08: 0000000000000000 R09: 0000000000000000 [ 15.544143][ T159] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 15.544144][ T159] R13: 0000000000000023 R14: 0000555a030dbd20 R15: 0000000000000000 [ 15.544151][ T159]