[ 10.661513][ T174] tun: Universal TUN/TAP device driver, 1.6 [ 10.661532][ T174] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.661534][ T174] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 174, name: modprobe [ 10.661536][ T174] preempt_count: 1, expected: 0 [ 10.661537][ T174] RCU nest depth: 0, expected: 0 [ 10.661538][ T174] locks held by modprobe/174: 4, last CPU#0: [ 10.661540][ T174] #0: ffffffffb9b6a440 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.661552][ T174] #1: ffffffffb9b6a4b8 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.661556][ T174] #2: ffffffffb9a89de0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.661559][ T174] #3: ffffffffb9a89ce0 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.661563][ T174] irq event stamp: 42584 [ 10.661563][ T174] hardirqs last enabled at (42583): [] __down_trylock_console_sem+0x86/0xa0 [ 10.661567][ T174] hardirqs last disabled at (42584): [] console_emit_next_record+0x3d4/0x4c0 [ 10.661568][ T174] softirqs last enabled at (39776): [] handle_softirqs+0x67c/0x900 [ 10.661572][ T174] softirqs last disabled at (39003): [] __irq_exit_rcu+0x145/0x1c0 [ 10.661574][ T174] Preemption disabled at: [ 10.661575][ T174] [] vprintk_emit+0x31b/0x3e0 [ 10.661580][ T174] CPU: 0 UID: 0 PID: 174 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.661583][ T174] Tainted: [W]=WARN [ 10.661584][ T174] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.661586][ T174] Call Trace: [ 10.661587][ T174] [ 10.661589][ T174] dump_stack_lvl+0x6f/0xa0 [ 10.661594][ T174] ? vprintk_emit+0x31b/0x3e0 [ 10.661595][ T174] __might_resched.cold+0x1fe/0x2c1 [ 10.661600][ T174] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.661603][ T174] ? __kmalloc_noprof+0xdb/0x760 [ 10.661608][ T174] __kmalloc_noprof+0x443/0x760 [ 10.661610][ T174] ? alloc_buf.isra.0+0x4b/0x260 [ 10.661617][ T174] ? do_raw_spin_unlock+0x59/0x250 [ 10.661620][ T174] alloc_buf.isra.0+0x4b/0x260 [ 10.661623][ T174] put_chars+0x1e1/0x2f0 [ 10.661626][ T174] ? __send_to_port+0x420/0x420 [ 10.661629][ T174] ? validate_chain+0x38b/0xc20 [ 10.661634][ T174] hvc_console_print+0x292/0x780 [ 10.661641][ T174] ? hvc_write+0x3a0/0x3a0 [ 10.661643][ T174] ? rcu_is_watching+0x16/0xd0 [ 10.661646][ T174] ? lock_acquire+0x13c/0x160 [ 10.661651][ T174] console_emit_next_record+0x22f/0x4c0 [ 10.661654][ T174] ? devkmsg_read+0x4b0/0x4b0 [ 10.661655][ T174] ? console_flush_one_record+0x106/0x710 [ 10.661658][ T174] ? rcu_is_watching+0x16/0xd0 [ 10.661660][ T174] ? lock_acquire+0x13c/0x160 [ 10.661664][ T174] console_flush_one_record+0x46f/0x710 [ 10.661667][ T174] ? console_emit_next_record+0x4c0/0x4c0 [ 10.661669][ T174] ? __lock_acquire+0x518/0xc20 [ 10.661674][ T174] console_unlock+0xee/0x1f0 [ 10.661676][ T174] ? console_flush_one_record+0x710/0x710 [ 10.661677][ T174] ? rcu_is_watching+0x16/0xd0 [ 10.661679][ T174] ? lock_acquire+0x60/0x160 [ 10.661683][ T174] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.661685][ T174] ? vprintk_emit+0x320/0x3e0 [ 10.661688][ T174] vprintk_emit+0x37c/0x3e0 [ 10.661692][ T174] ? wake_up_klogd_work_func+0x90/0x90 [ 10.661697][ T174] ? tun_cleanup+0x630/0x630 [tun] [ 10.661701][ T174] _printk+0xc7/0x100 [ 10.661705][ T174] ? snapshot_read.cold+0x21/0x21 [ 10.661711][ T174] ? do_one_initcall+0x113/0x4f0 [ 10.661715][ T174] tun_init+0x24/0x1000 [tun] [ 10.661718][ T174] do_one_initcall+0x124/0x4f0 [ 10.661721][ T174] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.661726][ T174] ? do_init_module+0xae/0x8a0 [ 10.661728][ T174] ? kasan_unpoison+0x44/0x70 [ 10.661733][ T174] do_init_module+0x2ad/0x8a0 [ 10.661736][ T174] ? lockdep_hardirqs_on+0x91/0x130 [ 10.661741][ T174] ? free_module+0x470/0x470 [ 10.661743][ T174] ? kfree+0x123/0x590 [ 10.661747][ T174] load_module+0x154b/0x1d60 [ 10.661754][ T174] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.661761][ T174] init_module_from_file+0x11f/0x1a0 [ 10.661764][ T174] ? __ia32_sys_init_module+0xc0/0xc0 [ 10.661772][ T174] ? __rwlock_init+0x150/0x150 [ 10.661775][ T174] ? do_raw_spin_unlock+0x59/0x250 [ 10.661778][ T174] idempotent_init_module+0x37b/0x7c0 [ 10.661781][ T174] ? init_module_from_file+0x1a0/0x1a0 [ 10.661787][ T174] ? rcu_is_watching+0x16/0xd0 [ 10.661789][ T174] ? cap_capable+0x1d7/0x3d0 [ 10.661794][ T174] __x64_sys_finit_module+0xdf/0x190 [ 10.661796][ T174] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.661800][ T174] do_syscall_64+0x10e/0x570 [ 10.661802][ T174] ? exc_page_fault+0xee/0x100 [ 10.661805][ T174] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.661807][ T174] RIP: 0033:0x7f94552f337d [ 10.661811][ T174] 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.661812][ T174] RSP: 002b:00007fff9f856de8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.661814][ T174] RAX: ffffffffffffffda RBX: 000055d293a09980 RCX: 00007f94552f337d [ 10.661816][ T174] RDX: 0000000000000000 RSI: 000055d27ffc0ffd RDI: 0000000000000005 [ 10.661817][ T174] RBP: 00007fff9f856e80 R08: 0000000000000000 R09: 0000000000000000 [ 10.661818][ T174] R10: 0000000000000000 R11: 0000000000000246 R12: 000055d27ffc0ffd [ 10.661818][ T174] R13: 000055d293a09aa0 R14: 0000000000040000 R15: 0000000000000000 [ 10.661825][ T174] [ 12.891236][ T211] packetdrill (211) used greatest stack depth: 23464 bytes left [ 12.891253][ T211] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.891255][ T211] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 211, name: packetdrill [ 12.891257][ T211] preempt_count: 2, expected: 0 [ 12.891258][ T211] RCU nest depth: 0, expected: 0 [ 12.891259][ T211] locks held by packetdrill/211: 5, last CPU#2: [ 12.891261][ T211] #0: ffffffffb9a02f58 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x8e7/0xef0 [ 12.891273][ T211] #1: ffffffffb9b6a440 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.891278][ T211] #2: ffffffffb9b6a4b8 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.891285][ T211] #3: ffffffffb9a89de0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.891288][ T211] #4: ffffffffb9a89ce0 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.891292][ T211] irq event stamp: 4174124 [ 12.891292][ T211] hardirqs last enabled at (4174123): [] __down_trylock_console_sem+0x86/0xa0 [ 12.891296][ T211] hardirqs last disabled at (4174124): [] console_emit_next_record+0x3d4/0x4c0 [ 12.891298][ T211] softirqs last enabled at (4173896): [] tcp_close+0x2b/0xb0 [ 12.891302][ T211] softirqs last disabled at (4173894): [] release_sock+0x21/0x240 [ 12.891306][ T211] Preemption disabled at: [ 12.891307][ T211] [<0000000000000000>] 0x0 [ 12.891314][ T211] CPU: 2 UID: 0 PID: 211 Comm: packetdrill Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.891317][ T211] Tainted: [W]=WARN [ 12.891318][ T211] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.891320][ T211] Call Trace: [ 12.891322][ T211] [ 12.891323][ T211] dump_stack_lvl+0x6f/0xa0 [ 12.891329][ T211] __might_resched.cold+0x1fe/0x2c1 [ 12.891334][ T211] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.891337][ T211] ? __kmalloc_noprof+0xdb/0x760 [ 12.891343][ T211] __kmalloc_noprof+0x443/0x760 [ 12.891345][ T211] ? alloc_buf.isra.0+0x4b/0x260 [ 12.891351][ T211] ? do_raw_spin_unlock+0x59/0x250 [ 12.891354][ T211] alloc_buf.isra.0+0x4b/0x260 [ 12.891358][ T211] put_chars+0x1e1/0x2f0 [ 12.891360][ T211] ? __send_to_port+0x420/0x420 [ 12.891367][ T211] hvc_console_print+0x292/0x780 [ 12.891374][ T211] ? hvc_write+0x3a0/0x3a0 [ 12.891377][ T211] ? lock_acquire+0x13c/0x160 [ 12.891381][ T211] console_emit_next_record+0x22f/0x4c0 [ 12.891385][ T211] ? devkmsg_read+0x4b0/0x4b0 [ 12.891386][ T211] ? console_flush_one_record+0x106/0x710 [ 12.891389][ T211] ? rcu_is_watching+0x16/0xd0 [ 12.891392][ T211] ? lock_acquire+0x13c/0x160 [ 12.891396][ T211] console_flush_one_record+0x46f/0x710 [ 12.891400][ T211] ? console_emit_next_record+0x4c0/0x4c0 [ 12.891401][ T211] ? __lock_acquire+0x518/0xc20 [ 12.891406][ T211] console_unlock+0xee/0x1f0 [ 12.891409][ T211] ? console_flush_one_record+0x710/0x710 [ 12.891410][ T211] ? rcu_is_watching+0x16/0xd0 [ 12.891412][ T211] ? lock_acquire+0x60/0x160 [ 12.891415][ T211] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.891417][ T211] ? vprintk_emit+0x320/0x3e0 [ 12.891420][ T211] vprintk_emit+0x37c/0x3e0 [ 12.891423][ T211] ? wake_up_klogd_work_func+0x90/0x90 [ 12.891426][ T211] ? __lock_acquire+0x518/0xc20 [ 12.891430][ T211] _printk+0xc7/0x100 [ 12.891434][ T211] ? snapshot_read.cold+0x21/0x21 [ 12.891437][ T211] ? do_raw_spin_lock+0x131/0x280 [ 12.891439][ T211] ? __rwlock_init+0x150/0x150 [ 12.891443][ T211] ? do_raw_spin_lock+0x131/0x280 [ 12.891446][ T211] do_exit.cold+0x82/0x9c [ 12.891450][ T211] ? exit_notify+0x890/0x890 [ 12.891451][ T211] ? __lock_release.isra.0+0x69/0x1a0 [ 12.891454][ T211] ? rcu_is_watching+0x16/0xd0 [ 12.891458][ T211] do_group_exit+0xb8/0x370 [ 12.891461][ T211] __x64_sys_exit_group+0x3c/0x50 [ 12.891463][ T211] x64_sys_call+0x1567/0x1570 [ 12.891466][ T211] do_syscall_64+0x10e/0x570 [ 12.891469][ T211] ? irq_exit_rcu+0x1a/0x30 [ 12.891473][ T211] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.891475][ T211] RIP: 0033:0x479678 [ 12.891477][ T211] Code: Unable to access opcode bytes at 0x47964e. [ 12.891479][ T211] RSP: 002b:00007ffe3129feb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 12.891481][ T211] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000479678 [ 12.891483][ T211] RDX: 000000000816c708 RSI: fffffffffffffff0 RDI: 0000000000000000 [ 12.891484][ T211] RBP: 00007ffe3129ff10 R08: 0000000000000000 R09: 000000000816d450 [ 12.891484][ T211] R10: 0000000000000110 R11: 0000000000000246 R12: 00007ffe312a0048 [ 12.891485][ T211] R13: 00007ffe312a0088 R14: 0000000000000000 R15: 000000000054d560 [ 12.891492][ T211]