[ 11.007778][ T158] netconsole selftest: netcons_37x7K [ 11.007799][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.007802][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 11.007804][ T158] preempt_count: 1, expected: 0 [ 11.007804][ T158] RCU nest depth: 0, expected: 0 [ 11.007805][ T158] locks held by bash/158: 4, last CPU#1: [ 11.007807][ T158] #0: ffffffff9b399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.007820][ T158] #1: ffffffff9b399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.007825][ T158] #2: ffffffff9b289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.007829][ T158] #3: ffffffff9b289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 11.007833][ T158] irq event stamp: 162418 [ 11.007835][ T158] hardirqs last enabled at (162417): [] __down_trylock_console_sem+0x86/0xa0 [ 11.007837][ T158] hardirqs last disabled at (162418): [] console_emit_next_record+0x3f8/0x4f0 [ 11.007839][ T158] softirqs last enabled at (162170): [] restore_fpregs_from_user+0x1cf/0x490 [ 11.007842][ T158] softirqs last disabled at (162168): [] restore_fpregs_from_user+0xc3/0x490 [ 11.007844][ T158] Preemption disabled at: [ 11.007845][ T158] [] vprintk_emit+0x31b/0x3e0 [ 11.007850][ T158] CPU: 1 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.007853][ T158] Tainted: [W]=WARN [ 11.007854][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.007856][ T158] Call Trace: [ 11.007858][ T158] [ 11.007859][ T158] dump_stack_lvl+0x6f/0xa0 [ 11.007864][ T158] ? vprintk_emit+0x31b/0x3e0 [ 11.007866][ T158] __might_resched.cold+0x1fe/0x2c1 [ 11.007871][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.007875][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 11.007879][ T158] __kmalloc_noprof+0x443/0x760 [ 11.007881][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 11.007887][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 11.007889][ T158] alloc_buf.isra.0+0x4b/0x260 [ 11.007892][ T158] put_chars+0x1e1/0x2f0 [ 11.007895][ T158] ? __send_to_port+0x420/0x420 [ 11.007896][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 11.007900][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.007902][ T158] ? validate_chain+0x38b/0xc20 [ 11.007907][ T158] hvc_console_print+0x292/0x780 [ 11.007909][ T158] ? __lock_acquire+0x518/0xc20 [ 11.007911][ T158] ? __lock_acquire+0x518/0xc20 [ 11.007915][ T158] ? hvc_write+0x3a0/0x3a0 [ 11.007918][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.007921][ T158] ? lock_acquire+0x13c/0x160 [ 11.007924][ T158] console_emit_next_record+0x252/0x4f0 [ 11.007928][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 11.007932][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.007934][ T158] ? lock_acquire+0x13c/0x160 [ 11.007938][ T158] console_flush_one_record+0x46f/0x710 [ 11.007941][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 11.007943][ T158] ? __lock_acquire+0x518/0xc20 [ 11.007948][ T158] console_unlock+0xee/0x1f0 [ 11.007950][ T158] ? console_flush_one_record+0x710/0x710 [ 11.007952][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.007954][ T158] ? lock_acquire+0x60/0x160 [ 11.007957][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.007958][ T158] ? vprintk_emit+0x320/0x3e0 [ 11.007961][ T158] vprintk_emit+0x37c/0x3e0 [ 11.007965][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 11.007968][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 11.007973][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 11.007977][ T158] ? vprintk_emit.cold+0x107/0x107 [ 11.007981][ T158] ? __kmalloc_noprof+0x302/0x760 [ 11.007983][ T158] ? idr_get_free+0x830/0x830 [ 11.007986][ T158] ? devkmsg_write+0xd1/0x2c0 [ 11.007989][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 11.007992][ T158] devkmsg_write.cold+0x5a/0x8b [ 11.007995][ T158] ? vprintk_default+0x20/0x20 [ 11.007996][ T158] ? __lock_acquire+0x518/0xc20 [ 11.007998][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 11.008003][ T158] ? vprintk_default+0x20/0x20 [ 11.008005][ T158] new_sync_write+0x33e/0x760 [ 11.008010][ T158] ? new_sync_read+0x750/0x750 [ 11.008011][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.008019][ T158] vfs_write+0x6a2/0xbd0 [ 11.008023][ T158] ksys_write+0x116/0x250 [ 11.008026][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 11.008028][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 11.008030][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.008033][ T158] do_syscall_64+0xff/0x530 [ 11.008036][ T158] ? exc_page_fault+0xee/0x100 [ 11.008039][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.008041][ T158] RIP: 0033:0x7f95d9a0654e [ 11.008045][ 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.008047][ T158] RSP: 002b:00007ffee2cb3f50 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 11.008050][ T158] RAX: ffffffffffffffda RBX: 00007f95d9b87580 RCX: 00007f95d9a0654e [ 11.008051][ T158] RDX: 0000000000000023 RSI: 00005563a6aebd20 RDI: 0000000000000001 [ 11.008052][ T158] RBP: 00007ffee2cb3f60 R08: 0000000000000000 R09: 0000000000000000 [ 11.008053][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 11.008054][ T158] R13: 0000000000000023 R14: 00005563a6aebd20 R15: 0000000000000000 [ 11.008061][ T158] [ 13.942658][ T158] netconsole selftest: netcons_37x7K [ 13.942674][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 13.942676][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 13.942678][ T158] preempt_count: 1, expected: 0 [ 13.942679][ T158] RCU nest depth: 0, expected: 0 [ 13.942680][ T158] locks held by bash/158: 4, last CPU#1: [ 13.942682][ T158] #0: ffffffff9b399cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 13.942694][ T158] #1: ffffffff9b399d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 13.942699][ T158] #2: ffffffff9b289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 13.942703][ T158] #3: ffffffff9b289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 13.942707][ T158] irq event stamp: 368648 [ 13.942709][ T158] hardirqs last enabled at (368647): [] __down_trylock_console_sem+0x86/0xa0 [ 13.942711][ T158] hardirqs last disabled at (368648): [] console_emit_next_record+0x3f8/0x4f0 [ 13.942713][ T158] softirqs last enabled at (368450): [] restore_fpregs_from_user+0x1cf/0x490 [ 13.942717][ T158] softirqs last disabled at (368448): [] restore_fpregs_from_user+0xc3/0x490 [ 13.942719][ T158] Preemption disabled at: [ 13.942720][ T158] [] vprintk_emit+0x31b/0x3e0 [ 13.942725][ T158] CPU: 1 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 13.942729][ T158] Tainted: [W]=WARN [ 13.942729][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.942731][ T158] Call Trace: [ 13.942733][ T158] [ 13.942734][ T158] dump_stack_lvl+0x6f/0xa0 [ 13.942740][ T158] ? vprintk_emit+0x31b/0x3e0 [ 13.942742][ T158] __might_resched.cold+0x1fe/0x2c1 [ 13.942746][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 13.942750][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 13.942755][ T158] __kmalloc_noprof+0x443/0x760 [ 13.942757][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 13.942763][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 13.942765][ T158] alloc_buf.isra.0+0x4b/0x260 [ 13.942768][ T158] put_chars+0x1e1/0x2f0 [ 13.942771][ T158] ? __send_to_port+0x420/0x420 [ 13.942772][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 13.942775][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.942778][ T158] ? validate_chain+0x38b/0xc20 [ 13.942782][ T158] hvc_console_print+0x292/0x780 [ 13.942785][ T158] ? __lock_acquire+0x518/0xc20 [ 13.942786][ T158] ? __lock_acquire+0x518/0xc20 [ 13.942790][ T158] ? hvc_write+0x3a0/0x3a0 [ 13.942793][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.942796][ T158] ? lock_acquire+0x13c/0x160 [ 13.942800][ T158] console_emit_next_record+0x252/0x4f0 [ 13.942803][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 13.942807][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.942809][ T158] ? lock_acquire+0x13c/0x160 [ 13.942813][ T158] console_flush_one_record+0x46f/0x710 [ 13.942817][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 13.942818][ T158] ? __lock_acquire+0x518/0xc20 [ 13.942823][ T158] console_unlock+0xee/0x1f0 [ 13.942826][ T158] ? console_flush_one_record+0x710/0x710 [ 13.942827][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.942829][ T158] ? lock_acquire+0x60/0x160 [ 13.942833][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 13.942834][ T158] ? vprintk_emit+0x320/0x3e0 [ 13.942837][ T158] vprintk_emit+0x37c/0x3e0 [ 13.942840][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 13.942843][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 13.942849][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 13.942853][ T158] ? vprintk_emit.cold+0x107/0x107 [ 13.942857][ T158] ? __kmalloc_noprof+0x302/0x760 [ 13.942859][ T158] ? idr_get_free+0x830/0x830 [ 13.942863][ T158] ? devkmsg_write+0xd1/0x2c0 [ 13.942865][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 13.942868][ T158] devkmsg_write.cold+0x5a/0x8b [ 13.942871][ T158] ? vprintk_default+0x20/0x20 [ 13.942872][ T158] ? __lock_acquire+0x518/0xc20 [ 13.942874][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 13.942879][ T158] ? vprintk_default+0x20/0x20 [ 13.942881][ T158] new_sync_write+0x33e/0x760 [ 13.942886][ T158] ? new_sync_read+0x750/0x750 [ 13.942887][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.942895][ T158] vfs_write+0x6a2/0xbd0 [ 13.942899][ T158] ksys_write+0x116/0x250 [ 13.942902][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 13.942904][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 13.942906][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.942909][ T158] do_syscall_64+0xff/0x530 [ 13.942912][ T158] ? exc_page_fault+0xee/0x100 [ 13.942915][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.942917][ T158] RIP: 0033:0x7f95d9a0654e [ 13.942921][ 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.942923][ T158] RSP: 002b:00007ffee2cb3f50 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 13.942925][ T158] RAX: ffffffffffffffda RBX: 00007f95d9b87580 RCX: 00007f95d9a0654e [ 13.942927][ T158] RDX: 0000000000000023 RSI: 00005563a6aebd20 RDI: 0000000000000001 [ 13.942928][ T158] RBP: 00007ffee2cb3f60 R08: 0000000000000000 R09: 0000000000000000 [ 13.942929][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 13.942930][ T158] R13: 0000000000000023 R14: 00005563a6aebd20 R15: 0000000000000000 [ 13.942936][ T158]