[ 14.260927][ T169] packetdrill (169) used greatest stack depth: 23512 bytes left [ 14.260946][ T169] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 14.260948][ T169] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 169, name: packetdrill [ 14.260949][ T169] preempt_count: 2, expected: 0 [ 14.260951][ T169] RCU nest depth: 0, expected: 0 [ 14.260951][ T169] locks held by packetdrill/169: 5, last CPU#0: [ 14.260953][ T169] #0: ffffffffa42027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 14.260965][ T169] #1: ffffffffa4369cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 14.260970][ T169] #2: ffffffffa4369d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 14.260974][ T169] #3: ffffffffa4289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 14.260977][ T169] #4: ffffffffa4289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 14.260980][ T169] irq event stamp: 2639008 [ 14.260981][ T169] hardirqs last enabled at (2639007): [] __down_trylock_console_sem+0x86/0xa0 [ 14.260984][ T169] hardirqs last disabled at (2639008): [] console_emit_next_record+0x3d4/0x4c0 [ 14.260986][ T169] softirqs last enabled at (2638762): [] tcp_close+0x2b/0xb0 [ 14.260990][ T169] softirqs last disabled at (2638760): [] release_sock+0x21/0x240 [ 14.260993][ T169] Preemption disabled at: [ 14.260994][ T169] [<0000000000000000>] 0x0 [ 14.261001][ T169] CPU: 0 UID: 0 PID: 169 Comm: packetdrill Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 14.261004][ T169] Tainted: [W]=WARN [ 14.261005][ T169] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.261007][ T169] Call Trace: [ 14.261008][ T169] [ 14.261013][ T169] dump_stack_lvl+0x6f/0xa0 [ 14.261018][ T169] __might_resched.cold+0x1fe/0x2c1 [ 14.261023][ T169] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 14.261026][ T169] ? __kmalloc_noprof+0xdb/0x760 [ 14.261031][ T169] __kmalloc_noprof+0x443/0x760 [ 14.261034][ T169] ? alloc_buf.isra.0+0x4b/0x260 [ 14.261039][ T169] ? do_raw_spin_unlock+0x59/0x250 [ 14.261042][ T169] alloc_buf.isra.0+0x4b/0x260 [ 14.261046][ T169] put_chars+0x1e1/0x2f0 [ 14.261049][ T169] ? __send_to_port+0x420/0x420 [ 14.261050][ T169] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 14.261055][ T169] ? validate_chain+0x38b/0xc20 [ 14.261060][ T169] hvc_console_print+0x292/0x780 [ 14.261066][ T169] ? hvc_write+0x3a0/0x3a0 [ 14.261068][ T169] ? rcu_is_watching+0x16/0xd0 [ 14.261070][ T169] ? lock_acquire+0x13c/0x160 [ 14.261074][ T169] console_emit_next_record+0x22f/0x4c0 [ 14.261078][ T169] ? devkmsg_read+0x4b0/0x4b0 [ 14.261079][ T169] ? console_flush_one_record+0x106/0x710 [ 14.261081][ T169] ? rcu_is_watching+0x16/0xd0 [ 14.261083][ T169] ? lock_acquire+0x13c/0x160 [ 14.261087][ T169] console_flush_one_record+0x46f/0x710 [ 14.261091][ T169] ? console_emit_next_record+0x4c0/0x4c0 [ 14.261092][ T169] ? __lock_acquire+0x518/0xc20 [ 14.261097][ T169] console_unlock+0xee/0x1f0 [ 14.261099][ T169] ? console_flush_one_record+0x710/0x710 [ 14.261100][ T169] ? rcu_is_watching+0x16/0xd0 [ 14.261102][ T169] ? lock_acquire+0x60/0x160 [ 14.261106][ T169] ? __down_trylock_console_sem+0x5e/0xa0 [ 14.261108][ T169] ? vprintk_emit+0x320/0x3e0 [ 14.261110][ T169] vprintk_emit+0x37c/0x3e0 [ 14.261114][ T169] ? wake_up_klogd_work_func+0x90/0x90 [ 14.261115][ T169] ? do_raw_spin_unlock+0x59/0x250 [ 14.261118][ T169] ? __lock_acquire+0x518/0xc20 [ 14.261122][ T169] _printk+0xc7/0x100 [ 14.261125][ T169] ? snapshot_read.cold+0x21/0x21 [ 14.261128][ T169] ? do_raw_spin_lock+0x131/0x280 [ 14.261131][ T169] ? __rwlock_init+0x150/0x150 [ 14.261135][ T169] ? do_raw_spin_lock+0x131/0x280 [ 14.261137][ T169] do_exit.cold+0x82/0x9c [ 14.261141][ T169] ? exit_notify+0x890/0x890 [ 14.261142][ T169] ? __lock_release.isra.0+0x69/0x1a0 [ 14.261145][ T169] ? rcu_is_watching+0x16/0xd0 [ 14.261148][ T169] do_group_exit+0xb8/0x370 [ 14.261151][ T169] __x64_sys_exit_group+0x3c/0x50 [ 14.261153][ T169] x64_sys_call+0x1567/0x1570 [ 14.261156][ T169] do_syscall_64+0xff/0x530 [ 14.261159][ T169] ? irq_exit_rcu+0x1a/0x30 [ 14.261162][ T169] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 14.261164][ T169] RIP: 0033:0x479678 [ 14.261167][ T169] Code: Unable to access opcode bytes at 0x47964e. [ 14.261168][ T169] RSP: 002b:00007ffe3432c0f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 14.261170][ T169] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000479678 [ 14.261171][ T169] RDX: 0000000038941708 RSI: fffffffffffffff0 RDI: 0000000000000000 [ 14.261172][ T169] RBP: 00007ffe3432c150 R08: 0000000000000000 R09: 00000000389423e0 [ 14.261173][ T169] R10: 0000000000000110 R11: 0000000000000246 R12: 00007ffe3432c288 [ 14.261174][ T169] R13: 00007ffe3432c310 R14: 0000000000000000 R15: 000000000054d560 [ 14.261180][ T169]