[ 10.308006][ T201] rb_a: entered promiscuous mode [ 10.308070][ T201] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.308072][ T201] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 201, name: ip [ 10.308074][ T201] preempt_count: 1, expected: 0 [ 10.308075][ T201] RCU nest depth: 0, expected: 0 [ 10.308076][ T201] locks held by ip/201: 6, last CPU#3: [ 10.308078][ T201] #0: ffffffffb20f3088 (&ops->srcu){.+.+}-{0:0}, at: rtnl_link_ops_get+0xf1/0x280 [ 10.308090][ T201] #1: ffffffffb1ee3740 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11c0 [ 10.308094][ T201] #2: ffffffffb1779cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.308100][ T201] #3: ffffffffb1779d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.308104][ T201] #4: ffffffffb1699660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.308108][ T201] #5: ffffffffb1699560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.308112][ T201] irq event stamp: 32096 [ 10.308113][ T201] hardirqs last enabled at (32095): [] __down_trylock_console_sem+0x86/0xa0 [ 10.308116][ T201] hardirqs last disabled at (32096): [] console_emit_next_record+0x3d4/0x4c0 [ 10.308118][ T201] softirqs last enabled at (31972): [] __alloc_skb+0x4c2/0x5f0 [ 10.308121][ T201] softirqs last disabled at (31970): [] __alloc_skb+0x4c2/0x5f0 [ 10.308124][ T201] Preemption disabled at: [ 10.308125][ T201] [] vprintk_emit+0x31b/0x3e0 [ 10.308131][ T201] CPU: 3 UID: 0 PID: 201 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.308135][ T201] Tainted: [W]=WARN [ 10.308135][ T201] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.308137][ T201] Call Trace: [ 10.308139][ T201] [ 10.308140][ T201] dump_stack_lvl+0x6f/0xa0 [ 10.308146][ T201] ? vprintk_emit+0x31b/0x3e0 [ 10.308149][ T201] __might_resched.cold+0x1fe/0x2c1 [ 10.308153][ T201] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.308160][ T201] ? __kmalloc_noprof+0xdb/0x760 [ 10.308165][ T201] __kmalloc_noprof+0x443/0x760 [ 10.308168][ T201] ? alloc_buf.isra.0+0x4b/0x260 [ 10.308174][ T201] ? do_raw_spin_unlock+0x59/0x250 [ 10.308177][ T201] alloc_buf.isra.0+0x4b/0x260 [ 10.308180][ T201] put_chars+0x1e1/0x2f0 [ 10.308183][ T201] ? __send_to_port+0x420/0x420 [ 10.308190][ T201] hvc_console_print+0x292/0x780 [ 10.308197][ T201] ? hvc_write+0x3a0/0x3a0 [ 10.308200][ T201] ? lock_acquire+0x13c/0x160 [ 10.308204][ T201] console_emit_next_record+0x22f/0x4c0 [ 10.308208][ T201] ? devkmsg_read+0x4b0/0x4b0 [ 10.308210][ T201] ? console_flush_one_record+0x106/0x710 [ 10.308213][ T201] ? rcu_is_watching+0x16/0xd0 [ 10.308217][ T201] ? lock_acquire+0x13c/0x160 [ 10.308221][ T201] console_flush_one_record+0x46f/0x710 [ 10.308225][ T201] ? console_emit_next_record+0x4c0/0x4c0 [ 10.308227][ T201] ? __lock_acquire+0x518/0xc20 [ 10.308232][ T201] console_unlock+0xee/0x1f0 [ 10.308235][ T201] ? console_flush_one_record+0x710/0x710 [ 10.308237][ T201] ? rcu_is_watching+0x16/0xd0 [ 10.308239][ T201] ? lock_acquire+0x60/0x160 [ 10.308243][ T201] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.308244][ T201] ? vprintk_emit+0x320/0x3e0 [ 10.308248][ T201] vprintk_emit+0x37c/0x3e0 [ 10.308251][ T201] ? wake_up_klogd_work_func+0x90/0x90 [ 10.308253][ T201] ? kasan_save_stack+0x3d/0x50 [ 10.308256][ T201] ? kasan_save_track+0x14/0x30 [ 10.308258][ T201] ? __kasan_kmalloc+0x7b/0x90 [ 10.308260][ T201] ? __kmalloc_cache_noprof+0x29a/0x620 [ 10.308261][ T201] ? hsr_add_port+0x1eb/0xb60 [ 10.308265][ T201] ? hsr_dev_finalize+0x841/0xcf0 [ 10.308267][ T201] ? hsr_newlink+0x3b9/0x930 [ 10.308270][ T201] _printk+0xc7/0x100 [ 10.308274][ T201] ? snapshot_read.cold+0x21/0x21 [ 10.308275][ T201] ? entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.308280][ T201] ? netdev_name+0x43/0x60 [ 10.308283][ T201] ? __netdev_printk+0x17f/0x1d0 [ 10.308286][ T201] netdev_info+0xe2/0x116 [ 10.308288][ T201] ? netdev_notice+0x120/0x120 [ 10.308295][ T201] ? mutex_is_locked+0x1c/0x50 [ 10.308299][ T201] __dev_set_promiscuity.cold+0x95/0x104 [ 10.308303][ T201] netif_set_promiscuity+0x4c/0xc0 [ 10.308308][ T201] dev_set_promiscuity+0x9d/0x150 [ 10.308311][ T201] hsr_add_port+0x48c/0xb60 [ 10.308314][ T201] ? hsr_port_exists+0x60/0x60 [ 10.308322][ T201] ? timer_init_key+0x10d/0x280 [ 10.308328][ T201] hsr_dev_finalize+0x841/0xcf0 [ 10.308330][ T201] ? alloc_netdev_mqs+0xe12/0x14d0 [ 10.308335][ T201] ? alloc_netdev_mqs+0xf05/0x14d0 [ 10.308337][ T201] hsr_newlink+0x3b9/0x930 [ 10.308340][ T201] ? hsr_dellink+0x90/0x90 [ 10.308342][ T201] ? rtnl_create_link+0x169/0xf20 [ 10.308344][ T201] ? nla_strscpy+0xe3/0x180 [ 10.308349][ T201] rtnl_newlink_create+0x2d0/0x750 [ 10.308353][ T201] ? rtnl_create_link+0xf20/0xf20 [ 10.308354][ T201] ? __dev_get_by_name+0x12/0x50 [ 10.308356][ T201] ? rtnl_dev_get+0xd7/0x170 [ 10.308365][ T201] __rtnl_newlink+0x22b/0xa50 [ 10.308371][ T201] rtnl_newlink+0x9f1/0x11c0 [ 10.308377][ T201] ? rtnl_bridge_getlink+0x850/0x850 [ 10.308379][ T201] ? __lock_acquire+0x518/0xc20 [ 10.308386][ T201] ? __lock_release.isra.0+0x69/0x1a0 [ 10.308389][ T201] ? rtnl_bridge_getlink+0x850/0x850 [ 10.308392][ T201] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 10.308395][ T201] ? rtnl_link_fill+0x920/0x920 [ 10.308396][ T201] ? __lock_acquire+0x518/0xc20 [ 10.308401][ T201] ? lock_acquire.part.0+0xd4/0x280 [ 10.308403][ T201] ? find_held_lock+0x2b/0x80 [ 10.308406][ T201] netlink_rcv_skb+0x14e/0x3a0 [ 10.308410][ T201] ? rtnl_link_fill+0x920/0x920 [ 10.308413][ T201] ? netlink_ack+0xcf0/0xcf0 [ 10.308420][ T201] ? netlink_deliver_tap+0xc5/0x330 [ 10.308422][ T201] ? netlink_deliver_tap+0x13c/0x330 [ 10.308426][ T201] netlink_unicast+0x486/0x750 [ 10.308431][ T201] ? netlink_attachskb+0x810/0x810 [ 10.308433][ T201] ? __lock_acquire+0x518/0xc20 [ 10.308438][ T201] netlink_sendmsg+0x735/0xc60 [ 10.308442][ T201] ? netlink_unicast+0x750/0x750 [ 10.308446][ T201] ? __might_fault+0x97/0x140 [ 10.308452][ T201] ____sys_sendmsg+0x415/0x880 [ 10.308455][ T201] ? copy_msghdr_from_user+0x279/0x420 [ 10.308458][ T201] ? get_timestamp.constprop.0+0x390/0x390 [ 10.308460][ T201] ? move_addr_to_kernel+0x40/0x40 [ 10.308467][ T201] ___sys_sendmsg+0x14e/0x1d0 [ 10.308470][ T201] ? copy_msghdr_from_user+0x420/0x420 [ 10.308487][ T201] __sys_sendmsg+0x12c/0x1d0 [ 10.308490][ T201] ? __sys_sendmsg_sock+0x20/0x20 [ 10.308496][ T201] ? rcu_is_watching+0x16/0xd0 [ 10.308500][ T201] do_syscall_64+0xff/0x530 [ 10.308503][ T201] ? exc_page_fault+0xee/0x100 [ 10.308506][ T201] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.308508][ T201] RIP: 0033:0x7fa42057554e [ 10.308512][ T201] 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 [ 10.308514][ T201] RSP: 002b:00007fffadca8300 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 10.308516][ T201] RAX: ffffffffffffffda RBX: 00007fffadca8ab0 RCX: 00007fa42057554e [ 10.308518][ T201] RDX: 0000000000000000 RSI: 00007fffadca83b0 RDI: 0000000000000005 [ 10.308519][ T201] RBP: 00007fffadca8310 R08: 0000000000000000 R09: 0000000000000000 [ 10.308520][ T201] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a918ae5 [ 10.308521][ T201] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007fffadca8a80 [ 10.308528][ T201] [ 10.340327][ T201] rb_b: entered promiscuous mode [ 10.341372][ T201] rb_il: entered promiscuous mode [ 10.347347][ T201] ip (201) used greatest stack depth: 23336 bytes left [ 10.409721][ T203] pe_a: entered promiscuous mode [ 10.410515][ T203] pe_b: entered promiscuous mode [ 10.411353][ T203] debugfs: 'prp0' already exists in 'hsr' [ 10.411591][ T203] Cannot create hsr debugfs directory [ 10.438004][ T204] prp0: Slave A (pe_a) is not up; please bring it up to get a fully working HSR network [ 17.191605][ T12] rb_a: left promiscuous mode [ 17.191654][ T12] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 17.191657][ T12] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 12, name: kworker/u16:0 [ 17.191658][ T12] preempt_count: 1, expected: 0 [ 17.191659][ T12] RCU nest depth: 0, expected: 0 [ 17.191660][ T12] locks held by kworker/u16:0/12: 8, last CPU#1: [ 17.191663][ T12] #0: ff11000001a09d40 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0xd9a/0x1560 [ 17.191674][ T12] #1: ffa00000000c7d10 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xdfc/0x1560 [ 17.191678][ T12] #2: ffffffffb1ec7a88 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbf/0x890 [ 17.191684][ T12] #3: ffffffffb1ee3740 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0x9a/0x600 [ 17.191687][ T12] #4: ffffffffb1779cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 17.191692][ T12] #5: ffffffffb1779d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 17.191696][ T12] #6: ffffffffb1699660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 17.191699][ T12] #7: ffffffffb1699560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 17.191703][ T12] irq event stamp: 17992 [ 17.191704][ T12] hardirqs last enabled at (17991): [] __down_trylock_console_sem+0x86/0xa0 [ 17.191707][ T12] hardirqs last disabled at (17992): [] console_emit_next_record+0x3d4/0x4c0 [ 17.191709][ T12] softirqs last enabled at (17864): [] tcp_close+0x2b/0xb0 [ 17.191712][ T12] softirqs last disabled at (17862): [] release_sock+0x21/0x240 [ 17.191715][ T12] Preemption disabled at: [ 17.191716][ T12] [] vprintk_emit+0x31b/0x3e0 [ 17.191721][ T12] CPU: 1 UID: 0 PID: 12 Comm: kworker/u16:0 Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 17.191725][ T12] Tainted: [W]=WARN [ 17.191726][ T12] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.191727][ T12] Workqueue: netns cleanup_net [ 17.191731][ T12] Call Trace: [ 17.191733][ T12] [ 17.191735][ T12] dump_stack_lvl+0x6f/0xa0 [ 17.191741][ T12] ? vprintk_emit+0x31b/0x3e0 [ 17.191743][ T12] __might_resched.cold+0x1fe/0x2c1 [ 17.191748][ T12] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 17.191752][ T12] ? __kmalloc_noprof+0xdb/0x760 [ 17.191757][ T12] __kmalloc_noprof+0x443/0x760 [ 17.191759][ T12] ? alloc_buf.isra.0+0x4b/0x260 [ 17.191765][ T12] ? do_raw_spin_unlock+0x59/0x250 [ 17.191768][ T12] alloc_buf.isra.0+0x4b/0x260 [ 17.191771][ T12] put_chars+0x1e1/0x2f0 [ 17.191774][ T12] ? check_prev_add+0xef/0xe90 [ 17.191776][ T12] ? __send_to_port+0x420/0x420 [ 17.191779][ T12] ? validate_chain+0x34a/0xc20 [ 17.191784][ T12] hvc_console_print+0x292/0x780 [ 17.191791][ T12] ? hvc_write+0x3a0/0x3a0 [ 17.191794][ T12] ? rcu_is_watching+0x16/0xd0 [ 17.191798][ T12] ? lock_acquire+0x13c/0x160 [ 17.191802][ T12] console_emit_next_record+0x22f/0x4c0 [ 17.191806][ T12] ? devkmsg_read+0x4b0/0x4b0 [ 17.191808][ T12] ? console_flush_one_record+0x106/0x710 [ 17.191811][ T12] ? rcu_is_watching+0x16/0xd0 [ 17.191813][ T12] ? lock_acquire+0x13c/0x160 [ 17.191817][ T12] console_flush_one_record+0x46f/0x710 [ 17.191822][ T12] ? console_emit_next_record+0x4c0/0x4c0 [ 17.191824][ T12] ? __lock_acquire+0x518/0xc20 [ 17.191829][ T12] console_unlock+0xee/0x1f0 [ 17.191832][ T12] ? console_flush_one_record+0x710/0x710 [ 17.191834][ T12] ? rcu_is_watching+0x16/0xd0 [ 17.191836][ T12] ? lock_acquire+0x60/0x160 [ 17.191840][ T12] ? __down_trylock_console_sem+0x5e/0xa0 [ 17.191842][ T12] ? vprintk_emit+0x320/0x3e0 [ 17.191845][ T12] vprintk_emit+0x37c/0x3e0 [ 17.191849][ T12] ? wake_up_klogd_work_func+0x90/0x90 [ 17.191852][ T12] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 17.191854][ T12] ? lockdep_hardirqs_on+0x91/0x130 [ 17.191857][ T12] ? finish_task_switch.isra.0+0x209/0xa70 [ 17.191858][ T12] ? finish_task_switch.isra.0+0x209/0xa70 [ 17.191862][ T12] _printk+0xc7/0x100 [ 17.191866][ T12] ? snapshot_read.cold+0x21/0x21 [ 17.191869][ T12] ? synchronize_rcu_expedited+0x440/0x510 [ 17.191872][ T12] ? netdev_name+0x43/0x60 [ 17.191875][ T12] ? __netdev_printk+0x17f/0x1d0 [ 17.191879][ T12] netdev_info+0xe2/0x116 [ 17.191881][ T12] ? netdev_notice+0x120/0x120 [ 17.191885][ T12] ? synchronize_rcu_expedited+0x440/0x510 [ 17.191887][ T12] ? netif_set_mtu_ext+0x5f0/0x5f0 [ 17.191889][ T12] ? synchronize_rcu_normal+0x340/0x340 [ 17.191893][ T12] ? mutex_is_locked+0x1c/0x50 [ 17.191897][ T12] __dev_set_promiscuity.cold+0x95/0x104 [ 17.191900][ T12] ? sync_rcu_exp_select_cpus+0x700/0x700 [ 17.191902][ T12] netif_set_promiscuity+0x4c/0xc0 [ 17.191907][ T12] dev_set_promiscuity+0x9d/0x150 [ 17.191910][ T12] hsr_del_port+0x39d/0x540 [ 17.191915][ T12] hsr_del_ports+0x24/0x80 [ 17.191918][ T12] hsr_dellink+0x5d/0x90 [ 17.191920][ T12] default_device_exit_batch+0x19d/0x600 [ 17.191924][ T12] ? unregister_netdevice_queue+0x470/0x470 [ 17.191927][ T12] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 17.191929][ T12] ? mutex_is_locked+0x1c/0x50 [ 17.191933][ T12] ops_undo_list+0x2ce/0x8f0 [ 17.191937][ T12] ? lockdep_hardirqs_on+0x91/0x130 [ 17.191939][ T12] ? rtnl_net_dumpid_one+0x2d0/0x2d0 [ 17.191941][ T12] ? __lock_release.isra.0+0x69/0x1a0 [ 17.191944][ T12] ? idr_destroy+0x121/0x250 [ 17.191949][ T12] cleanup_net+0x431/0x890 [ 17.191952][ T12] ? net_passive_dec+0x230/0x230 [ 17.191956][ T12] ? lock_acquire+0x13c/0x160 [ 17.191958][ T12] ? rcu_is_watching+0x16/0xd0 [ 17.191962][ T12] process_one_work+0xe3e/0x1560 [ 17.191969][ T12] ? __queue_delayed_work+0x470/0x470 [ 17.191972][ T12] ? lock_acquire.part.0+0xd4/0x280 [ 17.191979][ T12] worker_thread+0x4f1/0xd60 [ 17.191986][ T12] ? rescuer_thread+0x1340/0x1340 [ 17.191989][ T12] kthread+0x367/0x460 [ 17.191992][ T12] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 17.191995][ T12] ? kthread_affine_preferred+0x4c0/0x4c0 [ 17.191997][ T12] ret_from_fork+0x474/0x6b0 [ 17.192001][ T12] ? arch_exit_to_user_mode_prepare.isra.0+0x120/0x120 [ 17.192005][ T12] ? __switch_to+0x5a3/0xe00 [ 17.192008][ T12] ? kthread_affine_preferred+0x4c0/0x4c0 [ 17.192011][ T12] ret_from_fork_asm+0x11/0x20 [ 17.192020][ T12] [ 17.220823][ T12] rb_b: left promiscuous mode [ 17.230590][ T12] rb_il: left promiscuous mode [ 17.244661][ T12] pe_b (unregistering): left promiscuous mode [ 17.247977][ T12] pe_a (unregistering): left promiscuous mode