[ 15.006582][ T202] packetdrill (202) used greatest stack depth: 23616 bytes left [ 15.006598][ T202] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 15.006600][ T202] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 202, name: packetdrill [ 15.006602][ T202] preempt_count: 2, expected: 0 [ 15.006603][ T202] RCU nest depth: 0, expected: 0 [ 15.006604][ T202] locks held by packetdrill/202: 5, last CPU#2: [ 15.006606][ T202] #0: ffffffffaf2027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 15.006618][ T202] #1: ffffffffaf369cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 15.006623][ T202] #2: ffffffffaf369d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 15.006626][ T202] #3: ffffffffaf289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 15.006630][ T202] #4: ffffffffaf289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 15.006634][ T202] irq event stamp: 3421642 [ 15.006634][ T202] hardirqs last enabled at (3421641): [] __down_trylock_console_sem+0x86/0xa0 [ 15.006638][ T202] hardirqs last disabled at (3421642): [] console_emit_next_record+0x3d4/0x4c0 [ 15.006640][ T202] softirqs last enabled at (3421398): [] tcp_close+0x2b/0xb0 [ 15.006644][ T202] softirqs last disabled at (3421396): [] release_sock+0x21/0x240 [ 15.006648][ T202] Preemption disabled at: [ 15.006649][ T202] [<0000000000000000>] 0x0 [ 15.006656][ T202] CPU: 2 UID: 0 PID: 202 Comm: packetdrill Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 15.006659][ T202] Tainted: [W]=WARN [ 15.006660][ T202] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.006662][ T202] Call Trace: [ 15.006664][ T202] [ 15.006665][ T202] dump_stack_lvl+0x6f/0xa0 [ 15.006672][ T202] __might_resched.cold+0x1fe/0x2c1 [ 15.006676][ T202] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 15.006680][ T202] ? __kmalloc_noprof+0xdb/0x760 [ 15.006686][ T202] __kmalloc_noprof+0x443/0x760 [ 15.006688][ T202] ? alloc_buf.isra.0+0x4b/0x260 [ 15.006695][ T202] ? do_raw_spin_unlock+0x59/0x250 [ 15.006698][ T202] alloc_buf.isra.0+0x4b/0x260 [ 15.006702][ T202] put_chars+0x1e1/0x2f0 [ 15.006705][ T202] ? __send_to_port+0x420/0x420 [ 15.006707][ T202] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 15.006711][ T202] ? validate_chain+0x38b/0xc20 [ 15.006717][ T202] hvc_console_print+0x292/0x780 [ 15.006724][ T202] ? hvc_write+0x3a0/0x3a0 [ 15.006727][ T202] ? rcu_is_watching+0x16/0xd0 [ 15.006729][ T202] ? lock_acquire+0x13c/0x160 [ 15.006734][ T202] console_emit_next_record+0x22f/0x4c0 [ 15.006738][ T202] ? devkmsg_read+0x4b0/0x4b0 [ 15.006739][ T202] ? console_flush_one_record+0x106/0x710 [ 15.006742][ T202] ? rcu_is_watching+0x16/0xd0 [ 15.006744][ T202] ? lock_acquire+0x13c/0x160 [ 15.006748][ T202] console_flush_one_record+0x46f/0x710 [ 15.006753][ T202] ? console_emit_next_record+0x4c0/0x4c0 [ 15.006754][ T202] ? __lock_acquire+0x518/0xc20 [ 15.006760][ T202] console_unlock+0xee/0x1f0 [ 15.006763][ T202] ? console_flush_one_record+0x710/0x710 [ 15.006764][ T202] ? rcu_is_watching+0x16/0xd0 [ 15.006766][ T202] ? lock_acquire+0x60/0x160 [ 15.006770][ T202] ? __down_trylock_console_sem+0x5e/0xa0 [ 15.006772][ T202] ? vprintk_emit+0x320/0x3e0 [ 15.006777][ T202] vprintk_emit+0x37c/0x3e0 [ 15.006782][ T202] ? wake_up_klogd_work_func+0x90/0x90 [ 15.006784][ T202] ? do_raw_spin_unlock+0x59/0x250 [ 15.006790][ T202] ? __lock_acquire+0x518/0xc20 [ 15.006796][ T202] _printk+0xc7/0x100 [ 15.006801][ T202] ? snapshot_read.cold+0x21/0x21 [ 15.006806][ T202] ? do_raw_spin_lock+0x131/0x280 [ 15.006810][ T202] ? __rwlock_init+0x150/0x150 [ 15.006817][ T202] ? do_raw_spin_lock+0x131/0x280 [ 15.006822][ T202] do_exit.cold+0x82/0x9c [ 15.006827][ T202] ? exit_notify+0x890/0x890 [ 15.006829][ T202] ? __lock_release.isra.0+0x69/0x1a0 [ 15.006832][ T202] ? rcu_is_watching+0x16/0xd0 [ 15.006836][ T202] do_group_exit+0xb8/0x370 [ 15.006839][ T202] __x64_sys_exit_group+0x3c/0x50 [ 15.006841][ T202] x64_sys_call+0x1567/0x1570 [ 15.006844][ T202] do_syscall_64+0xff/0x530 [ 15.006848][ T202] ? irq_exit_rcu+0x1a/0x30 [ 15.006851][ T202] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 15.006853][ T202] RIP: 0033:0x479678 [ 15.006856][ T202] Code: Unable to access opcode bytes at 0x47964e. [ 15.006857][ T202] RSP: 002b:00007ffe6acf13c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 15.006859][ T202] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000479678 [ 15.006861][ T202] RDX: 000000003bab4708 RSI: fffffffffffffff0 RDI: 0000000000000000 [ 15.006862][ T202] RBP: 00007ffe6acf1420 R08: 0000000000000000 R09: 000000003bab53e0 [ 15.006863][ T202] R10: 0000000000000110 R11: 0000000000000246 R12: 00007ffe6acf1558 [ 15.006864][ T202] R13: 00007ffe6acf15e0 R14: 0000000000000000 R15: 000000000054d560 [ 15.006872][ T202]