[ 8.504664][ T170] netconsole: network logging started [ 10.138986][ T220] Test #1 from CPU3: netcons_Bkzzv [ 10.139002][ T220] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.139004][ T220] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 220, name: echo [ 10.139005][ T220] preempt_count: 1, expected: 0 [ 10.139006][ T220] RCU nest depth: 0, expected: 0 [ 10.139007][ T220] INFO: lockdep is turned off. [ 10.139008][ T220] irq event stamp: 0 [ 10.139010][ T220] hardirqs last enabled at (0): [<0000000000000000>] 0x0 [ 10.139014][ T220] hardirqs last disabled at (0): [] copy_process+0x1ccd/0x6240 [ 10.139021][ T220] softirqs last enabled at (0): [] copy_process+0x1d21/0x6240 [ 10.139023][ T220] softirqs last disabled at (0): [<0000000000000000>] 0x0 [ 10.139025][ T220] Preemption disabled at: [ 10.139025][ T220] [] vprintk_emit+0x31b/0x3e0 [ 10.139032][ T220] CPU: 3 UID: 0 PID: 220 Comm: echo Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.139035][ T220] Tainted: [W]=WARN [ 10.139036][ T220] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.139038][ T220] Call Trace: [ 10.139040][ T220] [ 10.139041][ T220] dump_stack_lvl+0x6f/0xa0 [ 10.139046][ T220] ? vprintk_emit+0x31b/0x3e0 [ 10.139048][ T220] __might_resched.cold+0x1fe/0x2c1 [ 10.139051][ T220] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.139054][ T220] ? rcu_is_watching+0x16/0xd0 [ 10.139058][ T220] __kmalloc_noprof+0x443/0x760 [ 10.139061][ T220] ? __rwlock_init+0x150/0x150 [ 10.139063][ T220] ? alloc_buf.isra.0+0x4b/0x260 [ 10.139067][ T220] ? do_raw_spin_unlock+0x59/0x250 [ 10.139068][ T220] alloc_buf.isra.0+0x4b/0x260 [ 10.139070][ T220] put_chars+0x1e1/0x2f0 [ 10.139072][ T220] ? __send_to_port+0x420/0x420 [ 10.139073][ T220] ? printk_get_next_message+0x2fe/0x7d0 [ 10.139075][ T220] ? console_prepend_replay+0x20/0x20 [ 10.139077][ T220] ? desc_read+0x219/0x2f0 [ 10.139079][ T220] hvc_console_print+0x292/0x780 [ 10.139083][ T220] ? hvc_write+0x3a0/0x3a0 [ 10.139084][ T220] ? __rwlock_init+0x150/0x150 [ 10.139085][ T220] ? rcu_is_watching+0x16/0xd0 [ 10.139087][ T220] ? rcu_is_watching+0x16/0xd0 [ 10.139088][ T220] ? lock_acquire+0x13c/0x160 [ 10.139090][ T220] console_emit_next_record+0x252/0x4f0 [ 10.139092][ T220] ? devkmsg_read+0x4e0/0x4e0 [ 10.139093][ T220] ? _prb_read_valid+0x6e0/0x6e0 [ 10.139095][ T220] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.139099][ T220] ? rcu_is_watching+0x16/0xd0 [ 10.139100][ T220] ? lock_acquire+0x13c/0x160 [ 10.139102][ T220] ? console_flush_one_record+0x111/0x710 [ 10.139103][ T220] console_flush_one_record+0x46f/0x710 [ 10.139105][ T220] ? console_emit_next_record+0x4f0/0x4f0 [ 10.139107][ T220] ? __irq_work_queue_local+0x145/0x420 [ 10.139111][ T220] console_unlock+0xee/0x1f0 [ 10.139113][ T220] ? lock_acquire+0x13c/0x160 [ 10.139114][ T220] ? console_flush_one_record+0x710/0x710 [ 10.139115][ T220] ? rcu_is_watching+0x16/0xd0 [ 10.139117][ T220] ? lock_release+0x184/0x1f0 [ 10.139118][ T220] ? lock_acquire+0x60/0x160 [ 10.139119][ T220] ? sync_exp_reset_tree_hotplug+0x3a0/0x3f0 [ 10.139121][ T220] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.139122][ T220] ? vprintk_emit+0x320/0x3e0 [ 10.139124][ T220] vprintk_emit+0x37c/0x3e0 [ 10.139126][ T220] ? wake_up_klogd_work_func+0x90/0x90 [ 10.139128][ T220] ? lock_release+0x184/0x1f0 [ 10.139129][ T220] ? _copy_from_iter+0x1bb/0x1810 [ 10.139133][ T220] devkmsg_emit.constprop.0+0xbc/0xf1 [ 10.139136][ T220] ? vprintk_emit.cold+0x107/0x107 [ 10.139138][ T220] ? __kmalloc_noprof+0x302/0x760 [ 10.139140][ T220] ? idr_get_free+0x830/0x830 [ 10.139143][ T220] ? devkmsg_write+0xd1/0x2c0 [ 10.139145][ T220] ? _copy_from_iter+0x1bb/0x1810 [ 10.139147][ T220] devkmsg_write.cold+0x5a/0x8b [ 10.139149][ T220] ? vprintk_default+0x20/0x20 [ 10.139150][ T220] ? handle_pte_fault+0x426/0x710 [ 10.139153][ T220] ? cp_old_stat+0x4d0/0x4d0 [ 10.139156][ T220] ? rcu_is_watching+0x16/0xd0 [ 10.139158][ T220] ? do_numa_page.isra.0+0xa70/0xa70 [ 10.139159][ T220] ? vprintk_default+0x20/0x20 [ 10.139161][ T220] new_sync_write+0x33e/0x760 [ 10.139163][ T220] ? new_sync_read+0x750/0x750 [ 10.139165][ T220] ? rcu_is_watching+0x16/0xd0 [ 10.139168][ T220] vfs_write+0x6a2/0xbd0 [ 10.139170][ T220] ksys_write+0x116/0x250 [ 10.139172][ T220] ? __ia32_sys_read+0xc0/0xc0 [ 10.139173][ T220] ? rcu_is_watching+0x16/0xd0 [ 10.139175][ T220] ? rcu_is_watching+0x16/0xd0 [ 10.139177][ T220] do_syscall_64+0xff/0x530 [ 10.139178][ T220] ? exc_page_fault+0xee/0x100 [ 10.139180][ T220] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.139182][ T220] RIP: 0033:0x7f64a9dfd54e [ 10.139184][ T220] 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 [ 10.139189][ T220] RSP: 002b:00007ffc4298e350 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 10.139192][ T220] RAX: ffffffffffffffda RBX: 00007f64a9f7e580 RCX: 00007f64a9dfd54e [ 10.139194][ T220] RDX: 0000000000000021 RSI: 0000558e296b5060 RDI: 0000000000000001 [ 10.139195][ T220] RBP: 00007ffc4298e360 R08: 0000000000000000 R09: 0000000000000000 [ 10.139195][ T220] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000021 [ 10.139196][ T220] R13: 0000000000000021 R14: 0000558e296b5060 R15: 00007f64a9f7e668 [ 10.139199][ T220] [ 10.501959][ T243] Test #2 from CPU0: netcons_Bkzzv [ 10.815201][ T267] Test #3 from CPU2: netcons_Bkzzv