[ 12.570469][ T237] packetdrill (237) used greatest stack depth: 24688 bytes left [ 12.570485][ T237] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.570487][ T237] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 237, name: packetdrill [ 12.570489][ T237] preempt_count: 2, expected: 0 [ 12.570490][ T237] RCU nest depth: 0, expected: 0 [ 12.570491][ T237] locks held by packetdrill/237: 5, last CPU#2: [ 12.570493][ T237] #0: ffffffff9ee027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 12.570505][ T237] #1: ffffffff9ef69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.570510][ T237] #2: ffffffff9ef69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.570514][ T237] #3: ffffffff9ee89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.570517][ T237] #4: ffffffff9ee89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.570520][ T237] irq event stamp: 4021864 [ 12.570521][ T237] hardirqs last enabled at (4021863): [] __down_trylock_console_sem+0x86/0xa0 [ 12.570524][ T237] hardirqs last disabled at (4021864): [] console_emit_next_record+0x3d4/0x4c0 [ 12.570526][ T237] softirqs last enabled at (4021620): [] tcp_close+0x2b/0xb0 [ 12.570530][ T237] softirqs last disabled at (4021618): [] release_sock+0x21/0x240 [ 12.570534][ T237] Preemption disabled at: [ 12.570534][ T237] [<0000000000000000>] 0x0 [ 12.570541][ T237] CPU: 2 UID: 0 PID: 237 Comm: packetdrill Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.570544][ T237] Tainted: [W]=WARN [ 12.570545][ T237] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.570547][ T237] Call Trace: [ 12.570548][ T237] [ 12.570550][ T237] dump_stack_lvl+0x6f/0xa0 [ 12.570555][ T237] __might_resched.cold+0x1fe/0x2c1 [ 12.570560][ T237] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.570563][ T237] ? __kmalloc_noprof+0xdb/0x760 [ 12.570568][ T237] __kmalloc_noprof+0x443/0x760 [ 12.570571][ T237] ? alloc_buf.isra.0+0x4b/0x260 [ 12.570577][ T237] ? do_raw_spin_unlock+0x59/0x250 [ 12.570580][ T237] alloc_buf.isra.0+0x4b/0x260 [ 12.570583][ T237] put_chars+0x1e1/0x2f0 [ 12.570586][ T237] ? __send_to_port+0x420/0x420 [ 12.570588][ T237] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 12.570592][ T237] ? validate_chain+0x38b/0xc20 [ 12.570597][ T237] hvc_console_print+0x292/0x780 [ 12.570604][ T237] ? hvc_write+0x3a0/0x3a0 [ 12.570606][ T237] ? rcu_is_watching+0x16/0xd0 [ 12.570608][ T237] ? lock_acquire+0x13c/0x160 [ 12.570612][ T237] console_emit_next_record+0x22f/0x4c0 [ 12.570619][ T237] ? devkmsg_read+0x4b0/0x4b0 [ 12.570620][ T237] ? console_flush_one_record+0x106/0x710 [ 12.570623][ T237] ? rcu_is_watching+0x16/0xd0 [ 12.570624][ T237] ? lock_acquire+0x13c/0x160 [ 12.570628][ T237] console_flush_one_record+0x46f/0x710 [ 12.570632][ T237] ? console_emit_next_record+0x4c0/0x4c0 [ 12.570633][ T237] ? __lock_acquire+0x518/0xc20 [ 12.570638][ T237] console_unlock+0xee/0x1f0 [ 12.570641][ T237] ? console_flush_one_record+0x710/0x710 [ 12.570642][ T237] ? rcu_is_watching+0x16/0xd0 [ 12.570644][ T237] ? lock_acquire+0x60/0x160 [ 12.570647][ T237] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.570649][ T237] ? vprintk_emit+0x320/0x3e0 [ 12.570652][ T237] vprintk_emit+0x37c/0x3e0 [ 12.570655][ T237] ? wake_up_klogd_work_func+0x90/0x90 [ 12.570656][ T237] ? do_raw_spin_unlock+0x59/0x250 [ 12.570660][ T237] ? __lock_acquire+0x518/0xc20 [ 12.570663][ T237] _printk+0xc7/0x100 [ 12.570667][ T237] ? snapshot_read.cold+0x21/0x21 [ 12.570670][ T237] ? do_raw_spin_lock+0x131/0x280 [ 12.570673][ T237] ? __rwlock_init+0x150/0x150 [ 12.570677][ T237] ? do_raw_spin_lock+0x131/0x280 [ 12.570679][ T237] do_exit.cold+0x82/0x9c [ 12.570683][ T237] ? exit_notify+0x890/0x890 [ 12.570684][ T237] ? __lock_release.isra.0+0x69/0x1a0 [ 12.570687][ T237] ? rcu_is_watching+0x16/0xd0 [ 12.570691][ T237] do_group_exit+0xb8/0x370 [ 12.570694][ T237] __x64_sys_exit_group+0x3c/0x50 [ 12.570696][ T237] x64_sys_call+0x1567/0x1570 [ 12.570698][ T237] do_syscall_64+0xff/0x530 [ 12.570702][ T237] ? irq_exit_rcu+0x1a/0x30 [ 12.570705][ T237] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.570707][ T237] RIP: 0033:0x479678 [ 12.570713][ T237] Code: Unable to access opcode bytes at 0x47964e. [ 12.570714][ T237] RSP: 002b:00007ffe3807aad8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 12.570716][ T237] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000479678 [ 12.570718][ T237] RDX: 00000000331f5708 RSI: fffffffffffffff0 RDI: 0000000000000000 [ 12.570719][ T237] RBP: 00007ffe3807ab30 R08: 0000000000000000 R09: 00000000331f63e0 [ 12.570719][ T237] R10: 0000000000000110 R11: 0000000000000246 R12: 00007ffe3807ac68 [ 12.570720][ T237] R13: 00007ffe3807acf0 R14: 0000000000000000 R15: 000000000054d560 [ 12.570727][ T237]