[ 11.029335][ T159] netconsole selftest: netcons_JEbq6 [ 11.029360][ T159] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.029363][ T159] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 159, name: bash [ 11.029365][ T159] preempt_count: 1, expected: 0 [ 11.029366][ T159] RCU nest depth: 0, expected: 0 [ 11.029367][ T159] locks held by bash/159: 4, last CPU#3: [ 11.029369][ T159] #0: ffffffffbcd99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.029383][ T159] #1: ffffffffbcd99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.029388][ T159] #2: ffffffffbcc89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.029392][ T159] #3: ffffffffbcc89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 11.029396][ T159] irq event stamp: 117062 [ 11.029398][ T159] hardirqs last enabled at (117061): [] __down_trylock_console_sem+0x86/0xa0 [ 11.029401][ T159] hardirqs last disabled at (117062): [] console_emit_next_record+0x3f8/0x4f0 [ 11.029403][ T159] softirqs last enabled at (116862): [] restore_fpregs_from_user+0x1cf/0x490 [ 11.029407][ T159] softirqs last disabled at (116860): [] restore_fpregs_from_user+0xc3/0x490 [ 11.029409][ T159] Preemption disabled at: [ 11.029410][ T159] [] vprintk_emit+0x31b/0x3e0 [ 11.029416][ T159] CPU: 3 UID: 0 PID: 159 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.029420][ T159] Tainted: [W]=WARN [ 11.029421][ T159] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.029423][ T159] Call Trace: [ 11.029425][ T159] [ 11.029427][ T159] dump_stack_lvl+0x6f/0xa0 [ 11.029432][ T159] ? vprintk_emit+0x31b/0x3e0 [ 11.029434][ T159] __might_resched.cold+0x1fe/0x2c1 [ 11.029439][ T159] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.029443][ T159] ? __kmalloc_noprof+0xdb/0x760 [ 11.029448][ T159] __kmalloc_noprof+0x443/0x760 [ 11.029450][ T159] ? alloc_buf.isra.0+0x4b/0x260 [ 11.029456][ T159] ? do_raw_spin_unlock+0x59/0x250 [ 11.029459][ T159] alloc_buf.isra.0+0x4b/0x260 [ 11.029462][ T159] put_chars+0x1e1/0x2f0 [ 11.029465][ T159] ? __send_to_port+0x420/0x420 [ 11.029466][ T159] ? printk_get_next_message+0x2fe/0x7d0 [ 11.029470][ T159] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.029473][ T159] ? validate_chain+0x38b/0xc20 [ 11.029477][ T159] hvc_console_print+0x292/0x780 [ 11.029480][ T159] ? __lock_acquire+0x518/0xc20 [ 11.029481][ T159] ? __lock_acquire+0x518/0xc20 [ 11.029486][ T159] ? hvc_write+0x3a0/0x3a0 [ 11.029489][ T159] ? rcu_is_watching+0x16/0xd0 [ 11.029492][ T159] ? lock_acquire+0x13c/0x160 [ 11.029496][ T159] console_emit_next_record+0x252/0x4f0 [ 11.029499][ T159] ? devkmsg_read+0x4e0/0x4e0 [ 11.029503][ T159] ? rcu_is_watching+0x16/0xd0 [ 11.029505][ T159] ? lock_acquire+0x13c/0x160 [ 11.029509][ T159] console_flush_one_record+0x46f/0x710 [ 11.029513][ T159] ? console_emit_next_record+0x4f0/0x4f0 [ 11.029515][ T159] ? __lock_acquire+0x518/0xc20 [ 11.029519][ T159] console_unlock+0xee/0x1f0 [ 11.029522][ T159] ? console_flush_one_record+0x710/0x710 [ 11.029524][ T159] ? rcu_is_watching+0x16/0xd0 [ 11.029526][ T159] ? lock_acquire+0x60/0x160 [ 11.029529][ T159] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.029531][ T159] ? vprintk_emit+0x320/0x3e0 [ 11.029539][ T159] vprintk_emit+0x37c/0x3e0 [ 11.029542][ T159] ? wake_up_klogd_work_func+0x90/0x90 [ 11.029545][ T159] ? _copy_from_iter+0x1bb/0x1810 [ 11.029551][ T159] devkmsg_emit.constprop.0+0xbc/0xf1 [ 11.029556][ T159] ? vprintk_emit.cold+0x107/0x107 [ 11.029560][ T159] ? __kmalloc_noprof+0x302/0x760 [ 11.029561][ T159] ? idr_get_free+0x830/0x830 [ 11.029565][ T159] ? devkmsg_write+0xd1/0x2c0 [ 11.029568][ T159] ? _copy_from_iter+0x1bb/0x1810 [ 11.029571][ T159] devkmsg_write.cold+0x5a/0x8b [ 11.029574][ T159] ? vprintk_default+0x20/0x20 [ 11.029576][ T159] ? __lock_acquire+0x518/0xc20 [ 11.029578][ T159] ? vfs_lock_file+0x1b0/0x1b0 [ 11.029582][ T159] ? vprintk_default+0x20/0x20 [ 11.029585][ T159] new_sync_write+0x33e/0x760 [ 11.029590][ T159] ? new_sync_read+0x750/0x750 [ 11.029591][ T159] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.029599][ T159] vfs_write+0x6a2/0xbd0 [ 11.029603][ T159] ksys_write+0x116/0x250 [ 11.029606][ T159] ? __ia32_sys_read+0xc0/0xc0 [ 11.029608][ T159] ? do_raw_spin_unlock+0x59/0x250 [ 11.029611][ T159] ? rcu_is_watching+0x16/0xd0 [ 11.029614][ T159] do_syscall_64+0xff/0x530 [ 11.029616][ T159] ? exc_page_fault+0xee/0x100 [ 11.029620][ T159] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.029622][ T159] RIP: 0033:0x7f771c51754e [ 11.029626][ 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 [ 11.029628][ T159] RSP: 002b:00007ffd046f9160 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 11.029631][ T159] RAX: ffffffffffffffda RBX: 00007f771c698580 RCX: 00007f771c51754e [ 11.029633][ T159] RDX: 0000000000000023 RSI: 000055e96d963490 RDI: 0000000000000001 [ 11.029634][ T159] RBP: 00007ffd046f9170 R08: 0000000000000000 R09: 0000000000000000 [ 11.029635][ T159] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 11.029636][ T159] R13: 0000000000000023 R14: 000055e96d963490 R15: 0000000000000000 [ 11.029643][ T159] [ 12.164630][ T159] netconsole selftest: netcons_JEbq6 [ 12.164657][ T159] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.164661][ T159] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 159, name: bash [ 12.164663][ T159] preempt_count: 1, expected: 0 [ 12.164665][ T159] RCU nest depth: 0, expected: 0 [ 12.164667][ T159] locks held by bash/159: 4, last CPU#2: [ 12.164670][ T159] #0: ffffffffbcd99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.164687][ T159] #1: ffffffffbcd99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.164694][ T159] #2: ffffffffbcc89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.164701][ T159] #3: ffffffffbcc89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 12.164709][ T159] irq event stamp: 146620 [ 12.164711][ T159] hardirqs last enabled at (146619): [] __down_trylock_console_sem+0x86/0xa0 [ 12.164714][ T159] hardirqs last disabled at (146620): [] console_emit_next_record+0x3f8/0x4f0 [ 12.164717][ T159] softirqs last enabled at (146412): [] restore_fpregs_from_user+0x1cf/0x490 [ 12.164722][ T159] softirqs last disabled at (146410): [] restore_fpregs_from_user+0xc3/0x490 [ 12.164726][ T159] Preemption disabled at: [ 12.164727][ T159] [] vprintk_emit+0x31b/0x3e0 [ 12.164734][ T159] CPU: 2 UID: 0 PID: 159 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.164739][ T159] Tainted: [W]=WARN [ 12.164740][ T159] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.164744][ T159] Call Trace: [ 12.164746][ T159] [ 12.164749][ T159] dump_stack_lvl+0x6f/0xa0 [ 12.164756][ T159] ? vprintk_emit+0x31b/0x3e0 [ 12.164760][ T159] __might_resched.cold+0x1fe/0x2c1 [ 12.164766][ T159] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.164771][ T159] ? __kmalloc_noprof+0xdb/0x760 [ 12.164778][ T159] __kmalloc_noprof+0x443/0x760 [ 12.164782][ T159] ? alloc_buf.isra.0+0x4b/0x260 [ 12.164790][ T159] ? do_raw_spin_unlock+0x59/0x250 [ 12.164794][ T159] alloc_buf.isra.0+0x4b/0x260 [ 12.164799][ T159] put_chars+0x1e1/0x2f0 [ 12.164804][ T159] ? __send_to_port+0x420/0x420 [ 12.164806][ T159] ? printk_get_next_message+0x2fe/0x7d0 [ 12.164812][ T159] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.164816][ T159] ? validate_chain+0x38b/0xc20 [ 12.164823][ T159] hvc_console_print+0x292/0x780 [ 12.164827][ T159] ? __lock_acquire+0x518/0xc20 [ 12.164829][ T159] ? __lock_acquire+0x518/0xc20 [ 12.164837][ T159] ? hvc_write+0x3a0/0x3a0 [ 12.164842][ T159] ? rcu_is_watching+0x16/0xd0 [ 12.164847][ T159] ? lock_acquire+0x13c/0x160 [ 12.164853][ T159] console_emit_next_record+0x252/0x4f0 [ 12.164859][ T159] ? devkmsg_read+0x4e0/0x4e0 [ 12.164867][ T159] ? rcu_is_watching+0x16/0xd0 [ 12.164875][ T159] ? lock_acquire+0x13c/0x160 [ 12.164881][ T159] console_flush_one_record+0x46f/0x710 [ 12.164888][ T159] ? console_emit_next_record+0x4f0/0x4f0 [ 12.164891][ T159] ? __lock_acquire+0x518/0xc20 [ 12.164900][ T159] console_unlock+0xee/0x1f0 [ 12.164904][ T159] ? console_flush_one_record+0x710/0x710 [ 12.164907][ T159] ? rcu_is_watching+0x16/0xd0 [ 12.164910][ T159] ? lock_acquire+0x60/0x160 [ 12.164916][ T159] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.164918][ T159] ? vprintk_emit+0x320/0x3e0 [ 12.164924][ T159] vprintk_emit+0x37c/0x3e0 [ 12.164930][ T159] ? wake_up_klogd_work_func+0x90/0x90 [ 12.164935][ T159] ? _copy_from_iter+0x1bb/0x1810 [ 12.164944][ T159] devkmsg_emit.constprop.0+0xbc/0xf1 [ 12.164950][ T159] ? vprintk_emit.cold+0x107/0x107 [ 12.164957][ T159] ? __kmalloc_noprof+0x302/0x760 [ 12.164960][ T159] ? idr_get_free+0x830/0x830 [ 12.164965][ T159] ? devkmsg_write+0xd1/0x2c0 [ 12.164970][ T159] ? _copy_from_iter+0x1bb/0x1810 [ 12.164975][ T159] devkmsg_write.cold+0x5a/0x8b [ 12.164979][ T159] ? vprintk_default+0x20/0x20 [ 12.164982][ T159] ? __lock_acquire+0x518/0xc20 [ 12.164985][ T159] ? vfs_lock_file+0x1b0/0x1b0 [ 12.164992][ T159] ? vprintk_default+0x20/0x20 [ 12.164996][ T159] new_sync_write+0x33e/0x760 [ 12.165004][ T159] ? new_sync_read+0x750/0x750 [ 12.165006][ T159] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.165021][ T159] vfs_write+0x6a2/0xbd0 [ 12.165029][ T159] ksys_write+0x116/0x250 [ 12.165033][ T159] ? __ia32_sys_read+0xc0/0xc0 [ 12.165036][ T159] ? do_raw_spin_unlock+0x59/0x250 [ 12.165040][ T159] ? rcu_is_watching+0x16/0xd0 [ 12.165046][ T159] do_syscall_64+0xff/0x530 [ 12.165050][ T159] ? exc_page_fault+0xee/0x100 [ 12.165055][ T159] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.165058][ T159] RIP: 0033:0x7f771c51754e [ 12.165063][ 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.165066][ T159] RSP: 002b:00007ffd046f9160 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 12.165071][ T159] RAX: ffffffffffffffda RBX: 00007f771c698580 RCX: 00007f771c51754e [ 12.165073][ T159] RDX: 0000000000000023 RSI: 000055e96d963490 RDI: 0000000000000001 [ 12.165074][ T159] RBP: 00007ffd046f9170 R08: 0000000000000000 R09: 0000000000000000 [ 12.165076][ T159] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 12.165078][ T159] R13: 0000000000000023 R14: 000055e96d963490 R15: 0000000000000000 [ 12.165090][ T159]