[ 10.789325][ T223] 8021q: 802.1Q VLAN Support v1.8 [ 10.789343][ T223] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.789345][ T223] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 223, name: modprobe [ 10.789347][ T223] preempt_count: 1, expected: 0 [ 10.789348][ T223] RCU nest depth: 0, expected: 0 [ 10.789349][ T223] locks held by modprobe/223: 4, last CPU#2: [ 10.789352][ T223] #0: ffffffffa7b69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.789364][ T223] #1: ffffffffa7b69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.789368][ T223] #2: ffffffffa7a89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.789372][ T223] #3: ffffffffa7a89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.789376][ T223] irq event stamp: 29364 [ 10.789377][ T223] hardirqs last enabled at (29363): [] __down_trylock_console_sem+0x86/0xa0 [ 10.789380][ T223] hardirqs last disabled at (29364): [] console_emit_next_record+0x3d4/0x4c0 [ 10.789382][ T223] softirqs last enabled at (26622): [] handle_softirqs+0x67c/0x900 [ 10.789385][ T223] softirqs last disabled at (26615): [] __irq_exit_rcu+0x145/0x1c0 [ 10.789388][ T223] Preemption disabled at: [ 10.789388][ T223] [] vprintk_emit+0x31b/0x3e0 [ 10.789394][ T223] CPU: 2 UID: 0 PID: 223 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.789398][ T223] Tainted: [W]=WARN [ 10.789399][ T223] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.789400][ T223] Call Trace: [ 10.789402][ T223] [ 10.789403][ T223] dump_stack_lvl+0x6f/0xa0 [ 10.789409][ T223] ? vprintk_emit+0x31b/0x3e0 [ 10.789411][ T223] __might_resched.cold+0x1fe/0x2c1 [ 10.789416][ T223] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.789420][ T223] ? __kmalloc_noprof+0xdb/0x760 [ 10.789425][ T223] __kmalloc_noprof+0x443/0x760 [ 10.789427][ T223] ? alloc_buf.isra.0+0x4b/0x260 [ 10.789433][ T223] ? do_raw_spin_unlock+0x59/0x250 [ 10.789436][ T223] alloc_buf.isra.0+0x4b/0x260 [ 10.789439][ T223] put_chars+0x1e1/0x2f0 [ 10.789442][ T223] ? __send_to_port+0x420/0x420 [ 10.789443][ T223] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.789448][ T223] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.789450][ T223] ? validate_chain+0x38b/0xc20 [ 10.789455][ T223] hvc_console_print+0x292/0x780 [ 10.789457][ T223] ? __lock_acquire+0x518/0xc20 [ 10.789462][ T223] ? hvc_write+0x3a0/0x3a0 [ 10.789465][ T223] ? rcu_is_watching+0x16/0xd0 [ 10.789470][ T223] console_emit_next_record+0x22f/0x4c0 [ 10.789474][ T223] ? devkmsg_read+0x4b0/0x4b0 [ 10.789475][ T223] ? console_flush_one_record+0x106/0x710 [ 10.789478][ T223] ? rcu_is_watching+0x16/0xd0 [ 10.789481][ T223] ? lock_acquire+0x13c/0x160 [ 10.789485][ T223] console_flush_one_record+0x46f/0x710 [ 10.789489][ T223] ? console_emit_next_record+0x4c0/0x4c0 [ 10.789490][ T223] ? __lock_acquire+0x518/0xc20 [ 10.789495][ T223] console_unlock+0xee/0x1f0 [ 10.789498][ T223] ? console_flush_one_record+0x710/0x710 [ 10.789500][ T223] ? rcu_is_watching+0x16/0xd0 [ 10.789502][ T223] ? lock_acquire+0x60/0x160 [ 10.789506][ T223] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.789508][ T223] ? vprintk_emit+0x320/0x3e0 [ 10.789511][ T223] vprintk_emit+0x37c/0x3e0 [ 10.789515][ T223] ? wake_up_klogd_work_func+0x90/0x90 [ 10.789520][ T223] ? vlan_netlink_fini+0x960/0x960 [8021q] [ 10.789524][ T223] _printk+0xc7/0x100 [ 10.789528][ T223] ? snapshot_read.cold+0x21/0x21 [ 10.789534][ T223] ? do_one_initcall+0x113/0x4f0 [ 10.789537][ T223] vlan_proto_init+0x24/0x90 [8021q] [ 10.789540][ T223] do_one_initcall+0x124/0x4f0 [ 10.789543][ T223] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.789547][ T223] ? do_init_module+0xae/0x8a0 [ 10.789550][ T223] ? kasan_unpoison+0x44/0x70 [ 10.789555][ T223] do_init_module+0x2ad/0x8a0 [ 10.789559][ T223] ? lockdep_hardirqs_on+0x91/0x130 [ 10.789564][ T223] ? free_module+0x470/0x470 [ 10.789567][ T223] ? kfree+0x123/0x590 [ 10.789571][ T223] load_module+0x1424/0x1bb0 [ 10.789578][ T223] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.789582][ T223] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.789585][ T223] ? ovl_real_file+0x172/0x1e0 [ 10.789589][ T223] ? backing_file_read_iter+0x541/0x790 [ 10.789599][ T223] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.789603][ T223] init_module_from_file+0x11f/0x1a0 [ 10.789606][ T223] ? __do_sys_init_module+0x220/0x220 [ 10.789614][ T223] ? __rwlock_init+0x150/0x150 [ 10.789617][ T223] ? do_raw_spin_unlock+0x59/0x250 [ 10.789620][ T223] idempotent_init_module+0x37b/0x7c0 [ 10.789624][ T223] ? init_module_from_file+0x1a0/0x1a0 [ 10.789630][ T223] ? rcu_is_watching+0x16/0xd0 [ 10.789632][ T223] ? cap_capable+0x1d7/0x3d0 [ 10.789638][ T223] __x64_sys_finit_module+0xdf/0x190 [ 10.789640][ T223] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.789644][ T223] do_syscall_64+0xff/0x530 [ 10.789646][ T223] ? exc_page_fault+0xee/0x100 [ 10.789649][ T223] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.789651][ T223] RIP: 0033:0x7fa94a7c537d [ 10.789654][ T223] 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.789656][ T223] RSP: 002b:00007fff39155b68 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.789659][ T223] RAX: ffffffffffffffda RBX: 0000555cdb4f3810 RCX: 00007fa94a7c537d [ 10.789660][ T223] RDX: 0000000000000000 RSI: 0000555cd296fffd RDI: 0000000000000000 [ 10.789661][ T223] RBP: 00007fff39155c00 R08: 0000000000000000 R09: 0000000000000000 [ 10.789662][ T223] R10: 0000000000000000 R11: 0000000000000246 R12: 0000555cd296fffd [ 10.789663][ T223] R13: 0000555cdb4f3960 R14: 0000000000040000 R15: 0000000000000000 [ 10.789670][ T223] [ 11.605636][ T252] br1: port 1(veth1) entered blocking state [ 11.606288][ T252] br1: port 1(veth1) entered disabled state [ 11.606591][ T252] veth1: entered allmulticast mode [ 11.608220][ T252] veth1: entered promiscuous mode [ 11.639411][ T92] br1: port 1(veth1) entered blocking state [ 11.639823][ T92] br1: port 1(veth1) entered forwarding state [ 26.215702][ T396] br1: port 1(veth1) entered disabled state [ 26.215760][ T396] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 26.215762][ T396] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 396, name: ip [ 26.215764][ T396] preempt_count: 202, expected: 0 [ 26.215765][ T396] RCU nest depth: 0, expected: 0 [ 26.215765][ T396] locks held by ip/396: 6, last CPU#0: [ 26.215768][ T396] #0: ffffffffa82d2c40 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11c0 [ 26.215780][ T396] #1: ff1100000f3b2e58 (&br->lock){+...}-{3:3}, at: br_device_event+0x1d7/0x8f0 [bridge] [ 26.215794][ T396] #2: ffffffffa7b69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 26.215800][ T396] #3: ffffffffa7b69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 26.215804][ T396] #4: ffffffffa7a89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 26.215807][ T396] #5: ffffffffa7a89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 26.215811][ T396] irq event stamp: 15267 [ 26.215812][ T396] hardirqs last enabled at (15266): [] __down_trylock_console_sem+0x86/0xa0 [ 26.215815][ T396] hardirqs last disabled at (15267): [] console_emit_next_record+0x3d4/0x4c0 [ 26.215817][ T396] softirqs last enabled at (15250): [] ipv6_mc_down+0x134/0x2d0 [ 26.215820][ T396] softirqs last disabled at (15262): [] br_device_event+0x1d7/0x8f0 [bridge] [ 26.215828][ T396] Preemption disabled at: [ 26.215829][ T396] [<0000000000000000>] 0x0 [ 26.215835][ T396] CPU: 0 UID: 0 PID: 396 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 26.215838][ T396] Tainted: [W]=WARN [ 26.215839][ T396] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 26.215841][ T396] Call Trace: [ 26.215842][ T396] [ 26.215844][ T396] dump_stack_lvl+0x6f/0xa0 [ 26.215850][ T396] __might_resched.cold+0x1fe/0x2c1 [ 26.215855][ T396] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 26.215859][ T396] ? __kmalloc_noprof+0xdb/0x760 [ 26.215864][ T396] __kmalloc_noprof+0x443/0x760 [ 26.215867][ T396] ? alloc_buf.isra.0+0x4b/0x260 [ 26.215872][ T396] ? do_raw_spin_unlock+0x59/0x250 [ 26.215875][ T396] alloc_buf.isra.0+0x4b/0x260 [ 26.215878][ T396] put_chars+0x1e1/0x2f0 [ 26.215881][ T396] ? __send_to_port+0x420/0x420 [ 26.215882][ T396] ? check_prev_add+0xef/0xe90 [ 26.215886][ T396] ? validate_chain+0x34a/0xc20 [ 26.215890][ T396] hvc_console_print+0x292/0x780 [ 26.215893][ T396] ? mark_usage+0x61/0x170 [ 26.215895][ T396] ? __lock_acquire+0x518/0xc20 [ 26.215896][ T396] ? __lock_acquire+0x518/0xc20 [ 26.215900][ T396] ? hvc_write+0x3a0/0x3a0 [ 26.215901][ T396] ? lock_acquire.part.0+0xd4/0x280 [ 26.215906][ T396] ? lock_acquire+0x13c/0x160 [ 26.215910][ T396] console_emit_next_record+0x22f/0x4c0 [ 26.215914][ T396] ? devkmsg_read+0x4b0/0x4b0 [ 26.215915][ T396] ? console_flush_one_record+0x106/0x710 [ 26.215919][ T396] ? rcu_is_watching+0x16/0xd0 [ 26.215923][ T396] ? lock_acquire+0x13c/0x160 [ 26.215927][ T396] console_flush_one_record+0x46f/0x710 [ 26.215931][ T396] ? console_emit_next_record+0x4c0/0x4c0 [ 26.215933][ T396] ? __lock_acquire+0x518/0xc20 [ 26.215938][ T396] console_unlock+0xee/0x1f0 [ 26.215941][ T396] ? console_flush_one_record+0x710/0x710 [ 26.215943][ T396] ? rcu_is_watching+0x16/0xd0 [ 26.215945][ T396] ? lock_acquire+0x60/0x160 [ 26.215949][ T396] ? __down_trylock_console_sem+0x5e/0xa0 [ 26.215950][ T396] ? vprintk_emit+0x320/0x3e0 [ 26.215953][ T396] vprintk_emit+0x37c/0x3e0 [ 26.215958][ T396] ? wake_up_klogd_work_func+0x90/0x90 [ 26.215960][ T396] ? mark_held_locks+0x40/0x70 [ 26.215962][ T396] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 26.215967][ T396] ? rcu_read_lock_any_held+0x3c/0x90 [ 26.215971][ T396] _printk+0xc7/0x100 [ 26.215975][ T396] ? snapshot_read.cold+0x21/0x21 [ 26.215982][ T396] br_set_state+0x22f/0x430 [bridge] [ 26.215993][ T396] br_stp_disable_port+0x11f/0x390 [bridge] [ 26.216002][ T396] br_device_event+0x7b5/0x8f0 [bridge] [ 26.216010][ T396] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 26.216014][ T396] ? _sub_I_65535_1+0x4d0/0x4d0 [stp] [ 26.216020][ T396] notifier_call_chain+0xae/0x300 [ 26.216025][ T396] __dev_notify_flags+0x23c/0x3c0 [ 26.216030][ T396] ? netif_change_name+0x8c0/0x8c0 [ 26.216034][ T396] ? netif_set_allmulti+0x250/0x250 [ 26.216037][ T396] ? __kernel_text_address+0x12/0x30 [ 26.216039][ T396] ? write_profile+0xf0/0xf0 [ 26.216042][ T396] ? unwind_get_return_address+0x67/0xd0 [ 26.216046][ T396] netif_change_flags+0xfe/0x190 [ 26.216050][ T396] do_setlink.isra.0+0x1cc3/0x2750 [ 26.216054][ T396] ? stack_trace_save+0x93/0xc0 [ 26.216056][ T396] ? rtnl_link_get_size+0x350/0x350 [ 26.216057][ T396] ? rcu_read_lock_any_held+0x66/0x90 [ 26.216059][ T396] ? stack_depot_save_flags+0x38e/0x790 [ 26.216062][ T396] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 26.216065][ T396] ? rcu_read_lock_any_held+0x3c/0x90 [ 26.216066][ T396] ? validate_chain+0x38b/0xc20 [ 26.216069][ T396] ? kasan_save_stack+0x3d/0x50 [ 26.216072][ T396] ? kasan_save_stack+0x2f/0x50 [ 26.216074][ T396] ? kasan_save_track+0x14/0x30 [ 26.216076][ T396] ? __lock_acquire+0x518/0xc20 [ 26.216078][ T396] ? netlink_seq_next+0x4e/0x60 [ 26.216081][ T396] ? ___sys_sendmsg+0xb0/0x1d0 [ 26.216086][ T396] ? lock_acquire.part.0+0xd4/0x280 [ 26.216088][ T396] ? rtnl_newlink+0x9a8/0x11c0 [ 26.216090][ T396] ? rcu_is_watching+0x16/0xd0 [ 26.216093][ T396] ? lock_acquire+0x13c/0x160 [ 26.216094][ T396] ? rcu_is_watching+0x16/0xd0 [ 26.216096][ T396] ? rcu_is_watching+0x16/0xd0 [ 26.216098][ T396] ? trace_contention_end+0xb3/0x180 [ 26.216102][ T396] ? __mutex_lock+0x1db/0x1ea0 [ 26.216104][ T396] ? __mutex_lock+0x9a3/0x1ea0 [ 26.216106][ T396] ? rtnl_newlink+0x9a8/0x11c0 [ 26.216109][ T396] ? ww_mutex_lock+0x160/0x160 [ 26.216114][ T396] ? __rtnl_newlink+0x3fa/0xa50 [ 26.216119][ T396] rtnl_newlink+0x9f1/0x11c0 [ 26.216124][ T396] ? rtnl_bridge_getlink+0x850/0x850 [ 26.216126][ T396] ? __lock_acquire+0x518/0xc20 [ 26.216131][ T396] ? lock_acquire.part.0+0xd4/0x280 [ 26.216132][ T396] ? find_held_lock+0x2b/0x80 [ 26.216134][ T396] ? rtnl_bridge_getlink+0x850/0x850 [ 26.216136][ T396] ? __lock_release.isra.0+0x69/0x1a0 [ 26.216140][ T396] ? rtnl_bridge_getlink+0x850/0x850 [ 26.216142][ T396] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 26.216145][ T396] ? rtnl_link_fill+0x920/0x920 [ 26.216146][ T396] ? __lock_acquire+0x518/0xc20 [ 26.216150][ T396] ? lock_acquire.part.0+0xd4/0x280 [ 26.216152][ T396] ? find_held_lock+0x2b/0x80 [ 26.216155][ T396] netlink_rcv_skb+0x14e/0x3a0 [ 26.216157][ T396] ? rtnl_link_fill+0x920/0x920 [ 26.216160][ T396] ? netlink_ack+0xcf0/0xcf0 [ 26.216166][ T396] ? netlink_deliver_tap+0xc5/0x330 [ 26.216168][ T396] ? netlink_deliver_tap+0x13c/0x330 [ 26.216172][ T396] netlink_unicast+0x486/0x750 [ 26.216176][ T396] ? netlink_attachskb+0x810/0x810 [ 26.216178][ T396] ? __lock_acquire+0x518/0xc20 [ 26.216182][ T396] netlink_sendmsg+0x735/0xc60 [ 26.216186][ T396] ? netlink_unicast+0x750/0x750 [ 26.216190][ T396] ? __might_fault+0x97/0x140 [ 26.216195][ T396] ____sys_sendmsg+0x415/0x880 [ 26.216197][ T396] ? copy_msghdr_from_user+0x279/0x420 [ 26.216199][ T396] ? get_timestamp.constprop.0+0x390/0x390 [ 26.216201][ T396] ? move_addr_to_kernel+0x40/0x40 [ 26.216208][ T396] ___sys_sendmsg+0x14e/0x1d0 [ 26.216211][ T396] ? copy_msghdr_from_user+0x420/0x420 [ 26.216226][ T396] __sys_sendmsg+0x12c/0x1d0 [ 26.216229][ T396] ? __sys_sendmsg_sock+0x20/0x20 [ 26.216235][ T396] ? rcu_is_watching+0x16/0xd0 [ 26.216239][ T396] do_syscall_64+0xff/0x530 [ 26.216241][ T396] ? exc_page_fault+0xee/0x100 [ 26.216244][ T396] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 26.216246][ T396] RIP: 0033:0x7f61af7dd54e [ 26.216248][ T396] Code: 4d 89 d8 e8 b4 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa [ 26.216250][ T396] RSP: 002b:00007ffd36572f10 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 26.216253][ T396] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f61af7dd54e [ 26.216254][ T396] RDX: 0000000000000000 RSI: 00007ffd36572fc0 RDI: 0000000000000005 [ 26.216255][ T396] RBP: 00007ffd36572f20 R08: 0000000000000000 R09: 0000000000000000 [ 26.216256][ T396] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a912ef8 [ 26.216257][ T396] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007ffd36573680 [ 26.216263][ T396] [ 26.268348][ T396] ip (396) used greatest stack depth: 23016 bytes left [ 26.290605][ T397] veth1: left allmulticast mode [ 26.290858][ T397] veth1: left promiscuous mode [ 26.291276][ T397] br1: port 1(veth1) entered disabled state