[ 22.166237][ T354] MACsec IEEE 802.1AE [ 22.166257][ T354] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 22.166260][ T354] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 354, name: modprobe [ 22.166263][ T354] preempt_count: 1, expected: 0 [ 22.166264][ T354] RCU nest depth: 0, expected: 0 [ 22.166266][ T354] locks held by modprobe/354: 4, last CPU#3: [ 22.166268][ T354] #0: ffffffffa6d99dc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 22.166283][ T354] #1: ffffffffa6d99e38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 22.166289][ T354] #2: ffffffffa6c89760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 22.166295][ T354] #3: ffffffffa6c89660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 22.166301][ T354] irq event stamp: 40086 [ 22.166302][ T354] hardirqs last enabled at (40085): [] __down_trylock_console_sem+0x86/0xa0 [ 22.166306][ T354] hardirqs last disabled at (40086): [] console_emit_next_record+0x3f8/0x4f0 [ 22.166309][ T354] softirqs last enabled at (36980): [] handle_softirqs+0x67c/0x900 [ 22.166313][ T354] softirqs last disabled at (36849): [] __irq_exit_rcu+0x145/0x1c0 [ 22.166316][ T354] Preemption disabled at: [ 22.166317][ T354] [] vprintk_emit+0x31b/0x3e0 [ 22.166324][ T354] CPU: 3 UID: 0 PID: 354 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 22.166328][ T354] Tainted: [W]=WARN [ 22.166330][ T354] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 22.166332][ T354] Call Trace: [ 22.166334][ T354] [ 22.166337][ T354] dump_stack_lvl+0x6f/0xa0 [ 22.166344][ T354] ? vprintk_emit+0x31b/0x3e0 [ 22.166347][ T354] __might_resched.cold+0x1fe/0x2c1 [ 22.166353][ T354] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 22.166359][ T354] ? __kmalloc_noprof+0xdb/0x760 [ 22.166366][ T354] __kmalloc_noprof+0x443/0x760 [ 22.166370][ T354] ? alloc_buf.isra.0+0x4b/0x260 [ 22.166379][ T354] ? do_raw_spin_unlock+0x59/0x250 [ 22.166383][ T354] alloc_buf.isra.0+0x4b/0x260 [ 22.166388][ T354] put_chars+0x1e1/0x2f0 [ 22.166393][ T354] ? __send_to_port+0x420/0x420 [ 22.166398][ T354] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 22.166404][ T354] ? rcu_read_lock_any_held+0x3c/0x90 [ 22.166407][ T354] ? validate_chain+0x38b/0xc20 [ 22.166412][ T354] hvc_console_print+0x292/0x780 [ 22.166417][ T354] ? mark_usage+0x61/0x170 [ 22.166420][ T354] ? __lock_acquire+0x518/0xc20 [ 22.166422][ T354] ? __lock_acquire+0x518/0xc20 [ 22.166428][ T354] ? hvc_write+0x3a0/0x3a0 [ 22.166432][ T354] ? console_emit_next_record+0x202/0x4f0 [ 22.166437][ T354] ? rcu_is_watching+0x16/0xd0 [ 22.166441][ T354] ? lock_acquire+0x13c/0x160 [ 22.166447][ T354] console_emit_next_record+0x252/0x4f0 [ 22.166452][ T354] ? devkmsg_read+0x4e0/0x4e0 [ 22.166459][ T354] ? rcu_is_watching+0x16/0xd0 [ 22.166463][ T354] ? lock_acquire+0x13c/0x160 [ 22.166469][ T354] console_flush_one_record+0x46f/0x710 [ 22.166476][ T354] ? console_emit_next_record+0x4f0/0x4f0 [ 22.166478][ T354] ? __lock_acquire+0x518/0xc20 [ 22.166487][ T354] console_unlock+0xee/0x1f0 [ 22.166491][ T354] ? console_flush_one_record+0x710/0x710 [ 22.166493][ T354] ? rcu_is_watching+0x16/0xd0 [ 22.166496][ T354] ? lock_acquire+0xa0/0x160 [ 22.166502][ T354] ? __down_trylock_console_sem+0x5e/0xa0 [ 22.166505][ T354] ? vprintk_emit+0x320/0x3e0 [ 22.166510][ T354] vprintk_emit+0x37c/0x3e0 [ 22.166516][ T354] ? wake_up_klogd_work_func+0x90/0x90 [ 22.166520][ T354] ? macsec_exit+0x6b0/0x6b0 [macsec] [ 22.166527][ T354] ? lockdep_init_map_type+0xe3/0x250 [ 22.166533][ T354] ? macsec_exit+0x6b0/0x6b0 [macsec] [ 22.166537][ T354] _printk+0xc7/0x100 [ 22.166542][ T354] ? snapshot_read.cold+0x21/0x21 [ 22.166545][ T354] ? alloc_workqueue_lockdep_map+0x130/0x130 [ 22.166559][ T354] macsec_init+0x3a/0x1000 [macsec] [ 22.166563][ T354] do_one_initcall+0x124/0x4f0 [ 22.166568][ T354] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 22.166576][ T354] ? do_init_module+0xae/0x8a0 [ 22.166579][ T354] ? kasan_unpoison+0x44/0x70 [ 22.166587][ T354] do_init_module+0x2ad/0x8a0 [ 22.166593][ T354] ? lockdep_hardirqs_on+0x91/0x130 [ 22.166599][ T354] ? free_module+0x470/0x470 [ 22.166604][ T354] ? kfree+0x123/0x590 [ 22.166611][ T354] load_module+0x1424/0x1bb0 [ 22.166622][ T354] ? layout_and_allocate.isra.0+0x680/0x680 [ 22.166635][ T354] init_module_from_file+0x11f/0x1a0 [ 22.166640][ T354] ? __ia32_sys_init_module+0xc0/0xc0 [ 22.166653][ T354] ? __rwlock_init+0x150/0x150 [ 22.166659][ T354] ? do_raw_spin_unlock+0x59/0x250 [ 22.166664][ T354] idempotent_init_module+0x37b/0x7c0 [ 22.166669][ T354] ? init_module_from_file+0x1a0/0x1a0 [ 22.166679][ T354] ? rcu_is_watching+0x16/0xd0 [ 22.166683][ T354] ? cap_capable+0x1d7/0x3d0 [ 22.166692][ T354] __x64_sys_finit_module+0xdf/0x190 [ 22.166695][ T354] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 22.166701][ T354] do_syscall_64+0xff/0x530 [ 22.166704][ T354] ? exc_page_fault+0xee/0x100 [ 22.166708][ T354] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 22.166712][ T354] RIP: 0033:0x7f53518fd37d [ 22.166717][ T354] 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.166720][ T354] RSP: 002b:00007ffd6fcb6758 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 22.166725][ T354] RAX: ffffffffffffffda RBX: 00005559a413f810 RCX: 00007f53518fd37d [ 22.166727][ T354] RDX: 0000000000000000 RSI: 000055598f489ffd RDI: 0000000000000000 [ 22.166728][ T354] RBP: 00007ffd6fcb67f0 R08: 0000000000000000 R09: 0000000000000000 [ 22.166730][ T354] R10: 0000000000000000 R11: 0000000000000246 R12: 000055598f489ffd [ 22.166731][ T354] R13: 00005559a413f940 R14: 0000000000040000 R15: 0000000000000000 [ 22.166743][ T354] [ 22.840455][ T368] 8021q: 802.1Q VLAN Support v1.8 [ 22.841293][ T368] 8021q: adding VLAN 0 to HW filter on device enp0s4 [ 23.168389][ T374] 8021q: adding VLAN 0 to HW filter on device ms335_0 [ 23.168408][ T374] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 23.168411][ T374] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 374, name: ip [ 23.168413][ T374] preempt_count: 1, expected: 0 [ 23.168413][ T374] RCU nest depth: 0, expected: 0 [ 23.168414][ T374] locks held by ip/374: 5, last CPU#2: [ 23.168416][ T374] #0: ffffffffa755f900 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11b0 [ 23.168431][ T374] #1: ffffffffa6d99dc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 23.168437][ T374] #2: ffffffffa6d99e38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 23.168441][ T374] #3: ffffffffa6c89760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 23.168445][ T374] #4: ffffffffa6c89660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 23.168449][ T374] irq event stamp: 37220 [ 23.168449][ T374] hardirqs last enabled at (37219): [] __down_trylock_console_sem+0x86/0xa0 [ 23.168452][ T374] hardirqs last disabled at (37220): [] console_emit_next_record+0x3f8/0x4f0 [ 23.168454][ T374] softirqs last enabled at (37182): [] inet6_fill_ifla6_attrs+0x1ac2/0x2140 [ 23.168457][ T374] softirqs last disabled at (37180): [] inet6_fill_ifla6_attrs+0x1a72/0x2140 [ 23.168460][ T374] Preemption disabled at: [ 23.168460][ T374] [] vprintk_emit+0x31b/0x3e0 [ 23.168466][ T374] CPU: 2 UID: 0 PID: 374 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 23.168469][ T374] Tainted: [W]=WARN [ 23.168470][ T374] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 23.168472][ T374] Call Trace: [ 23.168473][ T374] [ 23.168475][ T374] dump_stack_lvl+0x6f/0xa0 [ 23.168481][ T374] ? vprintk_emit+0x31b/0x3e0 [ 23.168483][ T374] __might_resched.cold+0x1fe/0x2c1 [ 23.168488][ T374] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 23.168492][ T374] ? __kmalloc_noprof+0xdb/0x760 [ 23.168497][ T374] __kmalloc_noprof+0x443/0x760 [ 23.168499][ T374] ? alloc_buf.isra.0+0x4b/0x260 [ 23.168505][ T374] ? do_raw_spin_unlock+0x59/0x250 [ 23.168508][ T374] alloc_buf.isra.0+0x4b/0x260 [ 23.168512][ T374] put_chars+0x1e1/0x2f0 [ 23.168515][ T374] ? __send_to_port+0x420/0x420 [ 23.168518][ T374] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 23.168522][ T374] ? rcu_read_lock_any_held+0x3c/0x90 [ 23.168524][ T374] ? validate_chain+0x38b/0xc20 [ 23.168530][ T374] hvc_console_print+0x292/0x780 [ 23.168534][ T374] ? mark_usage+0x61/0x170 [ 23.168537][ T374] ? __lock_acquire+0x518/0xc20 [ 23.168538][ T374] ? __lock_acquire+0x518/0xc20 [ 23.168542][ T374] ? hvc_write+0x3a0/0x3a0 [ 23.168544][ T374] ? lock_acquire.part.0+0xd4/0x280 [ 23.168548][ T374] ? lock_acquire+0x13c/0x160 [ 23.168552][ T374] console_emit_next_record+0x252/0x4f0 [ 23.168556][ T374] ? devkmsg_read+0x4e0/0x4e0 [ 23.168560][ T374] ? rcu_is_watching+0x16/0xd0 [ 23.168562][ T374] ? lock_acquire+0x13c/0x160 [ 23.168566][ T374] console_flush_one_record+0x46f/0x710 [ 23.168570][ T374] ? console_emit_next_record+0x4f0/0x4f0 [ 23.168571][ T374] ? __lock_acquire+0x518/0xc20 [ 23.168576][ T374] console_unlock+0xee/0x1f0 [ 23.168579][ T374] ? console_flush_one_record+0x710/0x710 [ 23.168581][ T374] ? rcu_is_watching+0x16/0xd0 [ 23.168583][ T374] ? lock_acquire+0xa0/0x160 [ 23.168586][ T374] ? __down_trylock_console_sem+0x5e/0xa0 [ 23.168588][ T374] ? vprintk_emit+0x320/0x3e0 [ 23.168591][ T374] vprintk_emit+0x37c/0x3e0 [ 23.168596][ T374] ? wake_up_klogd_work_func+0x90/0x90 [ 23.168598][ T374] ? mark_held_locks+0x40/0x70 [ 23.168602][ T374] _printk+0xc7/0x100 [ 23.168606][ T374] ? snapshot_read.cold+0x21/0x21 [ 23.168609][ T374] ? lock_acquire.part.0+0xd4/0x280 [ 23.168610][ T374] ? find_held_lock+0x2b/0x80 [ 23.168613][ T374] ? __lock_release.isra.0+0x69/0x1a0 [ 23.168615][ T374] ? notifier_call_chain+0x14a/0x300 [ 23.168618][ T374] vlan_device_event.cold+0x1c/0x1fc [8021q] [ 23.168624][ T374] ? net_generic+0xbd/0x1e0 [ 23.168628][ T374] ? packet_notifier+0x1c5/0xbd0 [ 23.168631][ T374] ? vxlan_netdevice_event+0xce/0x3e0 [ 23.168635][ T374] ? unregister_vlan_dev+0x380/0x380 [8021q] [ 23.168637][ T374] ? vxlan_exit_rtnl+0x160/0x160 [ 23.168642][ T374] ? rcu_is_watching+0x16/0xd0 [ 23.168644][ T374] notifier_call_chain+0xae/0x300 [ 23.168649][ T374] __dev_notify_flags+0x1b7/0x450 [ 23.168653][ T374] ? netif_change_name+0x8c0/0x8c0 [ 23.168655][ T374] ? __dev_change_flags+0x4a4/0x6d0 [ 23.168658][ T374] ? netif_set_allmulti+0x2c0/0x2c0 [ 23.168660][ T374] ? kernel_text_address+0x149/0x170 [ 23.168662][ T374] ? __kernel_text_address+0x12/0x30 [ 23.168663][ T374] ? write_profile+0xf0/0xf0 [ 23.168668][ T374] netif_change_flags+0xfe/0x190 [ 23.168672][ T374] do_setlink.isra.0+0x1d25/0x2a60 [ 23.168676][ T374] ? stack_trace_save+0x93/0xc0 [ 23.168678][ T374] ? rtnl_link_get_size+0x350/0x350 [ 23.168679][ T374] ? rcu_read_lock_any_held+0x66/0x90 [ 23.168681][ T374] ? stack_depot_save_flags+0x38e/0x790 [ 23.168685][ T374] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 23.168687][ T374] ? rcu_read_lock_any_held+0x3c/0x90 [ 23.168689][ T374] ? validate_chain+0x38b/0xc20 [ 23.168692][ T374] ? kasan_save_stack+0x3d/0x50 [ 23.168695][ T374] ? kasan_save_stack+0x2f/0x50 [ 23.168697][ T374] ? kasan_save_track+0x14/0x30 [ 23.168700][ T374] ? __lock_acquire+0x518/0xc20 [ 23.168701][ T374] ? netlink_setsockopt+0x7cd/0x940 [ 23.168705][ T374] ? ___sys_sendmsg+0x80/0x1d0 [ 23.168709][ T374] ? lock_acquire.part.0+0xd4/0x280 [ 23.168710][ T374] ? rtnl_newlink+0x9a8/0x11b0 [ 23.168713][ T374] ? rcu_is_watching+0x16/0xd0 [ 23.168715][ T374] ? lock_acquire+0x13c/0x160 [ 23.168717][ T374] ? rcu_is_watching+0x16/0xd0 [ 23.168719][ T374] ? rcu_is_watching+0x16/0xd0 [ 23.168721][ T374] ? trace_contention_end+0xb3/0x180 [ 23.168724][ T374] ? __mutex_lock+0x1db/0x1ea0 [ 23.168727][ T374] ? __mutex_lock+0x9a3/0x1ea0 [ 23.168729][ T374] ? rtnl_newlink+0x9a8/0x11b0 [ 23.168733][ T374] ? ww_mutex_lock+0x160/0x160 [ 23.168738][ T374] ? __rtnl_newlink+0x3fa/0xa50 [ 23.168743][ T374] rtnl_newlink+0x9f1/0x11b0 [ 23.168748][ T374] ? rtnl_bridge_getlink+0x850/0x850 [ 23.168751][ T374] ? __lock_acquire+0x518/0xc20 [ 23.168755][ T374] ? lock_acquire.part.0+0xd4/0x280 [ 23.168756][ T374] ? find_held_lock+0x2b/0x80 [ 23.168758][ T374] ? rtnl_bridge_getlink+0x850/0x850 [ 23.168760][ T374] ? __lock_release.isra.0+0x69/0x1a0 [ 23.168764][ T374] ? rtnl_bridge_getlink+0x850/0x850 [ 23.168766][ T374] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 23.168769][ T374] ? rtnl_link_fill+0x900/0x900 [ 23.168771][ T374] ? __lock_acquire+0x518/0xc20 [ 23.168775][ T374] ? lock_acquire.part.0+0xd4/0x280 [ 23.168777][ T374] ? find_held_lock+0x2b/0x80 [ 23.168780][ T374] netlink_rcv_skb+0x14e/0x3a0 [ 23.168782][ T374] ? rtnl_link_fill+0x900/0x900 [ 23.168785][ T374] ? netlink_ack+0xcd0/0xcd0 [ 23.168791][ T374] ? netlink_deliver_tap+0xc5/0x330 [ 23.168793][ T374] ? netlink_deliver_tap+0x13c/0x330 [ 23.168797][ T374] netlink_unicast+0x486/0x750 [ 23.168801][ T374] ? netlink_attachskb+0x810/0x810 [ 23.168804][ T374] ? __lock_acquire+0x518/0xc20 [ 23.168808][ T374] netlink_sendmsg+0x735/0xc60 [ 23.168812][ T374] ? netlink_unicast+0x750/0x750 [ 23.168816][ T374] ? __might_fault+0x97/0x140 [ 23.168821][ T374] ____sys_sendmsg+0x415/0x880 [ 23.168824][ T374] ? copy_msghdr_from_user+0x279/0x420 [ 23.168826][ T374] ? get_timestamp.constprop.0+0x3a0/0x3a0 [ 23.168828][ T374] ? move_addr_to_kernel+0x40/0x40 [ 23.168835][ T374] ___sys_sendmsg+0x14e/0x1d0 [ 23.168838][ T374] ? copy_msghdr_from_user+0x420/0x420 [ 23.168852][ T374] __sys_sendmsg+0x12c/0x1d0 [ 23.168855][ T374] ? __sys_sendmsg_sock+0x20/0x20 [ 23.168861][ T374] ? rcu_is_watching+0x16/0xd0 [ 23.168864][ T374] do_syscall_64+0xff/0x530 [ 23.168867][ T374] ? exc_page_fault+0xee/0x100 [ 23.168870][ T374] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 23.168872][ T374] RIP: 0033:0x7ff1f152254e [ 23.168876][ T374] 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 [ 23.168878][ T374] RSP: 002b:00007ffdd96203a0 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 23.168881][ T374] RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007ff1f152254e [ 23.168882][ T374] RDX: 0000000000000000 RSI: 00007ffdd9620450 RDI: 0000000000000003 [ 23.168883][ T374] RBP: 00007ffdd96203b0 R08: 0000000000000000 R09: 0000000000000000 [ 23.168884][ T374] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a90da7e [ 23.168885][ T374] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007ffdd9620b10 [ 23.168891][ T374]