[ 21.100354][ T231] packetdrill (231) used greatest stack depth: 23496 bytes left [ 21.100371][ T231] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 21.100374][ T231] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 231, name: packetdrill [ 21.100375][ T231] preempt_count: 2, expected: 0 [ 21.100376][ T231] RCU nest depth: 0, expected: 0 [ 21.100377][ T231] locks held by packetdrill/231: 5, last CPU#3: [ 21.100379][ T231] #0: ffffffffb86027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 21.100392][ T231] #1: ffffffffb8769cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 21.100397][ T231] #2: ffffffffb8769d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 21.100401][ T231] #3: ffffffffb8689660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 21.100404][ T231] #4: ffffffffb8689560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 21.100407][ T231] irq event stamp: 4050230 [ 21.100408][ T231] hardirqs last enabled at (4050229): [] __down_trylock_console_sem+0x86/0xa0 [ 21.100412][ T231] hardirqs last disabled at (4050230): [] console_emit_next_record+0x3d4/0x4c0 [ 21.100413][ T231] softirqs last enabled at (4049984): [] tcp_close+0x2b/0xb0 [ 21.100417][ T231] softirqs last disabled at (4049982): [] release_sock+0x21/0x240 [ 21.100421][ T231] Preemption disabled at: [ 21.100422][ T231] [<0000000000000000>] 0x0 [ 21.100429][ T231] CPU: 3 UID: 0 PID: 231 Comm: packetdrill Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 21.100433][ T231] Tainted: [W]=WARN [ 21.100434][ T231] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 21.100435][ T231] Call Trace: [ 21.100437][ T231] [ 21.100439][ T231] dump_stack_lvl+0x6f/0xa0 [ 21.100444][ T231] __might_resched.cold+0x1fe/0x2c1 [ 21.100449][ T231] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 21.100452][ T231] ? __kmalloc_noprof+0xdb/0x760 [ 21.100457][ T231] __kmalloc_noprof+0x443/0x760 [ 21.100460][ T231] ? alloc_buf.isra.0+0x4b/0x260 [ 21.100466][ T231] ? do_raw_spin_unlock+0x59/0x250 [ 21.100469][ T231] alloc_buf.isra.0+0x4b/0x260 [ 21.100472][ T231] put_chars+0x1e1/0x2f0 [ 21.100475][ T231] ? __send_to_port+0x420/0x420 [ 21.100477][ T231] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 21.100481][ T231] ? validate_chain+0x38b/0xc20 [ 21.100487][ T231] hvc_console_print+0x292/0x780 [ 21.100493][ T231] ? hvc_write+0x3a0/0x3a0 [ 21.100496][ T231] ? rcu_is_watching+0x16/0xd0 [ 21.100498][ T231] ? lock_acquire+0x13c/0x160 [ 21.100502][ T231] console_emit_next_record+0x22f/0x4c0 [ 21.100505][ T231] ? devkmsg_read+0x4b0/0x4b0 [ 21.100506][ T231] ? console_flush_one_record+0x106/0x710 [ 21.100509][ T231] ? rcu_is_watching+0x16/0xd0 [ 21.100511][ T231] ? lock_acquire+0x13c/0x160 [ 21.100515][ T231] console_flush_one_record+0x46f/0x710 [ 21.100518][ T231] ? console_emit_next_record+0x4c0/0x4c0 [ 21.100520][ T231] ? __lock_acquire+0x518/0xc20 [ 21.100525][ T231] console_unlock+0xee/0x1f0 [ 21.100527][ T231] ? console_flush_one_record+0x710/0x710 [ 21.100528][ T231] ? rcu_is_watching+0x16/0xd0 [ 21.100530][ T231] ? lock_acquire+0x60/0x160 [ 21.100534][ T231] ? __down_trylock_console_sem+0x5e/0xa0 [ 21.100536][ T231] ? vprintk_emit+0x320/0x3e0 [ 21.100539][ T231] vprintk_emit+0x37c/0x3e0 [ 21.100542][ T231] ? wake_up_klogd_work_func+0x90/0x90 [ 21.100543][ T231] ? do_raw_spin_unlock+0x59/0x250 [ 21.100546][ T231] ? __lock_acquire+0x518/0xc20 [ 21.100550][ T231] _printk+0xc7/0x100 [ 21.100554][ T231] ? snapshot_read.cold+0x21/0x21 [ 21.100557][ T231] ? do_raw_spin_lock+0x131/0x280 [ 21.100559][ T231] ? __rwlock_init+0x150/0x150 [ 21.100563][ T231] ? do_raw_spin_lock+0x131/0x280 [ 21.100566][ T231] do_exit.cold+0x82/0x9c [ 21.100570][ T231] ? exit_notify+0x890/0x890 [ 21.100571][ T231] ? __lock_release.isra.0+0x69/0x1a0 [ 21.100574][ T231] ? rcu_is_watching+0x16/0xd0 [ 21.100578][ T231] do_group_exit+0xb8/0x370 [ 21.100581][ T231] __x64_sys_exit_group+0x3c/0x50 [ 21.100583][ T231] x64_sys_call+0x1567/0x1570 [ 21.100585][ T231] do_syscall_64+0xff/0x530 [ 21.100589][ T231] ? irq_exit_rcu+0x1a/0x30 [ 21.100592][ T231] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 21.100595][ T231] RIP: 0033:0x479678 [ 21.100597][ T231] Code: Unable to access opcode bytes at 0x47964e. [ 21.100598][ T231] RSP: 002b:00007ffc20cd0b28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 21.100600][ T231] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000479678 [ 21.100602][ T231] RDX: 00000000287fe708 RSI: fffffffffffffff0 RDI: 0000000000000000 [ 21.100603][ T231] RBP: 00007ffc20cd0b80 R08: 0000000000000000 R09: 00000000287ff3e0 [ 21.100604][ T231] R10: 0000000000000110 R11: 0000000000000246 R12: 00007ffc20cd0cb8 [ 21.100604][ T231] R13: 00007ffc20cd0d40 R14: 0000000000000000 R15: 000000000054d560 [ 21.100611][ T231]