[ 22.602160][ T360] 8021q: 802.1Q VLAN Support v1.8 [ 22.602183][ T360] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 22.602185][ T360] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 360, name: modprobe [ 22.602188][ T360] preempt_count: 1, expected: 0 [ 22.602189][ T360] RCU nest depth: 0, expected: 0 [ 22.602191][ T360] locks held by modprobe/360: 4, last CPU#3: [ 22.602193][ T360] #0: ffffffffb2799dc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 22.602207][ T360] #1: ffffffffb2799e38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 22.602214][ T360] #2: ffffffffb2689760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 22.602219][ T360] #3: ffffffffb2689660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 22.602225][ T360] irq event stamp: 28112 [ 22.602226][ T360] hardirqs last enabled at (28111): [] __down_trylock_console_sem+0x86/0xa0 [ 22.602230][ T360] hardirqs last disabled at (28112): [] console_emit_next_record+0x3f8/0x4f0 [ 22.602233][ T360] softirqs last enabled at (27476): [] handle_softirqs+0x67c/0x900 [ 22.602237][ T360] softirqs last disabled at (27469): [] __irq_exit_rcu+0x145/0x1c0 [ 22.602240][ T360] Preemption disabled at: [ 22.602240][ T360] [] vprintk_emit+0x31b/0x3e0 [ 22.602247][ T360] CPU: 3 UID: 0 PID: 360 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 22.602252][ T360] Tainted: [W]=WARN [ 22.602253][ T360] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 22.602255][ T360] Call Trace: [ 22.602257][ T360] [ 22.602259][ T360] dump_stack_lvl+0x6f/0xa0 [ 22.602265][ T360] ? vprintk_emit+0x31b/0x3e0 [ 22.602267][ T360] __might_resched.cold+0x1fe/0x2c1 [ 22.602272][ T360] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 22.602276][ T360] ? __kmalloc_noprof+0xdb/0x760 [ 22.602281][ T360] __kmalloc_noprof+0x443/0x760 [ 22.602283][ T360] ? alloc_buf.isra.0+0x4b/0x260 [ 22.602289][ T360] ? do_raw_spin_unlock+0x59/0x250 [ 22.602292][ T360] alloc_buf.isra.0+0x4b/0x260 [ 22.602296][ T360] put_chars+0x1e1/0x2f0 [ 22.602299][ T360] ? __send_to_port+0x420/0x420 [ 22.602303][ T360] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 22.602307][ T360] ? rcu_read_lock_any_held+0x3c/0x90 [ 22.602309][ T360] ? validate_chain+0x38b/0xc20 [ 22.602312][ T360] hvc_console_print+0x292/0x780 [ 22.602316][ T360] ? mark_usage+0x61/0x170 [ 22.602318][ T360] ? __lock_acquire+0x518/0xc20 [ 22.602319][ T360] ? __lock_acquire+0x518/0xc20 [ 22.602323][ T360] ? hvc_write+0x3a0/0x3a0 [ 22.602325][ T360] ? console_emit_next_record+0x202/0x4f0 [ 22.602329][ T360] ? rcu_is_watching+0x16/0xd0 [ 22.602331][ T360] ? lock_acquire+0x13c/0x160 [ 22.602335][ T360] console_emit_next_record+0x252/0x4f0 [ 22.602339][ T360] ? devkmsg_read+0x4e0/0x4e0 [ 22.602343][ T360] ? rcu_is_watching+0x16/0xd0 [ 22.602345][ T360] ? lock_acquire+0x13c/0x160 [ 22.602349][ T360] console_flush_one_record+0x46f/0x710 [ 22.602353][ T360] ? console_emit_next_record+0x4f0/0x4f0 [ 22.602354][ T360] ? __lock_acquire+0x518/0xc20 [ 22.602359][ T360] console_unlock+0xee/0x1f0 [ 22.602362][ T360] ? console_flush_one_record+0x710/0x710 [ 22.602364][ T360] ? rcu_is_watching+0x16/0xd0 [ 22.602366][ T360] ? lock_acquire+0xa0/0x160 [ 22.602369][ T360] ? __down_trylock_console_sem+0x5e/0xa0 [ 22.602371][ T360] ? vprintk_emit+0x320/0x3e0 [ 22.602374][ T360] vprintk_emit+0x37c/0x3e0 [ 22.602378][ T360] ? wake_up_klogd_work_func+0x90/0x90 [ 22.602384][ T360] ? vlan_netlink_fini+0xf0/0xf0 [8021q] [ 22.602388][ T360] _printk+0xc7/0x100 [ 22.602391][ T360] ? snapshot_read.cold+0x21/0x21 [ 22.602397][ T360] ? do_one_initcall+0x113/0x4f0 [ 22.602401][ T360] vlan_proto_init+0x24/0x90 [8021q] [ 22.602404][ T360] do_one_initcall+0x124/0x4f0 [ 22.602406][ T360] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 22.602411][ T360] ? do_init_module+0xae/0x8a0 [ 22.602414][ T360] ? kasan_unpoison+0x44/0x70 [ 22.602419][ T360] do_init_module+0x2ad/0x8a0 [ 22.602423][ T360] ? lockdep_hardirqs_on+0x91/0x130 [ 22.602428][ T360] ? free_module+0x470/0x470 [ 22.602431][ T360] ? kfree+0x123/0x590 [ 22.602435][ T360] load_module+0x1424/0x1bb0 [ 22.602441][ T360] ? layout_and_allocate.isra.0+0x680/0x680 [ 22.602445][ T360] ? __ia32_sys_fsconfig+0x180/0x180 [ 22.602448][ T360] ? add_chain_cache+0x12d/0x590 [ 22.602453][ T360] init_module_from_file+0x11f/0x1a0 [ 22.602456][ T360] ? __ia32_sys_init_module+0xc0/0xc0 [ 22.602464][ T360] ? __rwlock_init+0x150/0x150 [ 22.602467][ T360] ? do_raw_spin_unlock+0x59/0x250 [ 22.602470][ T360] idempotent_init_module+0x37b/0x7c0 [ 22.602473][ T360] ? init_module_from_file+0x1a0/0x1a0 [ 22.602479][ T360] ? rcu_is_watching+0x16/0xd0 [ 22.602482][ T360] ? cap_capable+0x1d7/0x3d0 [ 22.602488][ T360] __x64_sys_finit_module+0xdf/0x190 [ 22.602490][ T360] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 22.602493][ T360] do_syscall_64+0xff/0x530 [ 22.602496][ T360] ? exc_page_fault+0xee/0x100 [ 22.602499][ T360] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 22.602501][ T360] RIP: 0033:0x7f6cdf52337d [ 22.602504][ T360] 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 [ 22.602506][ T360] RSP: 002b:00007ffc2ae1ccf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 22.602509][ T360] RAX: ffffffffffffffda RBX: 000055d2f10b4810 RCX: 00007f6cdf52337d [ 22.602510][ T360] RDX: 0000000000000000 RSI: 000055d2da05bffd RDI: 0000000000000000 [ 22.602511][ T360] RBP: 00007ffc2ae1cd90 R08: 0000000000000000 R09: 0000000000000000 [ 22.602512][ T360] R10: 0000000000000000 R11: 0000000000000246 R12: 000055d2da05bffd [ 22.602513][ T360] R13: 000055d2f10b4940 R14: 0000000000040000 R15: 0000000000000000 [ 22.602519][ T360] [ 22.631742][ T360] 8021q: adding VLAN 0 to HW filter on device enp0s4