[ 11.707049][ T158] netconsole selftest: netcons_vvfkS [ 11.707074][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.707076][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 11.707078][ T158] preempt_count: 1, expected: 0 [ 11.707079][ T158] RCU nest depth: 0, expected: 0 [ 11.707080][ T158] locks held by bash/158: 4, last CPU#1: [ 11.707083][ T158] #0: ffffffff9d199cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.707096][ T158] #1: ffffffff9d199d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.707101][ T158] #2: ffffffff9d089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.707105][ T158] #3: ffffffff9d089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 11.707113][ T158] irq event stamp: 186756 [ 11.707115][ T158] hardirqs last enabled at (186755): [] __down_trylock_console_sem+0x86/0xa0 [ 11.707117][ T158] hardirqs last disabled at (186756): [] console_emit_next_record+0x3f8/0x4f0 [ 11.707119][ T158] softirqs last enabled at (186508): [] restore_fpregs_from_user+0x1cf/0x490 [ 11.707123][ T158] softirqs last disabled at (186506): [] restore_fpregs_from_user+0xc3/0x490 [ 11.707126][ T158] Preemption disabled at: [ 11.707126][ T158] [] vprintk_emit+0x31b/0x3e0 [ 11.707132][ T158] CPU: 1 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.707136][ T158] Tainted: [W]=WARN [ 11.707137][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.707139][ T158] Call Trace: [ 11.707141][ T158] [ 11.707142][ T158] dump_stack_lvl+0x6f/0xa0 [ 11.707147][ T158] ? vprintk_emit+0x31b/0x3e0 [ 11.707150][ T158] __might_resched.cold+0x1fe/0x2c1 [ 11.707154][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.707158][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 11.707163][ T158] __kmalloc_noprof+0x443/0x760 [ 11.707165][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 11.707171][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 11.707174][ T158] alloc_buf.isra.0+0x4b/0x260 [ 11.707177][ T158] put_chars+0x1e1/0x2f0 [ 11.707180][ T158] ? __send_to_port+0x420/0x420 [ 11.707181][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 11.707185][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.707188][ T158] ? validate_chain+0x38b/0xc20 [ 11.707192][ T158] hvc_console_print+0x292/0x780 [ 11.707195][ T158] ? __lock_acquire+0x518/0xc20 [ 11.707197][ T158] ? __lock_acquire+0x518/0xc20 [ 11.707201][ T158] ? hvc_write+0x3a0/0x3a0 [ 11.707204][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.707208][ T158] ? lock_acquire+0x13c/0x160 [ 11.707211][ T158] console_emit_next_record+0x252/0x4f0 [ 11.707215][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 11.707220][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.707222][ T158] ? lock_acquire+0x13c/0x160 [ 11.707226][ T158] console_flush_one_record+0x46f/0x710 [ 11.707230][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 11.707231][ T158] ? __lock_acquire+0x518/0xc20 [ 11.707236][ T158] console_unlock+0xee/0x1f0 [ 11.707239][ T158] ? console_flush_one_record+0x710/0x710 [ 11.707241][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.707243][ T158] ? lock_acquire+0x60/0x160 [ 11.707246][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.707248][ T158] ? vprintk_emit+0x320/0x3e0 [ 11.707251][ T158] vprintk_emit+0x37c/0x3e0 [ 11.707255][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 11.707258][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 11.707264][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 11.707268][ T158] ? vprintk_emit.cold+0x107/0x107 [ 11.707272][ T158] ? __kmalloc_noprof+0x302/0x760 [ 11.707274][ T158] ? idr_get_free+0x830/0x830 [ 11.707278][ T158] ? devkmsg_write+0xd1/0x2c0 [ 11.707281][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 11.707284][ T158] devkmsg_write.cold+0x5a/0x8b [ 11.707286][ T158] ? vprintk_default+0x20/0x20 [ 11.707288][ T158] ? __lock_acquire+0x518/0xc20 [ 11.707290][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 11.707295][ T158] ? vprintk_default+0x20/0x20 [ 11.707297][ T158] new_sync_write+0x33e/0x760 [ 11.707302][ T158] ? new_sync_read+0x750/0x750 [ 11.707304][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.707312][ T158] vfs_write+0x6a2/0xbd0 [ 11.707316][ T158] ksys_write+0x116/0x250 [ 11.707319][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 11.707321][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 11.707323][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.707327][ T158] do_syscall_64+0xff/0x530 [ 11.707330][ T158] ? exc_page_fault+0xee/0x100 [ 11.707333][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.707335][ T158] RIP: 0033:0x7f79aaa9554e [ 11.707339][ 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.707341][ T158] RSP: 002b:00007ffdd3521bf0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 11.707344][ T158] RAX: ffffffffffffffda RBX: 00007f79aac16580 RCX: 00007f79aaa9554e [ 11.707346][ T158] RDX: 0000000000000023 RSI: 000055dffaf43d20 RDI: 0000000000000001 [ 11.707347][ T158] RBP: 00007ffdd3521c00 R08: 0000000000000000 R09: 0000000000000000 [ 11.707348][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 11.707349][ T158] R13: 0000000000000023 R14: 000055dffaf43d20 R15: 0000000000000000 [ 11.707355][ T158] [ 14.858253][ T158] netconsole selftest: netcons_vvfkS [ 14.858276][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 14.858279][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 14.858281][ T158] preempt_count: 1, expected: 0 [ 14.858282][ T158] RCU nest depth: 0, expected: 0 [ 14.858283][ T158] locks held by bash/158: 4, last CPU#2: [ 14.858286][ T158] #0: ffffffff9d199cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 14.858299][ T158] #1: ffffffff9d199d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 14.858304][ T158] #2: ffffffff9d089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 14.858309][ T158] #3: ffffffff9d089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 14.858313][ T158] irq event stamp: 377240 [ 14.858315][ T158] hardirqs last enabled at (377239): [] __down_trylock_console_sem+0x86/0xa0 [ 14.858317][ T158] hardirqs last disabled at (377240): [] console_emit_next_record+0x3f8/0x4f0 [ 14.858319][ T158] softirqs last enabled at (377112): [] handle_softirqs+0x67c/0x900 [ 14.858323][ T158] softirqs last disabled at (377107): [] __irq_exit_rcu+0x145/0x1c0 [ 14.858326][ T158] Preemption disabled at: [ 14.858327][ T158] [] vprintk_emit+0x31b/0x3e0 [ 14.858333][ T158] CPU: 2 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 14.858337][ T158] Tainted: [W]=WARN [ 14.858338][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.858340][ T158] Call Trace: [ 14.858342][ T158] [ 14.858343][ T158] dump_stack_lvl+0x6f/0xa0 [ 14.858349][ T158] ? vprintk_emit+0x31b/0x3e0 [ 14.858351][ T158] __might_resched.cold+0x1fe/0x2c1 [ 14.858356][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 14.858360][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 14.858364][ T158] __kmalloc_noprof+0x443/0x760 [ 14.858367][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 14.858373][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 14.858375][ T158] alloc_buf.isra.0+0x4b/0x260 [ 14.858379][ T158] put_chars+0x1e1/0x2f0 [ 14.858382][ T158] ? __send_to_port+0x420/0x420 [ 14.858383][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 14.858386][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 14.858389][ T158] ? validate_chain+0x38b/0xc20 [ 14.858394][ T158] hvc_console_print+0x292/0x780 [ 14.858401][ T158] ? __lock_acquire+0x518/0xc20 [ 14.858403][ T158] ? __lock_acquire+0x518/0xc20 [ 14.858407][ T158] ? hvc_write+0x3a0/0x3a0 [ 14.858410][ T158] ? rcu_is_watching+0x16/0xd0 [ 14.858413][ T158] ? lock_acquire+0x13c/0x160 [ 14.858417][ T158] console_emit_next_record+0x252/0x4f0 [ 14.858421][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 14.858425][ T158] ? rcu_is_watching+0x16/0xd0 [ 14.858428][ T158] ? lock_acquire+0x13c/0x160 [ 14.858431][ T158] console_flush_one_record+0x46f/0x710 [ 14.858435][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 14.858437][ T158] ? __lock_acquire+0x518/0xc20 [ 14.858442][ T158] console_unlock+0xee/0x1f0 [ 14.858445][ T158] ? console_flush_one_record+0x710/0x710 [ 14.858447][ T158] ? rcu_is_watching+0x16/0xd0 [ 14.858449][ T158] ? lock_acquire+0x60/0x160 [ 14.858452][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 14.858454][ T158] ? vprintk_emit+0x320/0x3e0 [ 14.858457][ T158] vprintk_emit+0x37c/0x3e0 [ 14.858461][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 14.858464][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 14.858470][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 14.858474][ T158] ? vprintk_emit.cold+0x107/0x107 [ 14.858478][ T158] ? __kmalloc_noprof+0x302/0x760 [ 14.858480][ T158] ? idr_get_free+0x830/0x830 [ 14.858484][ T158] ? devkmsg_write+0xd1/0x2c0 [ 14.858487][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 14.858489][ T158] devkmsg_write.cold+0x5a/0x8b [ 14.858492][ T158] ? vprintk_default+0x20/0x20 [ 14.858494][ T158] ? __lock_acquire+0x518/0xc20 [ 14.858496][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 14.858501][ T158] ? vprintk_default+0x20/0x20 [ 14.858503][ T158] new_sync_write+0x33e/0x760 [ 14.858508][ T158] ? new_sync_read+0x750/0x750 [ 14.858510][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 14.858517][ T158] vfs_write+0x6a2/0xbd0 [ 14.858522][ T158] ksys_write+0x116/0x250 [ 14.858525][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 14.858527][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 14.858529][ T158] ? rcu_is_watching+0x16/0xd0 [ 14.858533][ T158] do_syscall_64+0xff/0x530 [ 14.858535][ T158] ? exc_page_fault+0xee/0x100 [ 14.858538][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 14.858541][ T158] RIP: 0033:0x7f79aaa9554e [ 14.858545][ 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 [ 14.858547][ T158] RSP: 002b:00007ffdd3521bf0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 14.858550][ T158] RAX: ffffffffffffffda RBX: 00007f79aac16580 RCX: 00007f79aaa9554e [ 14.858551][ T158] RDX: 0000000000000023 RSI: 000055dffaf43d20 RDI: 0000000000000001 [ 14.858552][ T158] RBP: 00007ffdd3521c00 R08: 0000000000000000 R09: 0000000000000000 [ 14.858553][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 14.858554][ T158] R13: 0000000000000023 R14: 000055dffaf43d20 R15: 0000000000000000 [ 14.858561][ T158]