[ 13.269769][ T157] netconsole selftest: netcons_Kv9ay [ 13.269793][ T157] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 13.269796][ T157] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 157, name: bash [ 13.269798][ T157] preempt_count: 1, expected: 0 [ 13.269799][ T157] RCU nest depth: 0, expected: 0 [ 13.269800][ T157] locks held by bash/157: 4, last CPU#2: [ 13.269808][ T157] #0: ffffffffb7f99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 13.269822][ T157] #1: ffffffffb7f99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 13.269827][ T157] #2: ffffffffb7e89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 13.269831][ T157] #3: ffffffffb7e89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 13.269835][ T157] irq event stamp: 188138 [ 13.269837][ T157] hardirqs last enabled at (188137): [] __down_trylock_console_sem+0x86/0xa0 [ 13.269840][ T157] hardirqs last disabled at (188138): [] console_emit_next_record+0x3f8/0x4f0 [ 13.269841][ T157] softirqs last enabled at (188076): [] handle_softirqs+0x67c/0x900 [ 13.269845][ T157] softirqs last disabled at (188069): [] __irq_exit_rcu+0x145/0x1c0 [ 13.269848][ T157] Preemption disabled at: [ 13.269849][ T157] [] vprintk_emit+0x31b/0x3e0 [ 13.269856][ T157] CPU: 2 UID: 0 PID: 157 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 13.269859][ T157] Tainted: [W]=WARN [ 13.269860][ T157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.269862][ T157] Call Trace: [ 13.269864][ T157] [ 13.269866][ T157] dump_stack_lvl+0x6f/0xa0 [ 13.269872][ T157] ? vprintk_emit+0x31b/0x3e0 [ 13.269874][ T157] __might_resched.cold+0x1fe/0x2c1 [ 13.269879][ T157] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 13.269883][ T157] ? __kmalloc_noprof+0xdb/0x760 [ 13.269888][ T157] __kmalloc_noprof+0x443/0x760 [ 13.269890][ T157] ? alloc_buf.isra.0+0x4b/0x260 [ 13.269896][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 13.269899][ T157] alloc_buf.isra.0+0x4b/0x260 [ 13.269902][ T157] put_chars+0x1e1/0x2f0 [ 13.269905][ T157] ? __send_to_port+0x420/0x420 [ 13.269906][ T157] ? printk_get_next_message+0x2fe/0x7d0 [ 13.269910][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.269913][ T157] ? validate_chain+0x38b/0xc20 [ 13.269917][ T157] hvc_console_print+0x292/0x780 [ 13.269920][ T157] ? __lock_acquire+0x518/0xc20 [ 13.269921][ T157] ? __lock_acquire+0x518/0xc20 [ 13.269925][ T157] ? hvc_write+0x3a0/0x3a0 [ 13.269929][ T157] ? rcu_is_watching+0x16/0xd0 [ 13.269932][ T157] ? lock_acquire+0x13c/0x160 [ 13.269936][ T157] console_emit_next_record+0x252/0x4f0 [ 13.269939][ T157] ? devkmsg_read+0x4e0/0x4e0 [ 13.269944][ T157] ? rcu_is_watching+0x16/0xd0 [ 13.269946][ T157] ? lock_acquire+0x13c/0x160 [ 13.269950][ T157] console_flush_one_record+0x46f/0x710 [ 13.269954][ T157] ? console_emit_next_record+0x4f0/0x4f0 [ 13.269956][ T157] ? __lock_acquire+0x518/0xc20 [ 13.269961][ T157] console_unlock+0xee/0x1f0 [ 13.269963][ T157] ? console_flush_one_record+0x710/0x710 [ 13.269965][ T157] ? rcu_is_watching+0x16/0xd0 [ 13.269967][ T157] ? lock_acquire+0x60/0x160 [ 13.269971][ T157] ? __down_trylock_console_sem+0x5e/0xa0 [ 13.269973][ T157] ? vprintk_emit+0x320/0x3e0 [ 13.269976][ T157] vprintk_emit+0x37c/0x3e0 [ 13.269979][ T157] ? wake_up_klogd_work_func+0x90/0x90 [ 13.269982][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 13.269988][ T157] devkmsg_emit.constprop.0+0xbc/0xf1 [ 13.269993][ T157] ? vprintk_emit.cold+0x107/0x107 [ 13.269997][ T157] ? __kmalloc_noprof+0x302/0x760 [ 13.269999][ T157] ? idr_get_free+0x830/0x830 [ 13.270003][ T157] ? devkmsg_write+0xd1/0x2c0 [ 13.270006][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 13.270009][ T157] devkmsg_write.cold+0x5a/0x8b [ 13.270012][ T157] ? vprintk_default+0x20/0x20 [ 13.270013][ T157] ? __lock_acquire+0x518/0xc20 [ 13.270015][ T157] ? vfs_lock_file+0x1b0/0x1b0 [ 13.270020][ T157] ? vprintk_default+0x20/0x20 [ 13.270022][ T157] new_sync_write+0x33e/0x760 [ 13.270027][ T157] ? new_sync_read+0x750/0x750 [ 13.270029][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.270037][ T157] vfs_write+0x6a2/0xbd0 [ 13.270042][ T157] ksys_write+0x116/0x250 [ 13.270045][ T157] ? __ia32_sys_read+0xc0/0xc0 [ 13.270046][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 13.270049][ T157] ? rcu_is_watching+0x16/0xd0 [ 13.270053][ T157] do_syscall_64+0xff/0x530 [ 13.270055][ T157] ? exc_page_fault+0xee/0x100 [ 13.270058][ T157] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.270061][ T157] RIP: 0033:0x7f1a5023654e [ 13.270065][ T157] 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.270067][ T157] RSP: 002b:00007ffc10437610 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 13.270070][ T157] RAX: ffffffffffffffda RBX: 00007f1a503b7580 RCX: 00007f1a5023654e [ 13.270071][ T157] RDX: 0000000000000023 RSI: 000055ac750e0d20 RDI: 0000000000000001 [ 13.270073][ T157] RBP: 00007ffc10437620 R08: 0000000000000000 R09: 0000000000000000 [ 13.270074][ T157] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 13.270075][ T157] R13: 0000000000000023 R14: 000055ac750e0d20 R15: 0000000000000000 [ 13.270082][ T157] [ 16.705673][ T157] netconsole selftest: netcons_Kv9ay [ 16.705697][ T157] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 16.705700][ T157] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 157, name: bash [ 16.705702][ T157] preempt_count: 1, expected: 0 [ 16.705703][ T157] RCU nest depth: 0, expected: 0 [ 16.705704][ T157] locks held by bash/157: 4, last CPU#3: [ 16.705707][ T157] #0: ffffffffb7f99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 16.705722][ T157] #1: ffffffffb7f99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 16.705727][ T157] #2: ffffffffb7e89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 16.705732][ T157] #3: ffffffffb7e89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 16.705736][ T157] irq event stamp: 370382 [ 16.705738][ T157] hardirqs last enabled at (370381): [] __down_trylock_console_sem+0x86/0xa0 [ 16.705740][ T157] hardirqs last disabled at (370382): [] console_emit_next_record+0x3f8/0x4f0 [ 16.705742][ T157] softirqs last enabled at (370186): [] restore_fpregs_from_user+0x1cf/0x490 [ 16.705746][ T157] softirqs last disabled at (370184): [] restore_fpregs_from_user+0xc3/0x490 [ 16.705748][ T157] Preemption disabled at: [ 16.705749][ T157] [] vprintk_emit+0x31b/0x3e0 [ 16.705755][ T157] CPU: 3 UID: 0 PID: 157 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 16.705759][ T157] Tainted: [W]=WARN [ 16.705760][ T157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.705762][ T157] Call Trace: [ 16.705764][ T157] [ 16.705765][ T157] dump_stack_lvl+0x6f/0xa0 [ 16.705771][ T157] ? vprintk_emit+0x31b/0x3e0 [ 16.705773][ T157] __might_resched.cold+0x1fe/0x2c1 [ 16.705782][ T157] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 16.705786][ T157] ? __kmalloc_noprof+0xdb/0x760 [ 16.705791][ T157] __kmalloc_noprof+0x443/0x760 [ 16.705793][ T157] ? alloc_buf.isra.0+0x4b/0x260 [ 16.705799][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 16.705802][ T157] alloc_buf.isra.0+0x4b/0x260 [ 16.705805][ T157] put_chars+0x1e1/0x2f0 [ 16.705808][ T157] ? __send_to_port+0x420/0x420 [ 16.705810][ T157] ? printk_get_next_message+0x2fe/0x7d0 [ 16.705813][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 16.705816][ T157] ? validate_chain+0x38b/0xc20 [ 16.705820][ T157] hvc_console_print+0x292/0x780 [ 16.705823][ T157] ? __lock_acquire+0x518/0xc20 [ 16.705824][ T157] ? __lock_acquire+0x518/0xc20 [ 16.705828][ T157] ? hvc_write+0x3a0/0x3a0 [ 16.705831][ T157] ? rcu_is_watching+0x16/0xd0 [ 16.705834][ T157] ? lock_acquire+0x13c/0x160 [ 16.705838][ T157] console_emit_next_record+0x252/0x4f0 [ 16.705841][ T157] ? devkmsg_read+0x4e0/0x4e0 [ 16.705846][ T157] ? rcu_is_watching+0x16/0xd0 [ 16.705848][ T157] ? lock_acquire+0x13c/0x160 [ 16.705852][ T157] console_flush_one_record+0x46f/0x710 [ 16.705855][ T157] ? console_emit_next_record+0x4f0/0x4f0 [ 16.705857][ T157] ? __lock_acquire+0x518/0xc20 [ 16.705862][ T157] console_unlock+0xee/0x1f0 [ 16.705864][ T157] ? console_flush_one_record+0x710/0x710 [ 16.705866][ T157] ? rcu_is_watching+0x16/0xd0 [ 16.705868][ T157] ? lock_acquire+0x60/0x160 [ 16.705872][ T157] ? __down_trylock_console_sem+0x5e/0xa0 [ 16.705873][ T157] ? vprintk_emit+0x320/0x3e0 [ 16.705876][ T157] vprintk_emit+0x37c/0x3e0 [ 16.705880][ T157] ? wake_up_klogd_work_func+0x90/0x90 [ 16.705883][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 16.705888][ T157] devkmsg_emit.constprop.0+0xbc/0xf1 [ 16.705892][ T157] ? vprintk_emit.cold+0x107/0x107 [ 16.705896][ T157] ? __kmalloc_noprof+0x302/0x760 [ 16.705898][ T157] ? idr_get_free+0x830/0x830 [ 16.705902][ T157] ? devkmsg_write+0xd1/0x2c0 [ 16.705905][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 16.705908][ T157] devkmsg_write.cold+0x5a/0x8b [ 16.705910][ T157] ? vprintk_default+0x20/0x20 [ 16.705912][ T157] ? __lock_acquire+0x518/0xc20 [ 16.705914][ T157] ? vfs_lock_file+0x1b0/0x1b0 [ 16.705919][ T157] ? vprintk_default+0x20/0x20 [ 16.705921][ T157] new_sync_write+0x33e/0x760 [ 16.705926][ T157] ? new_sync_read+0x750/0x750 [ 16.705927][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 16.705935][ T157] vfs_write+0x6a2/0xbd0 [ 16.705939][ T157] ksys_write+0x116/0x250 [ 16.705942][ T157] ? __ia32_sys_read+0xc0/0xc0 [ 16.705944][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 16.705946][ T157] ? rcu_is_watching+0x16/0xd0 [ 16.705950][ T157] do_syscall_64+0xff/0x530 [ 16.705952][ T157] ? exc_page_fault+0xee/0x100 [ 16.705955][ T157] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 16.705958][ T157] RIP: 0033:0x7f1a5023654e [ 16.705961][ T157] 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 [ 16.705963][ T157] RSP: 002b:00007ffc10437610 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 16.705966][ T157] RAX: ffffffffffffffda RBX: 00007f1a503b7580 RCX: 00007f1a5023654e [ 16.705968][ T157] RDX: 0000000000000023 RSI: 000055ac750e0d20 RDI: 0000000000000001 [ 16.705969][ T157] RBP: 00007ffc10437620 R08: 0000000000000000 R09: 0000000000000000 [ 16.705970][ T157] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 16.705971][ T157] R13: 0000000000000023 R14: 000055ac750e0d20 R15: 0000000000000000 [ 16.705978][ T157]