[ 11.740706][ T167] packetdrill (167) used greatest stack depth: 24152 bytes left [ 11.740722][ T167] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.740724][ T167] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 167, name: packetdrill [ 11.740726][ T167] preempt_count: 2, expected: 0 [ 11.740727][ T167] RCU nest depth: 0, expected: 0 [ 11.740728][ T167] locks held by packetdrill/167: 5, last CPU#2: [ 11.740730][ T167] #0: ffffffffb12027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 11.740742][ T167] #1: ffffffffb1369cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.740747][ T167] #2: ffffffffb1369d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.740750][ T167] #3: ffffffffb1289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.740753][ T167] #4: ffffffffb1289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.740757][ T167] irq event stamp: 3996236 [ 11.740757][ T167] hardirqs last enabled at (3996235): [] __down_trylock_console_sem+0x86/0xa0 [ 11.740761][ T167] hardirqs last disabled at (3996236): [] console_emit_next_record+0x3d4/0x4c0 [ 11.740762][ T167] softirqs last enabled at (3996144): [] handle_softirqs+0x67c/0x900 [ 11.740764][ T167] softirqs last disabled at (3995515): [] __irq_exit_rcu+0x145/0x1c0 [ 11.740766][ T167] Preemption disabled at: [ 11.740767][ T167] [<0000000000000000>] 0x0 [ 11.740774][ T167] CPU: 2 UID: 0 PID: 167 Comm: packetdrill Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.740777][ T167] Tainted: [W]=WARN [ 11.740778][ T167] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.740780][ T167] Call Trace: [ 11.740781][ T167] [ 11.740782][ T167] dump_stack_lvl+0x6f/0xa0 [ 11.740788][ T167] __might_resched.cold+0x1fe/0x2c1 [ 11.740792][ T167] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.740796][ T167] ? __kmalloc_noprof+0xdb/0x760 [ 11.740801][ T167] __kmalloc_noprof+0x443/0x760 [ 11.740803][ T167] ? alloc_buf.isra.0+0x4b/0x260 [ 11.740809][ T167] ? do_raw_spin_unlock+0x59/0x250 [ 11.740812][ T167] alloc_buf.isra.0+0x4b/0x260 [ 11.740816][ T167] put_chars+0x1e1/0x2f0 [ 11.740819][ T167] ? __send_to_port+0x420/0x420 [ 11.740820][ T167] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.740824][ T167] ? validate_chain+0x38b/0xc20 [ 11.740829][ T167] hvc_console_print+0x292/0x780 [ 11.740836][ T167] ? hvc_write+0x3a0/0x3a0 [ 11.740838][ T167] ? rcu_is_watching+0x16/0xd0 [ 11.740840][ T167] ? lock_acquire+0x13c/0x160 [ 11.740844][ T167] console_emit_next_record+0x22f/0x4c0 [ 11.740847][ T167] ? devkmsg_read+0x4b0/0x4b0 [ 11.740849][ T167] ? console_flush_one_record+0x106/0x710 [ 11.740851][ T167] ? rcu_is_watching+0x16/0xd0 [ 11.740853][ T167] ? lock_acquire+0x13c/0x160 [ 11.740857][ T167] console_flush_one_record+0x46f/0x710 [ 11.740860][ T167] ? console_emit_next_record+0x4c0/0x4c0 [ 11.740862][ T167] ? __lock_acquire+0x518/0xc20 [ 11.740867][ T167] console_unlock+0xee/0x1f0 [ 11.740869][ T167] ? console_flush_one_record+0x710/0x710 [ 11.740871][ T167] ? rcu_is_watching+0x16/0xd0 [ 11.740872][ T167] ? lock_acquire+0x60/0x160 [ 11.740876][ T167] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.740878][ T167] ? vprintk_emit+0x320/0x3e0 [ 11.740881][ T167] vprintk_emit+0x37c/0x3e0 [ 11.740884][ T167] ? wake_up_klogd_work_func+0x90/0x90 [ 11.740885][ T167] ? do_raw_spin_unlock+0x59/0x250 [ 11.740888][ T167] ? __lock_acquire+0x518/0xc20 [ 11.740892][ T167] _printk+0xc7/0x100 [ 11.740895][ T167] ? snapshot_read.cold+0x21/0x21 [ 11.740898][ T167] ? do_raw_spin_lock+0x131/0x280 [ 11.740901][ T167] ? __rwlock_init+0x150/0x150 [ 11.740905][ T167] ? do_raw_spin_lock+0x131/0x280 [ 11.740908][ T167] do_exit.cold+0x82/0x9c [ 11.740911][ T167] ? exit_notify+0x890/0x890 [ 11.740912][ T167] ? __lock_release.isra.0+0x69/0x1a0 [ 11.740915][ T167] ? rcu_is_watching+0x16/0xd0 [ 11.740919][ T167] do_group_exit+0xb8/0x370 [ 11.740922][ T167] __x64_sys_exit_group+0x3c/0x50 [ 11.740924][ T167] x64_sys_call+0x1567/0x1570 [ 11.740926][ T167] do_syscall_64+0xff/0x530 [ 11.740930][ T167] ? irq_exit_rcu+0x1a/0x30 [ 11.740934][ T167] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.740937][ T167] RIP: 0033:0x479678 [ 11.740940][ T167] Code: Unable to access opcode bytes at 0x47964e. [ 11.740941][ T167] RSP: 002b:00007ffc47797198 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 11.740943][ T167] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000479678 [ 11.740945][ T167] RDX: 000000000cc7c708 RSI: fffffffffffffff0 RDI: 0000000000000000 [ 11.740946][ T167] RBP: 00007ffc477971f0 R08: 0000000000000000 R09: 000000000cc7d3e0 [ 11.740946][ T167] R10: 0000000000000110 R11: 0000000000000246 R12: 00007ffc47797328 [ 11.740947][ T167] R13: 00007ffc477973b0 R14: 0000000000000000 R15: 000000000054d560 [ 11.740954][ T167]