[ 32.381159][ T241] packetdrill (241) used greatest stack depth: 24416 bytes left [ 32.381175][ T241] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 32.381177][ T241] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 241, name: packetdrill [ 32.381179][ T241] preempt_count: 2, expected: 0 [ 32.381180][ T241] RCU nest depth: 0, expected: 0 [ 32.381181][ T241] locks held by packetdrill/241: 5, last CPU#2: [ 32.381183][ T241] #0: ffffffffaf4027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 32.381196][ T241] #1: ffffffffaf569cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 32.381201][ T241] #2: ffffffffaf569d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 32.381204][ T241] #3: ffffffffaf489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 32.381208][ T241] #4: ffffffffaf489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 32.381211][ T241] irq event stamp: 4411910 [ 32.381212][ T241] hardirqs last enabled at (4411909): [] __down_trylock_console_sem+0x86/0xa0 [ 32.381215][ T241] hardirqs last disabled at (4411910): [] console_emit_next_record+0x3d4/0x4c0 [ 32.381216][ T241] softirqs last enabled at (4411682): [] tcp_close+0x2b/0xb0 [ 32.381221][ T241] softirqs last disabled at (4411680): [] release_sock+0x21/0x240 [ 32.381224][ T241] Preemption disabled at: [ 32.381225][ T241] [<0000000000000000>] 0x0 [ 32.381232][ T241] CPU: 2 UID: 0 PID: 241 Comm: packetdrill Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 32.381235][ T241] Tainted: [W]=WARN [ 32.381236][ T241] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 32.381238][ T241] Call Trace: [ 32.381239][ T241] [ 32.381241][ T241] dump_stack_lvl+0x6f/0xa0 [ 32.381246][ T241] __might_resched.cold+0x1fe/0x2c1 [ 32.381251][ T241] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 32.381254][ T241] ? __kmalloc_noprof+0xdb/0x760 [ 32.381259][ T241] __kmalloc_noprof+0x443/0x760 [ 32.381261][ T241] ? alloc_buf.isra.0+0x4b/0x260 [ 32.381267][ T241] ? do_raw_spin_unlock+0x59/0x250 [ 32.381270][ T241] alloc_buf.isra.0+0x4b/0x260 [ 32.381273][ T241] put_chars+0x1e1/0x2f0 [ 32.381276][ T241] ? __send_to_port+0x420/0x420 [ 32.381278][ T241] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 32.381282][ T241] ? validate_chain+0x38b/0xc20 [ 32.381287][ T241] hvc_console_print+0x292/0x780 [ 32.381294][ T241] ? hvc_write+0x3a0/0x3a0 [ 32.381296][ T241] ? rcu_is_watching+0x16/0xd0 [ 32.381298][ T241] ? lock_acquire+0x13c/0x160 [ 32.381302][ T241] console_emit_next_record+0x22f/0x4c0 [ 32.381305][ T241] ? devkmsg_read+0x4b0/0x4b0 [ 32.381306][ T241] ? console_flush_one_record+0x106/0x710 [ 32.381309][ T241] ? rcu_is_watching+0x16/0xd0 [ 32.381311][ T241] ? lock_acquire+0x13c/0x160 [ 32.381315][ T241] console_flush_one_record+0x46f/0x710 [ 32.381318][ T241] ? console_emit_next_record+0x4c0/0x4c0 [ 32.381319][ T241] ? __lock_acquire+0x518/0xc20 [ 32.381325][ T241] console_unlock+0xee/0x1f0 [ 32.381327][ T241] ? console_flush_one_record+0x710/0x710 [ 32.381328][ T241] ? rcu_is_watching+0x16/0xd0 [ 32.381330][ T241] ? lock_acquire+0x60/0x160 [ 32.381333][ T241] ? __down_trylock_console_sem+0x5e/0xa0 [ 32.381335][ T241] ? vprintk_emit+0x320/0x3e0 [ 32.381338][ T241] vprintk_emit+0x37c/0x3e0 [ 32.381341][ T241] ? wake_up_klogd_work_func+0x90/0x90 [ 32.381344][ T241] ? __lock_acquire+0x518/0xc20 [ 32.381347][ T241] _printk+0xc7/0x100 [ 32.381351][ T241] ? snapshot_read.cold+0x21/0x21 [ 32.381354][ T241] ? do_raw_spin_lock+0x131/0x280 [ 32.381357][ T241] ? __rwlock_init+0x150/0x150 [ 32.381361][ T241] ? do_raw_spin_lock+0x131/0x280 [ 32.381364][ T241] do_exit.cold+0x82/0x9c [ 32.381367][ T241] ? exit_notify+0x890/0x890 [ 32.381368][ T241] ? __lock_release.isra.0+0x69/0x1a0 [ 32.381371][ T241] ? rcu_is_watching+0x16/0xd0 [ 32.381375][ T241] do_group_exit+0xb8/0x370 [ 32.381378][ T241] __x64_sys_exit_group+0x3c/0x50 [ 32.381380][ T241] x64_sys_call+0x1567/0x1570 [ 32.381382][ T241] do_syscall_64+0xff/0x530 [ 32.381386][ T241] ? irq_exit_rcu+0x1a/0x30 [ 32.381389][ T241] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 32.381391][ T241] RIP: 0033:0x479678 [ 32.381393][ T241] Code: Unable to access opcode bytes at 0x47964e. [ 32.381394][ T241] RSP: 002b:00007ffd47385e78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.381397][ T241] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000479678 [ 32.381398][ T241] RDX: 000000001ca3b708 RSI: fffffffffffffff0 RDI: 0000000000000000 [ 32.381399][ T241] RBP: 00007ffd47385ed0 R08: 0000000000000000 R09: 000000001ca3c3e0 [ 32.381400][ T241] R10: 0000000000000110 R11: 0000000000000246 R12: 00007ffd47386008 [ 32.381401][ T241] R13: 00007ffd47386090 R14: 0000000000000000 R15: 000000000054d560 [ 32.381407][ T241]