[ 11.472480][ T169] packetdrill (169) used greatest stack depth: 24392 bytes left [ 11.472500][ T169] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.472502][ T169] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 169, name: packetdrill [ 11.472504][ T169] preempt_count: 2, expected: 0 [ 11.472506][ T169] RCU nest depth: 0, expected: 0 [ 11.472507][ T169] locks held by packetdrill/169: 5, last CPU#2: [ 11.472510][ T169] #0: ffffffffa72027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 11.472525][ T169] #1: ffffffffa7369cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.472532][ T169] #2: ffffffffa7369d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.472537][ T169] #3: ffffffffa7289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.472542][ T169] #4: ffffffffa7289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.472548][ T169] irq event stamp: 4083156 [ 11.472549][ T169] hardirqs last enabled at (4083155): [] __down_trylock_console_sem+0x86/0xa0 [ 11.472554][ T169] hardirqs last disabled at (4083156): [] console_emit_next_record+0x3d4/0x4c0 [ 11.472556][ T169] softirqs last enabled at (4082910): [] tcp_close+0x2b/0xb0 [ 11.472561][ T169] softirqs last disabled at (4082908): [] release_sock+0x21/0x240 [ 11.472566][ T169] Preemption disabled at: [ 11.472567][ T169] [<0000000000000000>] 0x0 [ 11.472575][ T169] CPU: 2 UID: 0 PID: 169 Comm: packetdrill Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.472581][ T169] Tainted: [W]=WARN [ 11.472582][ T169] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.472584][ T169] Call Trace: [ 11.472587][ T169] [ 11.472589][ T169] dump_stack_lvl+0x6f/0xa0 [ 11.472597][ T169] __might_resched.cold+0x1fe/0x2c1 [ 11.472603][ T169] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.472608][ T169] ? __kmalloc_noprof+0xdb/0x760 [ 11.472616][ T169] __kmalloc_noprof+0x443/0x760 [ 11.472620][ T169] ? alloc_buf.isra.0+0x4b/0x260 [ 11.472629][ T169] ? do_raw_spin_unlock+0x59/0x250 [ 11.472633][ T169] alloc_buf.isra.0+0x4b/0x260 [ 11.472639][ T169] put_chars+0x1e1/0x2f0 [ 11.472644][ T169] ? __send_to_port+0x420/0x420 [ 11.472646][ T169] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.472652][ T169] ? validate_chain+0x38b/0xc20 [ 11.472661][ T169] hvc_console_print+0x292/0x780 [ 11.472673][ T169] ? hvc_write+0x3a0/0x3a0 [ 11.472676][ T169] ? rcu_is_watching+0x16/0xd0 [ 11.472680][ T169] ? lock_acquire+0x13c/0x160 [ 11.472687][ T169] console_emit_next_record+0x22f/0x4c0 [ 11.472693][ T169] ? devkmsg_read+0x4b0/0x4b0 [ 11.472695][ T169] ? console_flush_one_record+0x106/0x710 [ 11.472700][ T169] ? rcu_is_watching+0x16/0xd0 [ 11.472703][ T169] ? lock_acquire+0x13c/0x160 [ 11.472710][ T169] console_flush_one_record+0x46f/0x710 [ 11.472716][ T169] ? console_emit_next_record+0x4c0/0x4c0 [ 11.472719][ T169] ? __lock_acquire+0x518/0xc20 [ 11.472728][ T169] console_unlock+0xee/0x1f0 [ 11.472732][ T169] ? console_flush_one_record+0x710/0x710 [ 11.472734][ T169] ? rcu_is_watching+0x16/0xd0 [ 11.472737][ T169] ? lock_acquire+0x60/0x160 [ 11.472744][ T169] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.472747][ T169] ? vprintk_emit+0x320/0x3e0 [ 11.472752][ T169] vprintk_emit+0x37c/0x3e0 [ 11.472757][ T169] ? wake_up_klogd_work_func+0x90/0x90 [ 11.472760][ T169] ? do_raw_spin_unlock+0x59/0x250 [ 11.472765][ T169] ? __lock_acquire+0x518/0xc20 [ 11.472772][ T169] _printk+0xc7/0x100 [ 11.472777][ T169] ? snapshot_read.cold+0x21/0x21 [ 11.472782][ T169] ? do_raw_spin_lock+0x131/0x280 [ 11.472786][ T169] ? __rwlock_init+0x150/0x150 [ 11.472793][ T169] ? do_raw_spin_lock+0x131/0x280 [ 11.472798][ T169] do_exit.cold+0x82/0x9c [ 11.472803][ T169] ? exit_notify+0x890/0x890 [ 11.472805][ T169] ? __lock_release.isra.0+0x69/0x1a0 [ 11.472810][ T169] ? rcu_is_watching+0x16/0xd0 [ 11.472816][ T169] do_group_exit+0xb8/0x370 [ 11.472821][ T169] __x64_sys_exit_group+0x3c/0x50 [ 11.472825][ T169] x64_sys_call+0x1567/0x1570 [ 11.472828][ T169] do_syscall_64+0xff/0x530 [ 11.472833][ T169] ? irq_exit_rcu+0x1a/0x30 [ 11.472838][ T169] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.472841][ T169] RIP: 0033:0x479678 [ 11.472845][ T169] Code: Unable to access opcode bytes at 0x47964e. [ 11.472846][ T169] RSP: 002b:00007ffc698b6c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 11.472850][ T169] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000479678 [ 11.472852][ T169] RDX: 0000000008614708 RSI: fffffffffffffff0 RDI: 0000000000000000 [ 11.472854][ T169] RBP: 00007ffc698b6cd0 R08: 0000000000000000 R09: 00000000086153e0 [ 11.472855][ T169] R10: 0000000000000110 R11: 0000000000000246 R12: 00007ffc698b6e08 [ 11.472856][ T169] R13: 00007ffc698b6e90 R14: 0000000000000000 R15: 000000000054d560 [ 11.472869][ T169]