[ 10.272310][ T201] packetdrill (201) used greatest stack depth: 23792 bytes left [ 10.272325][ T201] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.272327][ T201] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 201, name: packetdrill [ 10.272329][ T201] preempt_count: 2, expected: 0 [ 10.272330][ T201] RCU nest depth: 0, expected: 0 [ 10.272331][ T201] locks held by packetdrill/201: 5, last CPU#2: [ 10.272333][ T201] #0: ffffffffaec027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 10.272346][ T201] #1: ffffffffaed69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.272351][ T201] #2: ffffffffaed69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.272355][ T201] #3: ffffffffaec89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.272358][ T201] #4: ffffffffaec89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.272362][ T201] irq event stamp: 4007564 [ 10.272362][ T201] hardirqs last enabled at (4007563): [] __down_trylock_console_sem+0x86/0xa0 [ 10.272365][ T201] hardirqs last disabled at (4007564): [] console_emit_next_record+0x3d4/0x4c0 [ 10.272367][ T201] softirqs last enabled at (4007334): [] tcp_close+0x2b/0xb0 [ 10.272371][ T201] softirqs last disabled at (4007332): [] release_sock+0x21/0x240 [ 10.272375][ T201] Preemption disabled at: [ 10.272376][ T201] [<0000000000000000>] 0x0 [ 10.272387][ T201] CPU: 2 UID: 0 PID: 201 Comm: packetdrill Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.272390][ T201] Tainted: [W]=WARN [ 10.272391][ T201] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.272393][ T201] Call Trace: [ 10.272395][ T201] [ 10.272396][ T201] dump_stack_lvl+0x6f/0xa0 [ 10.272402][ T201] __might_resched.cold+0x1fe/0x2c1 [ 10.272407][ T201] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.272410][ T201] ? __kmalloc_noprof+0xdb/0x760 [ 10.272415][ T201] __kmalloc_noprof+0x443/0x760 [ 10.272418][ T201] ? alloc_buf.isra.0+0x4b/0x260 [ 10.272424][ T201] ? do_raw_spin_unlock+0x59/0x250 [ 10.272426][ T201] alloc_buf.isra.0+0x4b/0x260 [ 10.272430][ T201] put_chars+0x1e1/0x2f0 [ 10.272433][ T201] ? __send_to_port+0x420/0x420 [ 10.272435][ T201] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.272439][ T201] ? validate_chain+0x38b/0xc20 [ 10.272445][ T201] hvc_console_print+0x292/0x780 [ 10.272452][ T201] ? hvc_write+0x3a0/0x3a0 [ 10.272454][ T201] ? rcu_is_watching+0x16/0xd0 [ 10.272456][ T201] ? lock_acquire+0x13c/0x160 [ 10.272460][ T201] console_emit_next_record+0x22f/0x4c0 [ 10.272464][ T201] ? devkmsg_read+0x4b0/0x4b0 [ 10.272465][ T201] ? console_flush_one_record+0x106/0x710 [ 10.272468][ T201] ? rcu_is_watching+0x16/0xd0 [ 10.272470][ T201] ? lock_acquire+0x13c/0x160 [ 10.272474][ T201] console_flush_one_record+0x46f/0x710 [ 10.272477][ T201] ? console_emit_next_record+0x4c0/0x4c0 [ 10.272479][ T201] ? __lock_acquire+0x518/0xc20 [ 10.272484][ T201] console_unlock+0xee/0x1f0 [ 10.272486][ T201] ? console_flush_one_record+0x710/0x710 [ 10.272488][ T201] ? rcu_is_watching+0x16/0xd0 [ 10.272489][ T201] ? lock_acquire+0x60/0x160 [ 10.272493][ T201] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.272495][ T201] ? vprintk_emit+0x320/0x3e0 [ 10.272498][ T201] vprintk_emit+0x37c/0x3e0 [ 10.272501][ T201] ? wake_up_klogd_work_func+0x90/0x90 [ 10.272504][ T201] ? __lock_acquire+0x518/0xc20 [ 10.272508][ T201] _printk+0xc7/0x100 [ 10.272512][ T201] ? snapshot_read.cold+0x21/0x21 [ 10.272515][ T201] ? do_raw_spin_lock+0x131/0x280 [ 10.272518][ T201] ? __rwlock_init+0x150/0x150 [ 10.272522][ T201] ? do_raw_spin_lock+0x131/0x280 [ 10.272525][ T201] do_exit.cold+0x82/0x9c [ 10.272528][ T201] ? exit_notify+0x890/0x890 [ 10.272530][ T201] ? __lock_release.isra.0+0x69/0x1a0 [ 10.272533][ T201] ? rcu_is_watching+0x16/0xd0 [ 10.272537][ T201] do_group_exit+0xb8/0x370 [ 10.272540][ T201] __x64_sys_exit_group+0x3c/0x50 [ 10.272542][ T201] x64_sys_call+0x1567/0x1570 [ 10.272545][ T201] do_syscall_64+0xff/0x530 [ 10.272548][ T201] ? irq_exit_rcu+0x1a/0x30 [ 10.272551][ T201] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.272554][ T201] RIP: 0033:0x479678 [ 10.272556][ T201] Code: Unable to access opcode bytes at 0x47964e. [ 10.272557][ T201] RSP: 002b:00007ffe5a8e15c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 10.272559][ T201] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000479678 [ 10.272561][ T201] RDX: 0000000039ca7708 RSI: fffffffffffffff0 RDI: 0000000000000000 [ 10.272562][ T201] RBP: 00007ffe5a8e1620 R08: 0000000000000000 R09: 0000000039ca83e0 [ 10.272563][ T201] R10: 0000000000000110 R11: 0000000000000246 R12: 00007ffe5a8e1758 [ 10.272564][ T201] R13: 00007ffe5a8e17e0 R14: 0000000000000000 R15: 000000000054d560 [ 10.272570][ T201]