[ 9.536544][ T175] tun: Universal TUN/TAP device driver, 1.6 [ 9.536563][ T175] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.536565][ T175] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 175, name: modprobe [ 9.536566][ T175] preempt_count: 1, expected: 0 [ 9.536567][ T175] RCU nest depth: 0, expected: 0 [ 9.536568][ T175] locks held by modprobe/175: 4, last CPU#3: [ 9.536570][ T175] #0: ffffffffa696a440 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.536582][ T175] #1: ffffffffa696a4b8 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.536585][ T175] #2: ffffffffa6889de0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.536589][ T175] #3: ffffffffa6889ce0 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.536592][ T175] irq event stamp: 28536 [ 9.536593][ T175] hardirqs last enabled at (28535): [] __down_trylock_console_sem+0x86/0xa0 [ 9.536596][ T175] hardirqs last disabled at (28536): [] console_emit_next_record+0x3d4/0x4c0 [ 9.536597][ T175] softirqs last enabled at (26380): [] handle_softirqs+0x67c/0x900 [ 9.536601][ T175] softirqs last disabled at (25571): [] __irq_exit_rcu+0x145/0x1c0 [ 9.536603][ T175] Preemption disabled at: [ 9.536604][ T175] [] vprintk_emit+0x31b/0x3e0 [ 9.536609][ T175] CPU: 3 UID: 0 PID: 175 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.536613][ T175] Tainted: [W]=WARN [ 9.536614][ T175] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.536616][ T175] Call Trace: [ 9.536617][ T175] [ 9.536618][ T175] dump_stack_lvl+0x6f/0xa0 [ 9.536623][ T175] ? vprintk_emit+0x31b/0x3e0 [ 9.536625][ T175] __might_resched.cold+0x1fe/0x2c1 [ 9.536629][ T175] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.536633][ T175] ? __kmalloc_noprof+0xdb/0x760 [ 9.536638][ T175] __kmalloc_noprof+0x443/0x760 [ 9.536640][ T175] ? alloc_buf.isra.0+0x4b/0x260 [ 9.536646][ T175] ? do_raw_spin_unlock+0x59/0x250 [ 9.536649][ T175] alloc_buf.isra.0+0x4b/0x260 [ 9.536652][ T175] put_chars+0x1e1/0x2f0 [ 9.536655][ T175] ? __send_to_port+0x420/0x420 [ 9.536658][ T175] ? validate_chain+0x38b/0xc20 [ 9.536663][ T175] hvc_console_print+0x292/0x780 [ 9.536670][ T175] ? hvc_write+0x3a0/0x3a0 [ 9.536672][ T175] ? rcu_is_watching+0x16/0xd0 [ 9.536676][ T175] ? lock_acquire+0x13c/0x160 [ 9.536680][ T175] console_emit_next_record+0x22f/0x4c0 [ 9.536683][ T175] ? devkmsg_read+0x4b0/0x4b0 [ 9.536684][ T175] ? console_flush_one_record+0x106/0x710 [ 9.536687][ T175] ? rcu_is_watching+0x16/0xd0 [ 9.536689][ T175] ? lock_acquire+0x13c/0x160 [ 9.536692][ T175] console_flush_one_record+0x46f/0x710 [ 9.536696][ T175] ? console_emit_next_record+0x4c0/0x4c0 [ 9.536697][ T175] ? __lock_acquire+0x518/0xc20 [ 9.536702][ T175] console_unlock+0xee/0x1f0 [ 9.536705][ T175] ? console_flush_one_record+0x710/0x710 [ 9.536706][ T175] ? rcu_is_watching+0x16/0xd0 [ 9.536708][ T175] ? lock_acquire+0x60/0x160 [ 9.536711][ T175] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.536713][ T175] ? vprintk_emit+0x320/0x3e0 [ 9.536716][ T175] vprintk_emit+0x37c/0x3e0 [ 9.536719][ T175] ? wake_up_klogd_work_func+0x90/0x90 [ 9.536724][ T175] ? tun_cleanup+0x630/0x630 [tun] [ 9.536728][ T175] _printk+0xc7/0x100 [ 9.536732][ T175] ? snapshot_read.cold+0x21/0x21 [ 9.536738][ T175] ? do_one_initcall+0x113/0x4f0 [ 9.536741][ T175] tun_init+0x24/0x1000 [tun] [ 9.536744][ T175] do_one_initcall+0x124/0x4f0 [ 9.536747][ T175] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.536752][ T175] ? do_init_module+0xae/0x8a0 [ 9.536754][ T175] ? kasan_unpoison+0x44/0x70 [ 9.536759][ T175] do_init_module+0x2ad/0x8a0 [ 9.536762][ T175] ? lockdep_hardirqs_on+0x91/0x130 [ 9.536766][ T175] ? free_module+0x470/0x470 [ 9.536769][ T175] ? kfree+0x123/0x590 [ 9.536773][ T175] load_module+0x154b/0x1d60 [ 9.536780][ T175] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.536792][ T175] init_module_from_file+0x11f/0x1a0 [ 9.536795][ T175] ? __ia32_sys_init_module+0xc0/0xc0 [ 9.536802][ T175] ? __rwlock_init+0x150/0x150 [ 9.536806][ T175] ? do_raw_spin_unlock+0x59/0x250 [ 9.536809][ T175] idempotent_init_module+0x37b/0x7c0 [ 9.536812][ T175] ? init_module_from_file+0x1a0/0x1a0 [ 9.536818][ T175] ? rcu_is_watching+0x16/0xd0 [ 9.536820][ T175] ? cap_capable+0x1d7/0x3d0 [ 9.536825][ T175] __x64_sys_finit_module+0xdf/0x190 [ 9.536827][ T175] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.536830][ T175] do_syscall_64+0x10e/0x570 [ 9.536832][ T175] ? exc_page_fault+0xee/0x100 [ 9.536835][ T175] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.536837][ T175] RIP: 0033:0x7f2b1be3737d [ 9.536840][ 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 [ 9.536843][ T175] RSP: 002b:00007fff87fd88e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.536845][ T175] RAX: ffffffffffffffda RBX: 000055f126283980 RCX: 00007f2b1be3737d [ 9.536846][ T175] RDX: 0000000000000000 RSI: 000055f118232ffd RDI: 0000000000000005 [ 9.536847][ T175] RBP: 00007fff87fd8980 R08: 0000000000000000 R09: 0000000000000000 [ 9.536848][ T175] R10: 0000000000000000 R11: 0000000000000246 R12: 000055f118232ffd [ 9.536849][ T175] R13: 000055f126283aa0 R14: 0000000000040000 R15: 0000000000000000 [ 9.536855][ T175] [ 10.627893][ T186] packetdrill (186) used greatest stack depth: 23880 bytes left [ 10.627908][ T186] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.627910][ T186] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 186, name: packetdrill [ 10.627912][ T186] preempt_count: 2, expected: 0 [ 10.627913][ T186] RCU nest depth: 0, expected: 0 [ 10.627914][ T186] locks held by packetdrill/186: 5, last CPU#3: [ 10.627916][ T186] #0: ffffffffa6802f58 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x8e7/0xef0 [ 10.627928][ T186] #1: ffffffffa696a440 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.627933][ T186] #2: ffffffffa696a4b8 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.627936][ T186] #3: ffffffffa6889de0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.627939][ T186] #4: ffffffffa6889ce0 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.627943][ T186] irq event stamp: 4045100 [ 10.627943][ T186] hardirqs last enabled at (4045099): [] __down_trylock_console_sem+0x86/0xa0 [ 10.627947][ T186] hardirqs last disabled at (4045100): [] console_emit_next_record+0x3d4/0x4c0 [ 10.627948][ T186] softirqs last enabled at (4044874): [] tcp_close+0x2b/0xb0 [ 10.627952][ T186] softirqs last disabled at (4044872): [] release_sock+0x21/0x240 [ 10.627955][ T186] Preemption disabled at: [ 10.627956][ T186] [<0000000000000000>] 0x0 [ 10.627963][ T186] CPU: 3 UID: 0 PID: 186 Comm: packetdrill Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.627966][ T186] Tainted: [W]=WARN [ 10.627967][ T186] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.627969][ T186] Call Trace: [ 10.627971][ T186] [ 10.627972][ T186] dump_stack_lvl+0x6f/0xa0 [ 10.627978][ T186] __might_resched.cold+0x1fe/0x2c1 [ 10.627982][ T186] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.627985][ T186] ? __kmalloc_noprof+0xdb/0x760 [ 10.627990][ T186] __kmalloc_noprof+0x443/0x760 [ 10.627993][ T186] ? alloc_buf.isra.0+0x4b/0x260 [ 10.627999][ T186] ? do_raw_spin_unlock+0x59/0x250 [ 10.628002][ T186] alloc_buf.isra.0+0x4b/0x260 [ 10.628005][ T186] put_chars+0x1e1/0x2f0 [ 10.628008][ T186] ? __send_to_port+0x420/0x420 [ 10.628014][ T186] hvc_console_print+0x292/0x780 [ 10.628021][ T186] ? hvc_write+0x3a0/0x3a0 [ 10.628024][ T186] ? lock_acquire+0x13c/0x160 [ 10.628028][ T186] console_emit_next_record+0x22f/0x4c0 [ 10.628032][ T186] ? devkmsg_read+0x4b0/0x4b0 [ 10.628033][ T186] ? console_flush_one_record+0x106/0x710 [ 10.628036][ T186] ? rcu_is_watching+0x16/0xd0 [ 10.628039][ T186] ? lock_acquire+0x13c/0x160 [ 10.628043][ T186] console_flush_one_record+0x46f/0x710 [ 10.628047][ T186] ? console_emit_next_record+0x4c0/0x4c0 [ 10.628048][ T186] ? __lock_acquire+0x518/0xc20 [ 10.628053][ T186] console_unlock+0xee/0x1f0 [ 10.628056][ T186] ? console_flush_one_record+0x710/0x710 [ 10.628057][ T186] ? rcu_is_watching+0x16/0xd0 [ 10.628059][ T186] ? lock_acquire+0x60/0x160 [ 10.628063][ T186] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.628064][ T186] ? vprintk_emit+0x320/0x3e0 [ 10.628067][ T186] vprintk_emit+0x37c/0x3e0 [ 10.628071][ T186] ? wake_up_klogd_work_func+0x90/0x90 [ 10.628073][ T186] ? __lock_acquire+0x518/0xc20 [ 10.628077][ T186] _printk+0xc7/0x100 [ 10.628081][ T186] ? snapshot_read.cold+0x21/0x21 [ 10.628084][ T186] ? do_raw_spin_lock+0x131/0x280 [ 10.628086][ T186] ? __rwlock_init+0x150/0x150 [ 10.628090][ T186] ? do_raw_spin_lock+0x131/0x280 [ 10.628093][ T186] do_exit.cold+0x82/0x9c [ 10.628097][ T186] ? exit_notify+0x890/0x890 [ 10.628098][ T186] ? __lock_release.isra.0+0x69/0x1a0 [ 10.628101][ T186] ? rcu_is_watching+0x16/0xd0 [ 10.628105][ T186] do_group_exit+0xb8/0x370 [ 10.628108][ T186] __x64_sys_exit_group+0x3c/0x50 [ 10.628110][ T186] x64_sys_call+0x1567/0x1570 [ 10.628113][ T186] do_syscall_64+0x10e/0x570 [ 10.628116][ T186] ? irq_exit_rcu+0x1a/0x30 [ 10.628119][ T186] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.628121][ T186] RIP: 0033:0x479678 [ 10.628124][ T186] Code: Unable to access opcode bytes at 0x47964e. [ 10.628125][ T186] RSP: 002b:00007ffd824ada78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 10.628127][ T186] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000479678 [ 10.628128][ T186] RDX: 000000001aa1b708 RSI: fffffffffffffff0 RDI: 0000000000000000 [ 10.628129][ T186] RBP: 00007ffd824adad0 R08: 0000000000000000 R09: 000000001aa1c450 [ 10.628130][ T186] R10: 0000000000000110 R11: 0000000000000246 R12: 00007ffd824adc08 [ 10.628131][ T186] R13: 00007ffd824adc48 R14: 0000000000000000 R15: 000000000054d560 [ 10.628138][ T186] [ 11.308411][ T211] packetdrill (211) used greatest stack depth: 23328 bytes left