[ 9.180151][ T175] tun: Universal TUN/TAP device driver, 1.6 [ 9.180170][ T175] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.180172][ T175] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 175, name: modprobe [ 9.180174][ T175] preempt_count: 1, expected: 0 [ 9.180175][ T175] RCU nest depth: 0, expected: 0 [ 9.180176][ T175] locks held by modprobe/175: 4, last CPU#0: [ 9.180178][ T175] #0: ffffffffb6d6a440 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.180189][ T175] #1: ffffffffb6d6a4b8 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.180193][ T175] #2: ffffffffb6c89de0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.180197][ T175] #3: ffffffffb6c89ce0 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.180200][ T175] irq event stamp: 51694 [ 9.180201][ T175] hardirqs last enabled at (51693): [] __down_trylock_console_sem+0x86/0xa0 [ 9.180205][ T175] hardirqs last disabled at (51694): [] console_emit_next_record+0x3d4/0x4c0 [ 9.180206][ T175] softirqs last enabled at (49606): [] handle_softirqs+0x67c/0x900 [ 9.180210][ T175] softirqs last disabled at (48971): [] __irq_exit_rcu+0x145/0x1c0 [ 9.180212][ T175] Preemption disabled at: [ 9.180213][ T175] [] vprintk_emit+0x31b/0x3e0 [ 9.180218][ T175] CPU: 0 UID: 0 PID: 175 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.180222][ T175] Tainted: [W]=WARN [ 9.180222][ T175] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.180224][ T175] Call Trace: [ 9.180226][ T175] [ 9.180227][ T175] dump_stack_lvl+0x6f/0xa0 [ 9.180232][ T175] ? vprintk_emit+0x31b/0x3e0 [ 9.180234][ T175] __might_resched.cold+0x1fe/0x2c1 [ 9.180239][ T175] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.180242][ T175] ? __kmalloc_noprof+0xdb/0x760 [ 9.180247][ T175] __kmalloc_noprof+0x443/0x760 [ 9.180250][ T175] ? alloc_buf.isra.0+0x4b/0x260 [ 9.180256][ T175] ? do_raw_spin_unlock+0x59/0x250 [ 9.180259][ T175] alloc_buf.isra.0+0x4b/0x260 [ 9.180263][ T175] put_chars+0x1e1/0x2f0 [ 9.180266][ T175] ? __send_to_port+0x420/0x420 [ 9.180269][ T175] ? validate_chain+0x38b/0xc20 [ 9.180274][ T175] hvc_console_print+0x292/0x780 [ 9.180281][ T175] ? hvc_write+0x3a0/0x3a0 [ 9.180284][ T175] ? rcu_is_watching+0x16/0xd0 [ 9.180287][ T175] ? lock_acquire+0x13c/0x160 [ 9.180291][ T175] console_emit_next_record+0x22f/0x4c0 [ 9.180295][ T175] ? devkmsg_read+0x4b0/0x4b0 [ 9.180296][ T175] ? console_flush_one_record+0x106/0x710 [ 9.180299][ T175] ? rcu_is_watching+0x16/0xd0 [ 9.180301][ T175] ? lock_acquire+0x13c/0x160 [ 9.180305][ T175] console_flush_one_record+0x46f/0x710 [ 9.180308][ T175] ? console_emit_next_record+0x4c0/0x4c0 [ 9.180310][ T175] ? __lock_acquire+0x518/0xc20 [ 9.180317][ T175] console_unlock+0xee/0x1f0 [ 9.180320][ T175] ? console_flush_one_record+0x710/0x710 [ 9.180321][ T175] ? rcu_is_watching+0x16/0xd0 [ 9.180323][ T175] ? lock_acquire+0x60/0x160 [ 9.180327][ T175] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.180329][ T175] ? vprintk_emit+0x320/0x3e0 [ 9.180332][ T175] vprintk_emit+0x37c/0x3e0 [ 9.180335][ T175] ? wake_up_klogd_work_func+0x90/0x90 [ 9.180341][ T175] ? tun_cleanup+0x630/0x630 [tun] [ 9.180346][ T175] _printk+0xc7/0x100 [ 9.180351][ T175] ? snapshot_read.cold+0x21/0x21 [ 9.180359][ T175] ? do_one_initcall+0x113/0x4f0 [ 9.180363][ T175] tun_init+0x24/0x1000 [tun] [ 9.180366][ T175] do_one_initcall+0x124/0x4f0 [ 9.180370][ T175] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.180374][ T175] ? do_init_module+0xae/0x8a0 [ 9.180377][ T175] ? kasan_unpoison+0x44/0x70 [ 9.180382][ T175] do_init_module+0x2ad/0x8a0 [ 9.180385][ T175] ? lockdep_hardirqs_on+0x91/0x130 [ 9.180390][ T175] ? free_module+0x470/0x470 [ 9.180393][ T175] ? kfree+0x123/0x590 [ 9.180397][ T175] load_module+0x154b/0x1d60 [ 9.180404][ T175] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.180412][ T175] init_module_from_file+0x11f/0x1a0 [ 9.180414][ T175] ? __ia32_sys_init_module+0xc0/0xc0 [ 9.180422][ T175] ? __rwlock_init+0x150/0x150 [ 9.180426][ T175] ? do_raw_spin_unlock+0x59/0x250 [ 9.180429][ T175] idempotent_init_module+0x37b/0x7c0 [ 9.180432][ T175] ? init_module_from_file+0x1a0/0x1a0 [ 9.180439][ T175] ? rcu_is_watching+0x16/0xd0 [ 9.180440][ T175] ? cap_capable+0x1d7/0x3d0 [ 9.180446][ T175] __x64_sys_finit_module+0xdf/0x190 [ 9.180447][ T175] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.180452][ T175] do_syscall_64+0x10e/0x570 [ 9.180454][ T175] ? exc_page_fault+0xee/0x100 [ 9.180457][ T175] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.180459][ T175] RIP: 0033:0x7f717865737d [ 9.180462][ 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.180464][ T175] RSP: 002b:00007ffd8b9d94d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.180466][ T175] RAX: ffffffffffffffda RBX: 0000558d70b2d980 RCX: 00007f717865737d [ 9.180467][ T175] RDX: 0000000000000000 RSI: 0000558d65ed2ffd RDI: 0000000000000005 [ 9.180468][ T175] RBP: 00007ffd8b9d9570 R08: 0000000000000000 R09: 0000000000000000 [ 9.180469][ T175] R10: 0000000000000000 R11: 0000000000000246 R12: 0000558d65ed2ffd [ 9.180470][ T175] R13: 0000558d70b2daa0 R14: 0000000000040000 R15: 0000000000000000 [ 9.180477][ T175] [ 10.872677][ T211] packetdrill (211) used greatest stack depth: 23472 bytes left [ 10.872693][ T211] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.872695][ T211] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 211, name: packetdrill [ 10.872696][ T211] preempt_count: 2, expected: 0 [ 10.872697][ T211] RCU nest depth: 0, expected: 0 [ 10.872698][ T211] locks held by packetdrill/211: 5, last CPU#2: [ 10.872700][ T211] #0: ffffffffb6c02f58 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x8e7/0xef0 [ 10.872712][ T211] #1: ffffffffb6d6a440 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.872717][ T211] #2: ffffffffb6d6a4b8 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.872720][ T211] #3: ffffffffb6c89de0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.872723][ T211] #4: ffffffffb6c89ce0 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.872727][ T211] irq event stamp: 4153090 [ 10.872728][ T211] hardirqs last enabled at (4153089): [] __down_trylock_console_sem+0x86/0xa0 [ 10.872731][ T211] hardirqs last disabled at (4153090): [] console_emit_next_record+0x3d4/0x4c0 [ 10.872733][ T211] softirqs last enabled at (4152866): [] tcp_close+0x2b/0xb0 [ 10.872737][ T211] softirqs last disabled at (4152864): [] release_sock+0x21/0x240 [ 10.872740][ T211] Preemption disabled at: [ 10.872741][ T211] [<0000000000000000>] 0x0 [ 10.872748][ T211] CPU: 2 UID: 0 PID: 211 Comm: packetdrill Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.872751][ T211] Tainted: [W]=WARN [ 10.872752][ T211] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.872753][ T211] Call Trace: [ 10.872755][ T211] [ 10.872757][ T211] dump_stack_lvl+0x6f/0xa0 [ 10.872762][ T211] __might_resched.cold+0x1fe/0x2c1 [ 10.872767][ T211] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.872770][ T211] ? __kmalloc_noprof+0xdb/0x760 [ 10.872776][ T211] __kmalloc_noprof+0x443/0x760 [ 10.872778][ T211] ? alloc_buf.isra.0+0x4b/0x260 [ 10.872784][ T211] ? do_raw_spin_unlock+0x59/0x250 [ 10.872787][ T211] alloc_buf.isra.0+0x4b/0x260 [ 10.872791][ T211] put_chars+0x1e1/0x2f0 [ 10.872793][ T211] ? __send_to_port+0x420/0x420 [ 10.872800][ T211] hvc_console_print+0x292/0x780 [ 10.872807][ T211] ? hvc_write+0x3a0/0x3a0 [ 10.872810][ T211] ? lock_acquire+0x13c/0x160 [ 10.872815][ T211] console_emit_next_record+0x22f/0x4c0 [ 10.872818][ T211] ? devkmsg_read+0x4b0/0x4b0 [ 10.872819][ T211] ? console_flush_one_record+0x106/0x710 [ 10.872822][ T211] ? rcu_is_watching+0x16/0xd0 [ 10.872826][ T211] ? lock_acquire+0x13c/0x160 [ 10.872830][ T211] console_flush_one_record+0x46f/0x710 [ 10.872834][ T211] ? console_emit_next_record+0x4c0/0x4c0 [ 10.872835][ T211] ? __lock_acquire+0x518/0xc20 [ 10.872840][ T211] console_unlock+0xee/0x1f0 [ 10.872843][ T211] ? console_flush_one_record+0x710/0x710 [ 10.872844][ T211] ? rcu_is_watching+0x16/0xd0 [ 10.872846][ T211] ? lock_acquire+0x60/0x160 [ 10.872850][ T211] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.872852][ T211] ? vprintk_emit+0x320/0x3e0 [ 10.872854][ T211] vprintk_emit+0x37c/0x3e0 [ 10.872858][ T211] ? wake_up_klogd_work_func+0x90/0x90 [ 10.872861][ T211] ? __lock_acquire+0x518/0xc20 [ 10.872865][ T211] _printk+0xc7/0x100 [ 10.872873][ T211] ? snapshot_read.cold+0x21/0x21 [ 10.872876][ T211] ? do_raw_spin_lock+0x131/0x280 [ 10.872879][ T211] ? __rwlock_init+0x150/0x150 [ 10.872883][ T211] ? do_raw_spin_lock+0x131/0x280 [ 10.872886][ T211] do_exit.cold+0x82/0x9c [ 10.872890][ T211] ? exit_notify+0x890/0x890 [ 10.872891][ T211] ? __lock_release.isra.0+0x69/0x1a0 [ 10.872894][ T211] ? rcu_is_watching+0x16/0xd0 [ 10.872898][ T211] do_group_exit+0xb8/0x370 [ 10.872901][ T211] __x64_sys_exit_group+0x3c/0x50 [ 10.872903][ T211] x64_sys_call+0x1567/0x1570 [ 10.872906][ T211] do_syscall_64+0x10e/0x570 [ 10.872909][ T211] ? irq_exit_rcu+0x1a/0x30 [ 10.872912][ T211] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.872914][ T211] RIP: 0033:0x479678 [ 10.872916][ T211] Code: Unable to access opcode bytes at 0x47964e. [ 10.872917][ T211] RSP: 002b:00007ffd79c40898 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 10.872920][ T211] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000479678 [ 10.872921][ T211] RDX: 00000000370a8708 RSI: fffffffffffffff0 RDI: 0000000000000000 [ 10.872922][ T211] RBP: 00007ffd79c408f0 R08: 0000000000000000 R09: 00000000370a9450 [ 10.872923][ T211] R10: 0000000000000110 R11: 0000000000000246 R12: 00007ffd79c40a28 [ 10.872924][ T211] R13: 00007ffd79c40a68 R14: 0000000000000000 R15: 000000000054d560 [ 10.872931][ T211]