[ 9.490306][ T174] tun: Universal TUN/TAP device driver, 1.6 [ 9.490324][ T174] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.490326][ T174] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 174, name: modprobe [ 9.490327][ T174] preempt_count: 1, expected: 0 [ 9.490329][ T174] RCU nest depth: 0, expected: 0 [ 9.490329][ T174] locks held by modprobe/174: 4, last CPU#1: [ 9.490332][ T174] #0: ffffffffb956a440 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.490347][ T174] #1: ffffffffb956a4b8 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.490350][ T174] #2: ffffffffb9489de0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.490354][ T174] #3: ffffffffb9489ce0 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.490357][ T174] irq event stamp: 33394 [ 9.490358][ T174] hardirqs last enabled at (33393): [] __down_trylock_console_sem+0x86/0xa0 [ 9.490361][ T174] hardirqs last disabled at (33394): [] console_emit_next_record+0x3d4/0x4c0 [ 9.490363][ T174] softirqs last enabled at (29106): [] handle_softirqs+0x67c/0x900 [ 9.490366][ T174] softirqs last disabled at (28661): [] __irq_exit_rcu+0x145/0x1c0 [ 9.490368][ T174] Preemption disabled at: [ 9.490369][ T174] [] vprintk_emit+0x31b/0x3e0 [ 9.490374][ T174] CPU: 1 UID: 0 PID: 174 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.490377][ T174] Tainted: [W]=WARN [ 9.490378][ T174] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.490380][ T174] Call Trace: [ 9.490382][ T174] [ 9.490383][ T174] dump_stack_lvl+0x6f/0xa0 [ 9.490388][ T174] ? vprintk_emit+0x31b/0x3e0 [ 9.490390][ T174] __might_resched.cold+0x1fe/0x2c1 [ 9.490394][ T174] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.490397][ T174] ? __kmalloc_noprof+0xdb/0x760 [ 9.490402][ T174] __kmalloc_noprof+0x443/0x760 [ 9.490404][ T174] ? alloc_buf.isra.0+0x4b/0x260 [ 9.490411][ T174] ? do_raw_spin_unlock+0x59/0x250 [ 9.490413][ T174] alloc_buf.isra.0+0x4b/0x260 [ 9.490417][ T174] put_chars+0x1e1/0x2f0 [ 9.490419][ T174] ? __send_to_port+0x420/0x420 [ 9.490422][ T174] ? validate_chain+0x38b/0xc20 [ 9.490427][ T174] hvc_console_print+0x292/0x780 [ 9.490434][ T174] ? hvc_write+0x3a0/0x3a0 [ 9.490437][ T174] ? rcu_is_watching+0x16/0xd0 [ 9.490440][ T174] ? lock_acquire+0x13c/0x160 [ 9.490444][ T174] console_emit_next_record+0x22f/0x4c0 [ 9.490447][ T174] ? devkmsg_read+0x4b0/0x4b0 [ 9.490449][ T174] ? console_flush_one_record+0x106/0x710 [ 9.490451][ T174] ? rcu_is_watching+0x16/0xd0 [ 9.490453][ T174] ? lock_acquire+0x13c/0x160 [ 9.490457][ T174] console_flush_one_record+0x46f/0x710 [ 9.490461][ T174] ? console_emit_next_record+0x4c0/0x4c0 [ 9.490462][ T174] ? __lock_acquire+0x518/0xc20 [ 9.490467][ T174] console_unlock+0xee/0x1f0 [ 9.490469][ T174] ? console_flush_one_record+0x710/0x710 [ 9.490471][ T174] ? rcu_is_watching+0x16/0xd0 [ 9.490472][ T174] ? lock_acquire+0x60/0x160 [ 9.490476][ T174] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.490478][ T174] ? vprintk_emit+0x320/0x3e0 [ 9.490481][ T174] vprintk_emit+0x37c/0x3e0 [ 9.490484][ T174] ? wake_up_klogd_work_func+0x90/0x90 [ 9.490489][ T174] ? tun_cleanup+0x630/0x630 [tun] [ 9.490493][ T174] _printk+0xc7/0x100 [ 9.490496][ T174] ? snapshot_read.cold+0x21/0x21 [ 9.490502][ T174] ? do_one_initcall+0x113/0x4f0 [ 9.490506][ T174] tun_init+0x24/0x1000 [tun] [ 9.490509][ T174] do_one_initcall+0x124/0x4f0 [ 9.490512][ T174] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.490517][ T174] ? do_init_module+0xae/0x8a0 [ 9.490519][ T174] ? kasan_unpoison+0x44/0x70 [ 9.490524][ T174] do_init_module+0x2ad/0x8a0 [ 9.490527][ T174] ? lockdep_hardirqs_on+0x91/0x130 [ 9.490532][ T174] ? free_module+0x470/0x470 [ 9.490534][ T174] ? kfree+0x123/0x590 [ 9.490538][ T174] load_module+0x154b/0x1d60 [ 9.490545][ T174] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.490552][ T174] init_module_from_file+0x11f/0x1a0 [ 9.490555][ T174] ? __ia32_sys_init_module+0xc0/0xc0 [ 9.490562][ T174] ? __rwlock_init+0x150/0x150 [ 9.490566][ T174] ? do_raw_spin_unlock+0x59/0x250 [ 9.490569][ T174] idempotent_init_module+0x37b/0x7c0 [ 9.490572][ T174] ? init_module_from_file+0x1a0/0x1a0 [ 9.490577][ T174] ? rcu_is_watching+0x16/0xd0 [ 9.490579][ T174] ? cap_capable+0x1d7/0x3d0 [ 9.490584][ T174] __x64_sys_finit_module+0xdf/0x190 [ 9.490586][ T174] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.490589][ T174] do_syscall_64+0x10e/0x570 [ 9.490591][ T174] ? exc_page_fault+0xee/0x100 [ 9.490594][ T174] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.490596][ T174] RIP: 0033:0x7f097185837d [ 9.490599][ 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 [ 9.490601][ T174] RSP: 002b:00007fffed06b328 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.490603][ T174] RAX: ffffffffffffffda RBX: 000056469289b980 RCX: 00007f097185837d [ 9.490605][ T174] RDX: 0000000000000000 RSI: 000056466e335ffd RDI: 0000000000000005 [ 9.490605][ T174] RBP: 00007fffed06b3c0 R08: 0000000000000000 R09: 0000000000000000 [ 9.490606][ T174] R10: 0000000000000000 R11: 0000000000000246 R12: 000056466e335ffd [ 9.490607][ T174] R13: 000056469289baa0 R14: 0000000000040000 R15: 0000000000000000 [ 9.490614][ T174]