[ 11.974403][ T201] rb_a: entered promiscuous mode [ 11.974519][ T201] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.974521][ T201] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 201, name: ip [ 11.974523][ T201] preempt_count: 1, expected: 0 [ 11.974524][ T201] RCU nest depth: 0, expected: 0 [ 11.974525][ T201] locks held by ip/201: 6, last CPU#2: [ 11.974527][ T201] #0: ffffffffa3ef2d88 (&ops->srcu){.+.+}-{0:0}, at: rtnl_link_ops_get+0xf1/0x280 [ 11.974539][ T201] #1: ffffffffa3ce3740 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11c0 [ 11.974543][ T201] #2: ffffffffa3579cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.974549][ T201] #3: ffffffffa3579d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.974552][ T201] #4: ffffffffa3499660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.974556][ T201] #5: ffffffffa3499560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.974560][ T201] irq event stamp: 29864 [ 11.974561][ T201] hardirqs last enabled at (29863): [] __down_trylock_console_sem+0x86/0xa0 [ 11.974564][ T201] hardirqs last disabled at (29864): [] console_emit_next_record+0x3d4/0x4c0 [ 11.974566][ T201] softirqs last enabled at (29740): [] __alloc_skb+0x4c2/0x5f0 [ 11.974569][ T201] softirqs last disabled at (29738): [] __alloc_skb+0x4c2/0x5f0 [ 11.974572][ T201] Preemption disabled at: [ 11.974572][ T201] [] vprintk_emit+0x31b/0x3e0 [ 11.974578][ T201] CPU: 2 UID: 0 PID: 201 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.974581][ T201] Tainted: [W]=WARN [ 11.974582][ T201] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.974584][ T201] Call Trace: [ 11.974586][ T201] [ 11.974589][ T201] dump_stack_lvl+0x6f/0xa0 [ 11.974595][ T201] ? vprintk_emit+0x31b/0x3e0 [ 11.974597][ T201] __might_resched.cold+0x1fe/0x2c1 [ 11.974601][ T201] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.974606][ T201] ? __kmalloc_noprof+0xdb/0x760 [ 11.974611][ T201] __kmalloc_noprof+0x443/0x760 [ 11.974613][ T201] ? alloc_buf.isra.0+0x4b/0x260 [ 11.974619][ T201] ? do_raw_spin_unlock+0x59/0x250 [ 11.974622][ T201] alloc_buf.isra.0+0x4b/0x260 [ 11.974625][ T201] put_chars+0x1e1/0x2f0 [ 11.974628][ T201] ? __send_to_port+0x420/0x420 [ 11.974635][ T201] hvc_console_print+0x292/0x780 [ 11.974642][ T201] ? hvc_write+0x3a0/0x3a0 [ 11.974645][ T201] ? lock_acquire+0x13c/0x160 [ 11.974650][ T201] console_emit_next_record+0x22f/0x4c0 [ 11.974653][ T201] ? devkmsg_read+0x4b0/0x4b0 [ 11.974655][ T201] ? console_flush_one_record+0x106/0x710 [ 11.974659][ T201] ? rcu_is_watching+0x16/0xd0 [ 11.974663][ T201] ? lock_acquire+0x13c/0x160 [ 11.974667][ T201] console_flush_one_record+0x46f/0x710 [ 11.974671][ T201] ? console_emit_next_record+0x4c0/0x4c0 [ 11.974673][ T201] ? __lock_acquire+0x518/0xc20 [ 11.974678][ T201] console_unlock+0xee/0x1f0 [ 11.974681][ T201] ? console_flush_one_record+0x710/0x710 [ 11.974683][ T201] ? rcu_is_watching+0x16/0xd0 [ 11.974685][ T201] ? lock_acquire+0x60/0x160 [ 11.974689][ T201] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.974691][ T201] ? vprintk_emit+0x320/0x3e0 [ 11.974695][ T201] vprintk_emit+0x37c/0x3e0 [ 11.974698][ T201] ? wake_up_klogd_work_func+0x90/0x90 [ 11.974700][ T201] ? kasan_save_stack+0x3d/0x50 [ 11.974704][ T201] ? kasan_save_track+0x14/0x30 [ 11.974705][ T201] ? __kasan_kmalloc+0x7b/0x90 [ 11.974707][ T201] ? __kmalloc_cache_noprof+0x29a/0x620 [ 11.974709][ T201] ? hsr_add_port+0x1eb/0xb60 [ 11.974712][ T201] ? hsr_dev_finalize+0x841/0xcf0 [ 11.974714][ T201] ? hsr_newlink+0x3b9/0x930 [ 11.974718][ T201] _printk+0xc7/0x100 [ 11.974721][ T201] ? snapshot_read.cold+0x21/0x21 [ 11.974723][ T201] ? entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.974727][ T201] ? netdev_name+0x43/0x60 [ 11.974731][ T201] ? __netdev_printk+0x17f/0x1d0 [ 11.974734][ T201] netdev_info+0xe2/0x116 [ 11.974736][ T201] ? netdev_notice+0x120/0x120 [ 11.974743][ T201] ? mutex_is_locked+0x1c/0x50 [ 11.974747][ T201] __dev_set_promiscuity.cold+0x95/0x104 [ 11.974752][ T201] netif_set_promiscuity+0x4c/0xc0 [ 11.974756][ T201] dev_set_promiscuity+0x9d/0x150 [ 11.974759][ T201] hsr_add_port+0x48c/0xb60 [ 11.974763][ T201] ? hsr_port_exists+0x60/0x60 [ 11.974766][ T201] ? timer_init_key+0x10d/0x280 [ 11.974771][ T201] hsr_dev_finalize+0x841/0xcf0 [ 11.974773][ T201] ? alloc_netdev_mqs+0xe12/0x14d0 [ 11.974778][ T201] ? alloc_netdev_mqs+0xf05/0x14d0 [ 11.974780][ T201] hsr_newlink+0x3b9/0x930 [ 11.974783][ T201] ? hsr_dellink+0x90/0x90 [ 11.974786][ T201] ? rtnl_create_link+0x169/0xf20 [ 11.974788][ T201] ? nla_strscpy+0xe3/0x180 [ 11.974792][ T201] rtnl_newlink_create+0x2d0/0x750 [ 11.974796][ T201] ? rtnl_create_link+0xf20/0xf20 [ 11.974798][ T201] ? __dev_get_by_name+0x12/0x50 [ 11.974800][ T201] ? rtnl_dev_get+0xd7/0x170 [ 11.974809][ T201] __rtnl_newlink+0x22b/0xa50 [ 11.974815][ T201] rtnl_newlink+0x9f1/0x11c0 [ 11.974821][ T201] ? rtnl_bridge_getlink+0x850/0x850 [ 11.974823][ T201] ? __lock_acquire+0x518/0xc20 [ 11.974830][ T201] ? __lock_release.isra.0+0x69/0x1a0 [ 11.974834][ T201] ? rtnl_bridge_getlink+0x850/0x850 [ 11.974836][ T201] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 11.974839][ T201] ? rtnl_link_fill+0x920/0x920 [ 11.974841][ T201] ? __lock_acquire+0x518/0xc20 [ 11.974845][ T201] ? lock_acquire.part.0+0xd4/0x280 [ 11.974847][ T201] ? find_held_lock+0x2b/0x80 [ 11.974851][ T201] netlink_rcv_skb+0x14e/0x3a0 [ 11.974855][ T201] ? rtnl_link_fill+0x920/0x920 [ 11.974858][ T201] ? netlink_ack+0xcf0/0xcf0 [ 11.974864][ T201] ? netlink_deliver_tap+0xc5/0x330 [ 11.974867][ T201] ? netlink_deliver_tap+0x13c/0x330 [ 11.974871][ T201] netlink_unicast+0x486/0x750 [ 11.974876][ T201] ? netlink_attachskb+0x810/0x810 [ 11.974879][ T201] ? __lock_acquire+0x518/0xc20 [ 11.974883][ T201] netlink_sendmsg+0x735/0xc60 [ 11.974887][ T201] ? netlink_unicast+0x750/0x750 [ 11.974892][ T201] ? __might_fault+0x97/0x140 [ 11.974897][ T201] ____sys_sendmsg+0x415/0x880 [ 11.974901][ T201] ? copy_msghdr_from_user+0x279/0x420 [ 11.974904][ T201] ? get_timestamp.constprop.0+0x390/0x390 [ 11.974905][ T201] ? move_addr_to_kernel+0x40/0x40 [ 11.974910][ T201] ? do_fault_around+0x300/0x5a0 [ 11.974913][ T201] ? find_held_lock+0x2b/0x80 [ 11.974917][ T201] ___sys_sendmsg+0x14e/0x1d0 [ 11.974918][ T201] ? do_pte_missing+0x86f/0xcc0 [ 11.974921][ T201] ? copy_msghdr_from_user+0x420/0x420 [ 11.974924][ T201] ? rcu_read_unlock+0x20/0x70 [ 11.974940][ T201] __sys_sendmsg+0x12c/0x1d0 [ 11.974943][ T201] ? __sys_sendmsg_sock+0x20/0x20 [ 11.974949][ T201] ? rcu_is_watching+0x16/0xd0 [ 11.974951][ T201] ? rcu_is_watching+0x16/0xd0 [ 11.974955][ T201] do_syscall_64+0xff/0x530 [ 11.974958][ T201] ? exc_page_fault+0xee/0x100 [ 11.974961][ T201] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.974963][ T201] RIP: 0033:0x7fa0789a054e [ 11.974968][ 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 [ 11.974969][ T201] RSP: 002b:00007ffcc767dfc0 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 11.974972][ T201] RAX: ffffffffffffffda RBX: 00007ffcc767e770 RCX: 00007fa0789a054e [ 11.974974][ T201] RDX: 0000000000000000 RSI: 00007ffcc767e070 RDI: 0000000000000005 [ 11.974975][ T201] RBP: 00007ffcc767dfd0 R08: 0000000000000000 R09: 0000000000000000 [ 11.974976][ T201] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a90e420 [ 11.974977][ T201] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007ffcc767e740 [ 11.974984][ T201] [ 12.021747][ T201] rb_b: entered promiscuous mode [ 12.023437][ T201] rb_il: entered promiscuous mode [ 12.063341][ T201] ip (201) used greatest stack depth: 23336 bytes left [ 12.136956][ T204] pe_a: entered promiscuous mode [ 12.137930][ T204] pe_b: entered promiscuous mode [ 12.145582][ T204] debugfs: 'prp0' already exists in 'hsr' [ 12.145930][ T204] Cannot create hsr debugfs directory [ 12.182045][ T205] prp0: Slave A (pe_a) is not up; please bring it up to get a fully working HSR network [ 18.928232][ T12] rb_a: left promiscuous mode [ 18.928290][ T12] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 18.928292][ T12] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 12, name: kworker/u16:0 [ 18.928294][ T12] preempt_count: 1, expected: 0 [ 18.928295][ T12] RCU nest depth: 0, expected: 0 [ 18.928296][ T12] locks held by kworker/u16:0/12: 8, last CPU#2: [ 18.928298][ T12] #0: ff11000001a09d40 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0xd9a/0x1560 [ 18.928310][ T12] #1: ffa00000000c7d10 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xdfc/0x1560 [ 18.928314][ T12] #2: ffffffffa3cc7a88 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbf/0x890 [ 18.928320][ T12] #3: ffffffffa3ce3740 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0x9a/0x600 [ 18.928324][ T12] #4: ffffffffa3579cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 18.928330][ T12] #5: ffffffffa3579d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 18.928333][ T12] #6: ffffffffa3499660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 18.928337][ T12] #7: ffffffffa3499560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 18.928341][ T12] irq event stamp: 8532 [ 18.928342][ T12] hardirqs last enabled at (8531): [] __down_trylock_console_sem+0x86/0xa0 [ 18.928344][ T12] hardirqs last disabled at (8532): [] console_emit_next_record+0x3d4/0x4c0 [ 18.928346][ T12] softirqs last enabled at (8404): [] tcp_close+0x2b/0xb0 [ 18.928350][ T12] softirqs last disabled at (8402): [] release_sock+0x21/0x240 [ 18.928353][ T12] Preemption disabled at: [ 18.928354][ T12] [] vprintk_emit+0x31b/0x3e0 [ 18.928360][ T12] CPU: 2 UID: 0 PID: 12 Comm: kworker/u16:0 Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 18.928363][ T12] Tainted: [W]=WARN [ 18.928364][ T12] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.928366][ T12] Workqueue: netns cleanup_net [ 18.928369][ T12] Call Trace: [ 18.928371][ T12] [ 18.928373][ T12] dump_stack_lvl+0x6f/0xa0 [ 18.928379][ T12] ? vprintk_emit+0x31b/0x3e0 [ 18.928382][ T12] __might_resched.cold+0x1fe/0x2c1 [ 18.928386][ T12] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 18.928391][ T12] ? __kmalloc_noprof+0xdb/0x760 [ 18.928396][ T12] __kmalloc_noprof+0x443/0x760 [ 18.928398][ T12] ? alloc_buf.isra.0+0x4b/0x260 [ 18.928404][ T12] ? do_raw_spin_unlock+0x59/0x250 [ 18.928407][ T12] alloc_buf.isra.0+0x4b/0x260 [ 18.928412][ T12] put_chars+0x1e1/0x2f0 [ 18.928415][ T12] ? check_prev_add+0xef/0xe90 [ 18.928419][ T12] ? __send_to_port+0x420/0x420 [ 18.928422][ T12] ? validate_chain+0x34a/0xc20 [ 18.928427][ T12] hvc_console_print+0x292/0x780 [ 18.928441][ T12] ? hvc_write+0x3a0/0x3a0 [ 18.928444][ T12] ? rcu_is_watching+0x16/0xd0 [ 18.928448][ T12] ? lock_acquire+0x13c/0x160 [ 18.928453][ T12] console_emit_next_record+0x22f/0x4c0 [ 18.928458][ T12] ? devkmsg_read+0x4b0/0x4b0 [ 18.928460][ T12] ? console_flush_one_record+0x106/0x710 [ 18.928463][ T12] ? rcu_is_watching+0x16/0xd0 [ 18.928465][ T12] ? lock_acquire+0x13c/0x160 [ 18.928470][ T12] console_flush_one_record+0x46f/0x710 [ 18.928474][ T12] ? console_emit_next_record+0x4c0/0x4c0 [ 18.928476][ T12] ? __lock_acquire+0x518/0xc20 [ 18.928482][ T12] console_unlock+0xee/0x1f0 [ 18.928485][ T12] ? console_flush_one_record+0x710/0x710 [ 18.928486][ T12] ? rcu_is_watching+0x16/0xd0 [ 18.928489][ T12] ? lock_acquire+0x60/0x160 [ 18.928493][ T12] ? __down_trylock_console_sem+0x5e/0xa0 [ 18.928495][ T12] ? vprintk_emit+0x320/0x3e0 [ 18.928498][ T12] vprintk_emit+0x37c/0x3e0 [ 18.928502][ T12] ? wake_up_klogd_work_func+0x90/0x90 [ 18.928505][ T12] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 18.928507][ T12] ? lockdep_hardirqs_on+0x91/0x130 [ 18.928510][ T12] ? finish_task_switch.isra.0+0x209/0xa70 [ 18.928512][ T12] ? finish_task_switch.isra.0+0x209/0xa70 [ 18.928515][ T12] _printk+0xc7/0x100 [ 18.928519][ T12] ? snapshot_read.cold+0x21/0x21 [ 18.928522][ T12] ? synchronize_rcu_expedited+0x440/0x510 [ 18.928525][ T12] ? netdev_name+0x43/0x60 [ 18.928529][ T12] ? __netdev_printk+0x17f/0x1d0 [ 18.928532][ T12] netdev_info+0xe2/0x116 [ 18.928535][ T12] ? netdev_notice+0x120/0x120 [ 18.928539][ T12] ? synchronize_rcu_expedited+0x440/0x510 [ 18.928540][ T12] ? netif_set_mtu_ext+0x5f0/0x5f0 [ 18.928542][ T12] ? synchronize_rcu_normal+0x340/0x340 [ 18.928546][ T12] ? mutex_is_locked+0x1c/0x50 [ 18.928550][ T12] __dev_set_promiscuity.cold+0x95/0x104 [ 18.928553][ T12] ? sync_rcu_exp_select_cpus+0x700/0x700 [ 18.928556][ T12] netif_set_promiscuity+0x4c/0xc0 [ 18.928561][ T12] dev_set_promiscuity+0x9d/0x150 [ 18.928566][ T12] hsr_del_port+0x39d/0x540 [ 18.928573][ T12] hsr_del_ports+0x24/0x80 [ 18.928575][ T12] hsr_dellink+0x5d/0x90 [ 18.928578][ T12] default_device_exit_batch+0x19d/0x600 [ 18.928582][ T12] ? unregister_netdevice_queue+0x470/0x470 [ 18.928585][ T12] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 18.928590][ T12] ? mutex_is_locked+0x1c/0x50 [ 18.928594][ T12] ops_undo_list+0x2ce/0x8f0 [ 18.928599][ T12] ? lockdep_hardirqs_on+0x91/0x130 [ 18.928601][ T12] ? rtnl_net_dumpid_one+0x2d0/0x2d0 [ 18.928603][ T12] ? __lock_release.isra.0+0x69/0x1a0 [ 18.928606][ T12] ? idr_destroy+0x121/0x250 [ 18.928611][ T12] cleanup_net+0x431/0x890 [ 18.928614][ T12] ? net_passive_dec+0x230/0x230 [ 18.928618][ T12] ? lock_acquire+0x13c/0x160 [ 18.928620][ T12] ? rcu_is_watching+0x16/0xd0 [ 18.928625][ T12] process_one_work+0xe3e/0x1560 [ 18.928631][ T12] ? __queue_delayed_work+0x470/0x470 [ 18.928634][ T12] ? lock_acquire.part.0+0xd4/0x280 [ 18.928642][ T12] worker_thread+0x4f1/0xd60 [ 18.928650][ T12] ? rescuer_thread+0x1340/0x1340 [ 18.928652][ T12] kthread+0x367/0x460 [ 18.928655][ T12] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 18.928658][ T12] ? kthread_affine_preferred+0x4c0/0x4c0 [ 18.928661][ T12] ret_from_fork+0x474/0x6b0 [ 18.928665][ T12] ? arch_exit_to_user_mode_prepare.isra.0+0x120/0x120 [ 18.928669][ T12] ? __switch_to+0x5a3/0xe00 [ 18.928672][ T12] ? kthread_affine_preferred+0x4c0/0x4c0 [ 18.928675][ T12] ret_from_fork_asm+0x11/0x20 [ 18.928684][ T12] [ 18.964535][ T12] rb_b: left promiscuous mode [ 18.965768][ T12] rb_il: left promiscuous mode [ 18.986803][ T12] pe_b (unregistering): left promiscuous mode [ 18.991756][ T12] pe_a (unregistering): left promiscuous mode