[ 11.063548][ T157] netconsole selftest: netcons_NKBCw [ 11.063572][ T157] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.063574][ T157] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 157, name: bash [ 11.063576][ T157] preempt_count: 1, expected: 0 [ 11.063577][ T157] RCU nest depth: 0, expected: 0 [ 11.063578][ T157] locks held by bash/157: 4, last CPU#0: [ 11.063581][ T157] #0: ffffffffb8999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.063593][ T157] #1: ffffffffb8999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.063598][ T157] #2: ffffffffb8889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.063602][ T157] #3: ffffffffb8889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 11.063606][ T157] irq event stamp: 116520 [ 11.063608][ T157] hardirqs last enabled at (116519): [] __down_trylock_console_sem+0x86/0xa0 [ 11.063610][ T157] hardirqs last disabled at (116520): [] console_emit_next_record+0x3f8/0x4f0 [ 11.063612][ T157] softirqs last enabled at (116432): [] handle_softirqs+0x67c/0x900 [ 11.063616][ T157] softirqs last disabled at (116425): [] __irq_exit_rcu+0x145/0x1c0 [ 11.063619][ T157] Preemption disabled at: [ 11.063620][ T157] [] vprintk_emit+0x31b/0x3e0 [ 11.063625][ T157] CPU: 0 UID: 0 PID: 157 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.063629][ T157] Tainted: [W]=WARN [ 11.063630][ T157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.063631][ T157] Call Trace: [ 11.063633][ T157] [ 11.063635][ T157] dump_stack_lvl+0x6f/0xa0 [ 11.063640][ T157] ? vprintk_emit+0x31b/0x3e0 [ 11.063642][ T157] __might_resched.cold+0x1fe/0x2c1 [ 11.063647][ T157] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.063650][ T157] ? __kmalloc_noprof+0xdb/0x760 [ 11.063655][ T157] __kmalloc_noprof+0x443/0x760 [ 11.063657][ T157] ? alloc_buf.isra.0+0x4b/0x260 [ 11.063663][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 11.063665][ T157] alloc_buf.isra.0+0x4b/0x260 [ 11.063669][ T157] put_chars+0x1e1/0x2f0 [ 11.063671][ T157] ? __send_to_port+0x420/0x420 [ 11.063673][ T157] ? printk_get_next_message+0x2fe/0x7d0 [ 11.063676][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.063679][ T157] ? validate_chain+0x38b/0xc20 [ 11.063683][ T157] hvc_console_print+0x292/0x780 [ 11.063685][ T157] ? __lock_acquire+0x518/0xc20 [ 11.063687][ T157] ? __lock_acquire+0x518/0xc20 [ 11.063691][ T157] ? hvc_write+0x3a0/0x3a0 [ 11.063694][ T157] ? rcu_is_watching+0x16/0xd0 [ 11.063697][ T157] ? lock_acquire+0x13c/0x160 [ 11.063701][ T157] console_emit_next_record+0x252/0x4f0 [ 11.063704][ T157] ? devkmsg_read+0x4e0/0x4e0 [ 11.063709][ T157] ? rcu_is_watching+0x16/0xd0 [ 11.063711][ T157] ? lock_acquire+0x13c/0x160 [ 11.063714][ T157] console_flush_one_record+0x46f/0x710 [ 11.063718][ T157] ? console_emit_next_record+0x4f0/0x4f0 [ 11.063720][ T157] ? __lock_acquire+0x518/0xc20 [ 11.063725][ T157] console_unlock+0xee/0x1f0 [ 11.063727][ T157] ? console_flush_one_record+0x710/0x710 [ 11.063729][ T157] ? rcu_is_watching+0x16/0xd0 [ 11.063731][ T157] ? lock_acquire+0x60/0x160 [ 11.063734][ T157] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.063736][ T157] ? vprintk_emit+0x320/0x3e0 [ 11.063739][ T157] vprintk_emit+0x37c/0x3e0 [ 11.063742][ T157] ? wake_up_klogd_work_func+0x90/0x90 [ 11.063745][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 11.063751][ T157] devkmsg_emit.constprop.0+0xbc/0xf1 [ 11.063755][ T157] ? vprintk_emit.cold+0x107/0x107 [ 11.063759][ T157] ? __kmalloc_noprof+0x302/0x760 [ 11.063760][ T157] ? idr_get_free+0x830/0x830 [ 11.063764][ T157] ? devkmsg_write+0xd1/0x2c0 [ 11.063767][ T157] ? _copy_from_iter+0x1bb/0x1810 [ 11.063770][ T157] devkmsg_write.cold+0x5a/0x8b [ 11.063773][ T157] ? vprintk_default+0x20/0x20 [ 11.063774][ T157] ? __lock_acquire+0x518/0xc20 [ 11.063776][ T157] ? vfs_lock_file+0x1b0/0x1b0 [ 11.063781][ T157] ? vprintk_default+0x20/0x20 [ 11.063783][ T157] new_sync_write+0x33e/0x760 [ 11.063788][ T157] ? new_sync_read+0x750/0x750 [ 11.063790][ T157] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.063797][ T157] vfs_write+0x6a2/0xbd0 [ 11.063801][ T157] ksys_write+0x116/0x250 [ 11.063804][ T157] ? __ia32_sys_read+0xc0/0xc0 [ 11.063806][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 11.063808][ T157] ? rcu_is_watching+0x16/0xd0 [ 11.063812][ T157] do_syscall_64+0xff/0x530 [ 11.063814][ T157] ? exc_page_fault+0xee/0x100 [ 11.063817][ T157] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.063819][ T157] RIP: 0033:0x7f2f81bca54e [ 11.063823][ 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 [ 11.063825][ T157] RSP: 002b:00007fff6bab5ac0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 11.063828][ T157] RAX: ffffffffffffffda RBX: 00007f2f81d4b580 RCX: 00007f2f81bca54e [ 11.063830][ T157] RDX: 0000000000000023 RSI: 00005627f6607490 RDI: 0000000000000001 [ 11.063831][ T157] RBP: 00007fff6bab5ad0 R08: 0000000000000000 R09: 0000000000000000 [ 11.063832][ T157] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 11.063833][ T157] R13: 0000000000000023 R14: 00005627f6607490 R15: 0000000000000000 [ 11.063839][ T157] [ 11.783848][ T157] netconsole selftest: netcons_NKBCw