[ 10.429204][ T199] rb_a: entered promiscuous mode [ 10.429267][ T199] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.429269][ T199] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 199, name: ip [ 10.429271][ T199] preempt_count: 1, expected: 0 [ 10.429272][ T199] RCU nest depth: 0, expected: 0 [ 10.429273][ T199] locks held by ip/199: 6, last CPU#0: [ 10.429275][ T199] #0: ffffffff88af3088 (&ops->srcu){.+.+}-{0:0}, at: rtnl_link_ops_get+0xf1/0x280 [ 10.429287][ T199] #1: ffffffff888e3740 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x9a8/0x11c0 [ 10.429291][ T199] #2: ffffffff88179cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.429297][ T199] #3: ffffffff88179d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.429301][ T199] #4: ffffffff88099660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.429304][ T199] #5: ffffffff88099560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.429308][ T199] irq event stamp: 24918 [ 10.429309][ T199] hardirqs last enabled at (24917): [] __down_trylock_console_sem+0x86/0xa0 [ 10.429312][ T199] hardirqs last disabled at (24918): [] console_emit_next_record+0x3d4/0x4c0 [ 10.429314][ T199] softirqs last enabled at (24794): [] __alloc_skb+0x4c2/0x5f0 [ 10.429318][ T199] softirqs last disabled at (24792): [] __alloc_skb+0x4c2/0x5f0 [ 10.429320][ T199] Preemption disabled at: [ 10.429321][ T199] [] vprintk_emit+0x31b/0x3e0 [ 10.429327][ T199] CPU: 0 UID: 0 PID: 199 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.429331][ T199] Tainted: [W]=WARN [ 10.429331][ T199] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.429333][ T199] Call Trace: [ 10.429335][ T199] [ 10.429336][ T199] dump_stack_lvl+0x6f/0xa0 [ 10.429342][ T199] ? vprintk_emit+0x31b/0x3e0 [ 10.429345][ T199] __might_resched.cold+0x1fe/0x2c1 [ 10.429349][ T199] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.429353][ T199] ? __kmalloc_noprof+0xdb/0x760 [ 10.429359][ T199] __kmalloc_noprof+0x443/0x760 [ 10.429361][ T199] ? alloc_buf.isra.0+0x4b/0x260 [ 10.429367][ T199] ? do_raw_spin_unlock+0x59/0x250 [ 10.429370][ T199] alloc_buf.isra.0+0x4b/0x260 [ 10.429373][ T199] put_chars+0x1e1/0x2f0 [ 10.429376][ T199] ? __send_to_port+0x420/0x420 [ 10.429383][ T199] hvc_console_print+0x292/0x780 [ 10.429390][ T199] ? hvc_write+0x3a0/0x3a0 [ 10.429393][ T199] ? lock_acquire+0x13c/0x160 [ 10.429398][ T199] console_emit_next_record+0x22f/0x4c0 [ 10.429402][ T199] ? devkmsg_read+0x4b0/0x4b0 [ 10.429403][ T199] ? console_flush_one_record+0x106/0x710 [ 10.429407][ T199] ? rcu_is_watching+0x16/0xd0 [ 10.429411][ T199] ? lock_acquire+0x13c/0x160 [ 10.429415][ T199] console_flush_one_record+0x46f/0x710 [ 10.429419][ T199] ? console_emit_next_record+0x4c0/0x4c0 [ 10.429421][ T199] ? __lock_acquire+0x518/0xc20 [ 10.429427][ T199] console_unlock+0xee/0x1f0 [ 10.429430][ T199] ? console_flush_one_record+0x710/0x710 [ 10.429432][ T199] ? rcu_is_watching+0x16/0xd0 [ 10.429434][ T199] ? lock_acquire+0x60/0x160 [ 10.429438][ T199] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.429440][ T199] ? vprintk_emit+0x320/0x3e0 [ 10.429446][ T199] vprintk_emit+0x37c/0x3e0 [ 10.429450][ T199] ? wake_up_klogd_work_func+0x90/0x90 [ 10.429452][ T199] ? kasan_save_stack+0x3d/0x50 [ 10.429456][ T199] ? kasan_save_track+0x14/0x30 [ 10.429457][ T199] ? __kasan_kmalloc+0x7b/0x90 [ 10.429459][ T199] ? __kmalloc_cache_noprof+0x29a/0x620 [ 10.429461][ T199] ? hsr_add_port+0x1eb/0xb60 [ 10.429465][ T199] ? hsr_dev_finalize+0x841/0xcf0 [ 10.429466][ T199] ? hsr_newlink+0x3b9/0x930 [ 10.429470][ T199] _printk+0xc7/0x100 [ 10.429473][ T199] ? snapshot_read.cold+0x21/0x21 [ 10.429475][ T199] ? entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.429479][ T199] ? netdev_name+0x43/0x60 [ 10.429483][ T199] ? __netdev_printk+0x17f/0x1d0 [ 10.429486][ T199] netdev_info+0xe2/0x116 [ 10.429488][ T199] ? netdev_notice+0x120/0x120 [ 10.429495][ T199] ? mutex_is_locked+0x1c/0x50 [ 10.429499][ T199] __dev_set_promiscuity.cold+0x95/0x104 [ 10.429504][ T199] netif_set_promiscuity+0x4c/0xc0 [ 10.429508][ T199] dev_set_promiscuity+0x9d/0x150 [ 10.429511][ T199] hsr_add_port+0x48c/0xb60 [ 10.429514][ T199] ? hsr_port_exists+0x60/0x60 [ 10.429518][ T199] ? timer_init_key+0x10d/0x280 [ 10.429523][ T199] hsr_dev_finalize+0x841/0xcf0 [ 10.429525][ T199] ? alloc_netdev_mqs+0xe12/0x14d0 [ 10.429530][ T199] ? alloc_netdev_mqs+0xf05/0x14d0 [ 10.429532][ T199] hsr_newlink+0x3b9/0x930 [ 10.429534][ T199] ? hsr_dellink+0x90/0x90 [ 10.429537][ T199] ? rtnl_create_link+0x169/0xf20 [ 10.429539][ T199] ? nla_strscpy+0xe3/0x180 [ 10.429544][ T199] rtnl_newlink_create+0x2d0/0x750 [ 10.429548][ T199] ? rtnl_create_link+0xf20/0xf20 [ 10.429549][ T199] ? __dev_get_by_name+0x12/0x50 [ 10.429551][ T199] ? rtnl_dev_get+0xd7/0x170 [ 10.429559][ T199] __rtnl_newlink+0x22b/0xa50 [ 10.429566][ T199] rtnl_newlink+0x9f1/0x11c0 [ 10.429572][ T199] ? rtnl_bridge_getlink+0x850/0x850 [ 10.429574][ T199] ? __lock_acquire+0x518/0xc20 [ 10.429580][ T199] ? __lock_release.isra.0+0x69/0x1a0 [ 10.429584][ T199] ? rtnl_bridge_getlink+0x850/0x850 [ 10.429586][ T199] rtnetlink_rcv_msg+0x6fd/0xbd0 [ 10.429590][ T199] ? rtnl_link_fill+0x920/0x920 [ 10.429591][ T199] ? __lock_acquire+0x518/0xc20 [ 10.429595][ T199] ? lock_acquire.part.0+0xd4/0x280 [ 10.429597][ T199] ? find_held_lock+0x2b/0x80 [ 10.429601][ T199] netlink_rcv_skb+0x14e/0x3a0 [ 10.429604][ T199] ? rtnl_link_fill+0x920/0x920 [ 10.429608][ T199] ? netlink_ack+0xcf0/0xcf0 [ 10.429620][ T199] ? netlink_deliver_tap+0xc5/0x330 [ 10.429622][ T199] ? netlink_deliver_tap+0x13c/0x330 [ 10.429626][ T199] netlink_unicast+0x486/0x750 [ 10.429631][ T199] ? netlink_attachskb+0x810/0x810 [ 10.429634][ T199] ? __lock_acquire+0x518/0xc20 [ 10.429638][ T199] netlink_sendmsg+0x735/0xc60 [ 10.429642][ T199] ? netlink_unicast+0x750/0x750 [ 10.429646][ T199] ? __might_fault+0x97/0x140 [ 10.429652][ T199] ____sys_sendmsg+0x415/0x880 [ 10.429656][ T199] ? copy_msghdr_from_user+0x279/0x420 [ 10.429659][ T199] ? get_timestamp.constprop.0+0x390/0x390 [ 10.429661][ T199] ? move_addr_to_kernel+0x40/0x40 [ 10.429665][ T199] ? do_fault_around+0x300/0x5a0 [ 10.429668][ T199] ? find_held_lock+0x2b/0x80 [ 10.429671][ T199] ___sys_sendmsg+0x14e/0x1d0 [ 10.429673][ T199] ? do_pte_missing+0x86f/0xcc0 [ 10.429676][ T199] ? copy_msghdr_from_user+0x420/0x420 [ 10.429679][ T199] ? rcu_read_unlock+0x20/0x70 [ 10.429693][ T199] __sys_sendmsg+0x12c/0x1d0 [ 10.429697][ T199] ? __sys_sendmsg_sock+0x20/0x20 [ 10.429702][ T199] ? rcu_is_watching+0x16/0xd0 [ 10.429705][ T199] ? rcu_is_watching+0x16/0xd0 [ 10.429709][ T199] do_syscall_64+0xff/0x530 [ 10.429712][ T199] ? exc_page_fault+0xee/0x100 [ 10.429715][ T199] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.429717][ T199] RIP: 0033:0x7f05faa1d54e [ 10.429720][ T199] 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.429722][ T199] RSP: 002b:00007ffe6fa0db90 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 10.429725][ T199] RAX: ffffffffffffffda RBX: 00007ffe6fa0e340 RCX: 00007f05faa1d54e [ 10.429726][ T199] RDX: 0000000000000000 RSI: 00007ffe6fa0dc40 RDI: 0000000000000005 [ 10.429727][ T199] RBP: 00007ffe6fa0dba0 R08: 0000000000000000 R09: 0000000000000000 [ 10.429728][ T199] R10: 0000000000000000 R11: 0000000000000202 R12: 000000006a91b378 [ 10.429729][ T199] R13: 00000000004a1620 R14: 0000000000000000 R15: 00007ffe6fa0e310 [ 10.429736][ T199] [ 10.463895][ T199] rb_b: entered promiscuous mode [ 10.465288][ T199] rb_il: entered promiscuous mode [ 10.473314][ T199] ip (199) used greatest stack depth: 23336 bytes left [ 10.560396][ T201] pe_a: entered promiscuous mode [ 10.561218][ T201] pe_b: entered promiscuous mode [ 10.562042][ T201] debugfs: 'prp0' already exists in 'hsr' [ 10.562303][ T201] Cannot create hsr debugfs directory [ 10.606107][ T202] prp0: Slave A (pe_a) is not up; please bring it up to get a fully working HSR network [ 17.378281][ T12] rb_a: left promiscuous mode [ 17.378332][ T12] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 17.378334][ T12] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 12, name: kworker/u16:0 [ 17.378336][ T12] preempt_count: 1, expected: 0 [ 17.378337][ T12] RCU nest depth: 0, expected: 0 [ 17.378338][ T12] locks held by kworker/u16:0/12: 8, last CPU#2: [ 17.378340][ T12] #0: ff11000001a09d40 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0xd9a/0x1560 [ 17.378352][ T12] #1: ffa00000000c7d10 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0xdfc/0x1560 [ 17.378356][ T12] #2: ffffffff888c7a88 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbf/0x890 [ 17.378361][ T12] #3: ffffffff888e3740 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0x9a/0x600 [ 17.378365][ T12] #4: ffffffff88179cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 17.378370][ T12] #5: ffffffff88179d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 17.378374][ T12] #6: ffffffff88099660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 17.378377][ T12] #7: ffffffff88099560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 17.378381][ T12] irq event stamp: 8816 [ 17.378382][ T12] hardirqs last enabled at (8815): [] __down_trylock_console_sem+0x86/0xa0 [ 17.378384][ T12] hardirqs last disabled at (8816): [] console_emit_next_record+0x3d4/0x4c0 [ 17.378386][ T12] softirqs last enabled at (8688): [] tcp_close+0x2b/0xb0 [ 17.378390][ T12] softirqs last disabled at (8686): [] release_sock+0x21/0x240 [ 17.378393][ T12] Preemption disabled at: [ 17.378393][ T12] [] vprintk_emit+0x31b/0x3e0 [ 17.378400][ T12] CPU: 2 UID: 0 PID: 12 Comm: kworker/u16:0 Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 17.378403][ T12] Tainted: [W]=WARN [ 17.378404][ T12] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.378406][ T12] Workqueue: netns cleanup_net [ 17.378409][ T12] Call Trace: [ 17.378410][ T12] [ 17.378412][ T12] dump_stack_lvl+0x6f/0xa0 [ 17.378418][ T12] ? vprintk_emit+0x31b/0x3e0 [ 17.378420][ T12] __might_resched.cold+0x1fe/0x2c1 [ 17.378425][ T12] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 17.378429][ T12] ? __kmalloc_noprof+0xdb/0x760 [ 17.378434][ T12] __kmalloc_noprof+0x443/0x760 [ 17.378437][ T12] ? alloc_buf.isra.0+0x4b/0x260 [ 17.378448][ T12] ? do_raw_spin_unlock+0x59/0x250 [ 17.378451][ T12] alloc_buf.isra.0+0x4b/0x260 [ 17.378455][ T12] put_chars+0x1e1/0x2f0 [ 17.378457][ T12] ? check_prev_add+0xef/0xe90 [ 17.378460][ T12] ? __send_to_port+0x420/0x420 [ 17.378464][ T12] ? validate_chain+0x34a/0xc20 [ 17.378469][ T12] hvc_console_print+0x292/0x780 [ 17.378477][ T12] ? hvc_write+0x3a0/0x3a0 [ 17.378480][ T12] ? rcu_is_watching+0x16/0xd0 [ 17.378484][ T12] ? lock_acquire+0x13c/0x160 [ 17.378488][ T12] console_emit_next_record+0x22f/0x4c0 [ 17.378492][ T12] ? devkmsg_read+0x4b0/0x4b0 [ 17.378494][ T12] ? console_flush_one_record+0x106/0x710 [ 17.378497][ T12] ? rcu_is_watching+0x16/0xd0 [ 17.378500][ T12] ? lock_acquire+0x13c/0x160 [ 17.378504][ T12] console_flush_one_record+0x46f/0x710 [ 17.378508][ T12] ? console_emit_next_record+0x4c0/0x4c0 [ 17.378510][ T12] ? __lock_acquire+0x518/0xc20 [ 17.378515][ T12] console_unlock+0xee/0x1f0 [ 17.378518][ T12] ? console_flush_one_record+0x710/0x710 [ 17.378520][ T12] ? rcu_is_watching+0x16/0xd0 [ 17.378523][ T12] ? lock_acquire+0x60/0x160 [ 17.378526][ T12] ? __down_trylock_console_sem+0x5e/0xa0 [ 17.378528][ T12] ? vprintk_emit+0x320/0x3e0 [ 17.378531][ T12] vprintk_emit+0x37c/0x3e0 [ 17.378535][ T12] ? wake_up_klogd_work_func+0x90/0x90 [ 17.378538][ T12] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 17.378540][ T12] ? lockdep_hardirqs_on+0x91/0x130 [ 17.378542][ T12] ? finish_task_switch.isra.0+0x209/0xa70 [ 17.378544][ T12] ? finish_task_switch.isra.0+0x209/0xa70 [ 17.378548][ T12] _printk+0xc7/0x100 [ 17.378551][ T12] ? snapshot_read.cold+0x21/0x21 [ 17.378554][ T12] ? synchronize_rcu_expedited+0x440/0x510 [ 17.378557][ T12] ? netdev_name+0x43/0x60 [ 17.378560][ T12] ? __netdev_printk+0x17f/0x1d0 [ 17.378564][ T12] netdev_info+0xe2/0x116 [ 17.378566][ T12] ? netdev_notice+0x120/0x120 [ 17.378570][ T12] ? synchronize_rcu_expedited+0x440/0x510 [ 17.378571][ T12] ? netif_set_mtu_ext+0x5f0/0x5f0 [ 17.378574][ T12] ? synchronize_rcu_normal+0x340/0x340 [ 17.378577][ T12] ? mutex_is_locked+0x1c/0x50 [ 17.378581][ T12] __dev_set_promiscuity.cold+0x95/0x104 [ 17.378584][ T12] ? sync_rcu_exp_select_cpus+0x700/0x700 [ 17.378587][ T12] netif_set_promiscuity+0x4c/0xc0 [ 17.378591][ T12] dev_set_promiscuity+0x9d/0x150 [ 17.378594][ T12] hsr_del_port+0x39d/0x540 [ 17.378599][ T12] hsr_del_ports+0x24/0x80 [ 17.378602][ T12] hsr_dellink+0x5d/0x90 [ 17.378605][ T12] default_device_exit_batch+0x19d/0x600 [ 17.378608][ T12] ? unregister_netdevice_queue+0x470/0x470 [ 17.378611][ T12] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 17.378613][ T12] ? mutex_is_locked+0x1c/0x50 [ 17.378617][ T12] ops_undo_list+0x2ce/0x8f0 [ 17.378621][ T12] ? lockdep_hardirqs_on+0x91/0x130 [ 17.378623][ T12] ? rtnl_net_dumpid_one+0x2d0/0x2d0 [ 17.378624][ T12] ? __lock_release.isra.0+0x69/0x1a0 [ 17.378627][ T12] ? idr_destroy+0x121/0x250 [ 17.378632][ T12] cleanup_net+0x431/0x890 [ 17.378635][ T12] ? net_passive_dec+0x230/0x230 [ 17.378645][ T12] ? lock_acquire+0x13c/0x160 [ 17.378646][ T12] ? rcu_is_watching+0x16/0xd0 [ 17.378650][ T12] process_one_work+0xe3e/0x1560 [ 17.378657][ T12] ? __queue_delayed_work+0x470/0x470 [ 17.378660][ T12] ? lock_acquire.part.0+0xd4/0x280 [ 17.378667][ T12] worker_thread+0x4f1/0xd60 [ 17.378674][ T12] ? rescuer_thread+0x1340/0x1340 [ 17.378676][ T12] kthread+0x367/0x460 [ 17.378679][ T12] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 17.378682][ T12] ? kthread_affine_preferred+0x4c0/0x4c0 [ 17.378685][ T12] ret_from_fork+0x474/0x6b0 [ 17.378689][ T12] ? arch_exit_to_user_mode_prepare.isra.0+0x120/0x120 [ 17.378692][ T12] ? __switch_to+0x5a3/0xe00 [ 17.378696][ T12] ? kthread_affine_preferred+0x4c0/0x4c0 [ 17.378698][ T12] ret_from_fork_asm+0x11/0x20 [ 17.378707][ T12] [ 17.411836][ T12] rb_b: left promiscuous mode [ 17.413144][ T12] rb_il: left promiscuous mode [ 17.438025][ T12] pe_b (unregistering): left promiscuous mode [ 17.442701][ T12] pe_a (unregistering): left promiscuous mode