[ 13.216487][ T204] packetdrill (204) used greatest stack depth: 24160 bytes left [ 13.216508][ T204] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 13.216511][ T204] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 204, name: packetdrill [ 13.216513][ T204] preempt_count: 2, expected: 0 [ 13.216514][ T204] RCU nest depth: 0, expected: 0 [ 13.216516][ T204] locks held by packetdrill/204: 5, last CPU#2: [ 13.216518][ T204] #0: fffffffface027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 13.216534][ T204] #1: ffffffffacf69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 13.216540][ T204] #2: ffffffffacf69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 13.216545][ T204] #3: fffffffface89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 13.216550][ T204] #4: fffffffface89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 13.216555][ T204] irq event stamp: 3940998 [ 13.216556][ T204] hardirqs last enabled at (3940997): [] __down_trylock_console_sem+0x86/0xa0 [ 13.216560][ T204] hardirqs last disabled at (3940998): [] console_emit_next_record+0x3d4/0x4c0 [ 13.216563][ T204] softirqs last enabled at (3940770): [] tcp_close+0x2b/0xb0 [ 13.216568][ T204] softirqs last disabled at (3940768): [] release_sock+0x21/0x240 [ 13.216572][ T204] Preemption disabled at: [ 13.216573][ T204] [<0000000000000000>] 0x0 [ 13.216582][ T204] CPU: 2 UID: 0 PID: 204 Comm: packetdrill Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 13.216586][ T204] Tainted: [W]=WARN [ 13.216587][ T204] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.216589][ T204] Call Trace: [ 13.216591][ T204] [ 13.216593][ T204] dump_stack_lvl+0x6f/0xa0 [ 13.216601][ T204] __might_resched.cold+0x1fe/0x2c1 [ 13.216607][ T204] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 13.216612][ T204] ? __kmalloc_noprof+0xdb/0x760 [ 13.216619][ T204] __kmalloc_noprof+0x443/0x760 [ 13.216622][ T204] ? alloc_buf.isra.0+0x4b/0x260 [ 13.216634][ T204] ? do_raw_spin_unlock+0x59/0x250 [ 13.216638][ T204] alloc_buf.isra.0+0x4b/0x260 [ 13.216643][ T204] put_chars+0x1e1/0x2f0 [ 13.216647][ T204] ? __send_to_port+0x420/0x420 [ 13.216649][ T204] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 13.216655][ T204] ? validate_chain+0x38b/0xc20 [ 13.216663][ T204] hvc_console_print+0x292/0x780 [ 13.216673][ T204] ? hvc_write+0x3a0/0x3a0 [ 13.216677][ T204] ? rcu_is_watching+0x16/0xd0 [ 13.216680][ T204] ? lock_acquire+0x13c/0x160 [ 13.216687][ T204] console_emit_next_record+0x22f/0x4c0 [ 13.216692][ T204] ? devkmsg_read+0x4b0/0x4b0 [ 13.216694][ T204] ? console_flush_one_record+0x106/0x710 [ 13.216698][ T204] ? rcu_is_watching+0x16/0xd0 [ 13.216701][ T204] ? lock_acquire+0x13c/0x160 [ 13.216707][ T204] console_flush_one_record+0x46f/0x710 [ 13.216713][ T204] ? console_emit_next_record+0x4c0/0x4c0 [ 13.216715][ T204] ? __lock_acquire+0x518/0xc20 [ 13.216723][ T204] console_unlock+0xee/0x1f0 [ 13.216727][ T204] ? console_flush_one_record+0x710/0x710 [ 13.216729][ T204] ? rcu_is_watching+0x16/0xd0 [ 13.216731][ T204] ? lock_acquire+0x60/0x160 [ 13.216737][ T204] ? __down_trylock_console_sem+0x5e/0xa0 [ 13.216740][ T204] ? vprintk_emit+0x320/0x3e0 [ 13.216744][ T204] vprintk_emit+0x37c/0x3e0 [ 13.216749][ T204] ? wake_up_klogd_work_func+0x90/0x90 [ 13.216754][ T204] ? __lock_acquire+0x518/0xc20 [ 13.216760][ T204] _printk+0xc7/0x100 [ 13.216765][ T204] ? snapshot_read.cold+0x21/0x21 [ 13.216769][ T204] ? do_raw_spin_lock+0x131/0x280 [ 13.216773][ T204] ? __rwlock_init+0x150/0x150 [ 13.216779][ T204] ? do_raw_spin_lock+0x131/0x280 [ 13.216783][ T204] do_exit.cold+0x82/0x9c [ 13.216788][ T204] ? exit_notify+0x890/0x890 [ 13.216790][ T204] ? __lock_release.isra.0+0x69/0x1a0 [ 13.216795][ T204] ? rcu_is_watching+0x16/0xd0 [ 13.216800][ T204] do_group_exit+0xb8/0x370 [ 13.216805][ T204] __x64_sys_exit_group+0x3c/0x50 [ 13.216808][ T204] x64_sys_call+0x1567/0x1570 [ 13.216812][ T204] do_syscall_64+0xff/0x530 [ 13.216816][ T204] ? irq_exit_rcu+0x1a/0x30 [ 13.216820][ T204] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.216824][ T204] RIP: 0033:0x479678 [ 13.216827][ T204] Code: Unable to access opcode bytes at 0x47964e. [ 13.216828][ T204] RSP: 002b:00007fffe54b8528 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 13.216831][ T204] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000479678 [ 13.216833][ T204] RDX: 000000000101b708 RSI: fffffffffffffff0 RDI: 0000000000000000 [ 13.216835][ T204] RBP: 00007fffe54b8580 R08: 0000000000000000 R09: 000000000101c3e0 [ 13.216836][ T204] R10: 0000000000000110 R11: 0000000000000246 R12: 00007fffe54b86b8 [ 13.216837][ T204] R13: 00007fffe54b8740 R14: 0000000000000000 R15: 000000000054d560 [ 13.216848][ T204]