[ 10.191553][ T175] tun: Universal TUN/TAP device driver, 1.6 [ 10.191571][ T175] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.191574][ T175] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 175, name: modprobe [ 10.191575][ T175] preempt_count: 1, expected: 0 [ 10.191576][ T175] RCU nest depth: 0, expected: 0 [ 10.191577][ T175] locks held by modprobe/175: 4, last CPU#3: [ 10.191579][ T175] #0: ffffffffac16a440 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.191591][ T175] #1: ffffffffac16a4b8 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.191594][ T175] #2: ffffffffac089de0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.191598][ T175] #3: ffffffffac089ce0 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.191602][ T175] irq event stamp: 44296 [ 10.191602][ T175] hardirqs last enabled at (44295): [] __down_trylock_console_sem+0x86/0xa0 [ 10.191605][ T175] hardirqs last disabled at (44296): [] console_emit_next_record+0x3d4/0x4c0 [ 10.191607][ T175] softirqs last enabled at (41278): [] handle_softirqs+0x67c/0x900 [ 10.191610][ T175] softirqs last disabled at (40755): [] __irq_exit_rcu+0x145/0x1c0 [ 10.191612][ T175] Preemption disabled at: [ 10.191613][ T175] [] vprintk_emit+0x31b/0x3e0 [ 10.191619][ T175] CPU: 3 UID: 0 PID: 175 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.191622][ T175] Tainted: [W]=WARN [ 10.191623][ T175] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.191625][ T175] Call Trace: [ 10.191626][ T175] [ 10.191628][ T175] dump_stack_lvl+0x6f/0xa0 [ 10.191632][ T175] ? vprintk_emit+0x31b/0x3e0 [ 10.191634][ T175] __might_resched.cold+0x1fe/0x2c1 [ 10.191638][ T175] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.191641][ T175] ? __kmalloc_noprof+0xdb/0x760 [ 10.191646][ T175] __kmalloc_noprof+0x443/0x760 [ 10.191648][ T175] ? alloc_buf.isra.0+0x4b/0x260 [ 10.191655][ T175] ? do_raw_spin_unlock+0x59/0x250 [ 10.191657][ T175] alloc_buf.isra.0+0x4b/0x260 [ 10.191660][ T175] put_chars+0x1e1/0x2f0 [ 10.191663][ T175] ? __send_to_port+0x420/0x420 [ 10.191666][ T175] ? validate_chain+0x38b/0xc20 [ 10.191671][ T175] hvc_console_print+0x292/0x780 [ 10.191678][ T175] ? hvc_write+0x3a0/0x3a0 [ 10.191680][ T175] ? rcu_is_watching+0x16/0xd0 [ 10.191683][ T175] ? lock_acquire+0x13c/0x160 [ 10.191687][ T175] console_emit_next_record+0x22f/0x4c0 [ 10.191691][ T175] ? devkmsg_read+0x4b0/0x4b0 [ 10.191692][ T175] ? console_flush_one_record+0x106/0x710 [ 10.191695][ T175] ? rcu_is_watching+0x16/0xd0 [ 10.191696][ T175] ? lock_acquire+0x13c/0x160 [ 10.191700][ T175] console_flush_one_record+0x46f/0x710 [ 10.191704][ T175] ? console_emit_next_record+0x4c0/0x4c0 [ 10.191705][ T175] ? __lock_acquire+0x518/0xc20 [ 10.191710][ T175] console_unlock+0xee/0x1f0 [ 10.191713][ T175] ? console_flush_one_record+0x710/0x710 [ 10.191714][ T175] ? rcu_is_watching+0x16/0xd0 [ 10.191716][ T175] ? lock_acquire+0x60/0x160 [ 10.191719][ T175] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.191721][ T175] ? vprintk_emit+0x320/0x3e0 [ 10.191724][ T175] vprintk_emit+0x37c/0x3e0 [ 10.191727][ T175] ? wake_up_klogd_work_func+0x90/0x90 [ 10.191732][ T175] ? tun_cleanup+0x630/0x630 [tun] [ 10.191736][ T175] _printk+0xc7/0x100 [ 10.191739][ T175] ? snapshot_read.cold+0x21/0x21 [ 10.191745][ T175] ? do_one_initcall+0x113/0x4f0 [ 10.191749][ T175] tun_init+0x24/0x1000 [tun] [ 10.191752][ T175] do_one_initcall+0x124/0x4f0 [ 10.191755][ T175] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.191760][ T175] ? do_init_module+0xae/0x8a0 [ 10.191762][ T175] ? kasan_unpoison+0x44/0x70 [ 10.191766][ T175] do_init_module+0x2ad/0x8a0 [ 10.191770][ T175] ? lockdep_hardirqs_on+0x91/0x130 [ 10.191774][ T175] ? free_module+0x470/0x470 [ 10.191777][ T175] ? kfree+0x123/0x590 [ 10.191781][ T175] load_module+0x154b/0x1d60 [ 10.191787][ T175] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.191794][ T175] init_module_from_file+0x11f/0x1a0 [ 10.191797][ T175] ? __ia32_sys_init_module+0xc0/0xc0 [ 10.191804][ T175] ? __rwlock_init+0x150/0x150 [ 10.191808][ T175] ? do_raw_spin_unlock+0x59/0x250 [ 10.191811][ T175] idempotent_init_module+0x37b/0x7c0 [ 10.191814][ T175] ? init_module_from_file+0x1a0/0x1a0 [ 10.191820][ T175] ? rcu_is_watching+0x16/0xd0 [ 10.191822][ T175] ? cap_capable+0x1d7/0x3d0 [ 10.191827][ T175] __x64_sys_finit_module+0xdf/0x190 [ 10.191828][ T175] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.191832][ T175] do_syscall_64+0x10e/0x570 [ 10.191834][ T175] ? exc_page_fault+0xee/0x100 [ 10.191837][ T175] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.191839][ T175] RIP: 0033:0x7f3589bc737d [ 10.191842][ T175] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 4b aa 0f 00 f7 d8 64 89 01 48 [ 10.191844][ T175] RSP: 002b:00007fff80f90ca8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.191846][ T175] RAX: ffffffffffffffda RBX: 000055d49877f980 RCX: 00007f3589bc737d [ 10.191847][ T175] RDX: 0000000000000000 RSI: 000055d497060ffd RDI: 0000000000000005 [ 10.191848][ T175] RBP: 00007fff80f90d40 R08: 0000000000000000 R09: 0000000000000000 [ 10.191849][ T175] R10: 0000000000000000 R11: 0000000000000246 R12: 000055d497060ffd [ 10.191856][ T175] R13: 000055d49877faa0 R14: 0000000000040000 R15: 0000000000000000 [ 10.191863][ T175] [ 12.309061][ T213] packetdrill (213) used greatest stack depth: 23520 bytes left [ 12.309081][ T213] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.309083][ T213] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 213, name: packetdrill [ 12.309085][ T213] preempt_count: 2, expected: 0 [ 12.309087][ T213] RCU nest depth: 0, expected: 0 [ 12.309088][ T213] locks held by packetdrill/213: 5, last CPU#3: [ 12.309091][ T213] #0: ffffffffac002f58 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x8e7/0xef0 [ 12.309108][ T213] #1: ffffffffac16a440 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.309115][ T213] #2: ffffffffac16a4b8 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.309120][ T213] #3: ffffffffac089de0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.309125][ T213] #4: ffffffffac089ce0 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.309130][ T213] irq event stamp: 4279910 [ 12.309132][ T213] hardirqs last enabled at (4279909): [] __down_trylock_console_sem+0x86/0xa0 [ 12.309136][ T213] hardirqs last disabled at (4279910): [] console_emit_next_record+0x3d4/0x4c0 [ 12.309138][ T213] softirqs last enabled at (4279686): [] tcp_close+0x2b/0xb0 [ 12.309143][ T213] softirqs last disabled at (4279684): [] release_sock+0x21/0x240 [ 12.309148][ T213] Preemption disabled at: [ 12.309148][ T213] [<0000000000000000>] 0x0 [ 12.309157][ T213] CPU: 3 UID: 0 PID: 213 Comm: packetdrill Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.309161][ T213] Tainted: [W]=WARN [ 12.309162][ T213] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.309164][ T213] Call Trace: [ 12.309167][ T213] [ 12.309169][ T213] dump_stack_lvl+0x6f/0xa0 [ 12.309176][ T213] __might_resched.cold+0x1fe/0x2c1 [ 12.309181][ T213] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.309186][ T213] ? __kmalloc_noprof+0xdb/0x760 [ 12.309193][ T213] __kmalloc_noprof+0x443/0x760 [ 12.309197][ T213] ? alloc_buf.isra.0+0x4b/0x260 [ 12.309205][ T213] ? do_raw_spin_unlock+0x59/0x250 [ 12.309209][ T213] alloc_buf.isra.0+0x4b/0x260 [ 12.309214][ T213] put_chars+0x1e1/0x2f0 [ 12.309218][ T213] ? __send_to_port+0x420/0x420 [ 12.309229][ T213] hvc_console_print+0x292/0x780 [ 12.309240][ T213] ? hvc_write+0x3a0/0x3a0 [ 12.309245][ T213] ? lock_acquire+0x13c/0x160 [ 12.309253][ T213] console_emit_next_record+0x22f/0x4c0 [ 12.309258][ T213] ? devkmsg_read+0x4b0/0x4b0 [ 12.309260][ T213] ? console_flush_one_record+0x106/0x710 [ 12.309265][ T213] ? rcu_is_watching+0x16/0xd0 [ 12.309269][ T213] ? lock_acquire+0x13c/0x160 [ 12.309276][ T213] console_flush_one_record+0x46f/0x710 [ 12.309282][ T213] ? console_emit_next_record+0x4c0/0x4c0 [ 12.309284][ T213] ? __lock_acquire+0x518/0xc20 [ 12.309293][ T213] console_unlock+0xee/0x1f0 [ 12.309296][ T213] ? console_flush_one_record+0x710/0x710 [ 12.309298][ T213] ? rcu_is_watching+0x16/0xd0 [ 12.309301][ T213] ? lock_acquire+0x60/0x160 [ 12.309308][ T213] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.309310][ T213] ? vprintk_emit+0x320/0x3e0 [ 12.309315][ T213] vprintk_emit+0x37c/0x3e0 [ 12.309320][ T213] ? wake_up_klogd_work_func+0x90/0x90 [ 12.309325][ T213] ? __lock_acquire+0x518/0xc20 [ 12.309331][ T213] _printk+0xc7/0x100 [ 12.309336][ T213] ? snapshot_read.cold+0x21/0x21 [ 12.309340][ T213] ? do_raw_spin_lock+0x131/0x280 [ 12.309344][ T213] ? __rwlock_init+0x150/0x150 [ 12.309351][ T213] ? do_raw_spin_lock+0x131/0x280 [ 12.309355][ T213] do_exit.cold+0x82/0x9c [ 12.309361][ T213] ? exit_notify+0x890/0x890 [ 12.309363][ T213] ? __lock_release.isra.0+0x69/0x1a0 [ 12.309367][ T213] ? rcu_is_watching+0x16/0xd0 [ 12.309373][ T213] do_group_exit+0xb8/0x370 [ 12.309378][ T213] __x64_sys_exit_group+0x3c/0x50 [ 12.309381][ T213] x64_sys_call+0x1567/0x1570 [ 12.309385][ T213] do_syscall_64+0x10e/0x570 [ 12.309388][ T213] ? irq_exit_rcu+0x1a/0x30 [ 12.309393][ T213] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.309397][ T213] RIP: 0033:0x479678 [ 12.309400][ T213] Code: Unable to access opcode bytes at 0x47964e. [ 12.309401][ T213] RSP: 002b:00007fff7511c378 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 12.309404][ T213] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000479678 [ 12.309406][ T213] RDX: 00000000098d3708 RSI: fffffffffffffff0 RDI: 0000000000000000 [ 12.309408][ T213] RBP: 00007fff7511c3d0 R08: 0000000000000000 R09: 00000000098d4450 [ 12.309409][ T213] R10: 0000000000000110 R11: 0000000000000246 R12: 00007fff7511c508 [ 12.309411][ T213] R13: 00007fff7511c548 R14: 0000000000000000 R15: 000000000054d560 [ 12.309422][ T213]