bond3 (unregistering): Releasing active interface macvlan4 bond0 (unregistering): Releasing backup interface bond3 bond3 (unregistering): Released all slaves bond2 (unregistering): Releasing active interface macvlan3 ============================================ WARNING: possible recursive locking detected 4.19.211-syzkaller #0 Not tainted -------------------------------------------- kworker/u4:4/2911 is trying to acquire lock: 0000000027b4915c (&(&bond->stats_lock)->rlock#3/3){+.+.}, at: bond_get_stats+0xca/0x500 drivers/net/bonding/bond_main.c:3492 but task is already holding lock: 0000000063551174 (&(&bond->stats_lock)->rlock#3/3){+.+.}, at: bond_get_stats+0xca/0x500 drivers/net/bonding/bond_main.c:3492 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&(&bond->stats_lock)->rlock#3/3); lock(&(&bond->stats_lock)->rlock#3/3); *** DEADLOCK *** May be due to missing lock nesting notation 6 locks held by kworker/u4:4/2911: #0: 000000000f0a0c02 ((wq_completion)"%s""netns"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 000000000f0f27a0 (net_cleanup_work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 #2: 00000000e2d7711c (pernet_ops_rwsem){++++}, at: cleanup_net+0xa8/0x8b0 net/core/net_namespace.c:521 #3: 0000000095b48a9a (rtnl_mutex){+.+.}, at: rtnl_lock_unregistering net/core/dev.c:9748 [inline] #3: 0000000095b48a9a (rtnl_mutex){+.+.}, at: default_device_exit_batch+0xea/0x3c0 net/core/dev.c:9786 #4: 0000000063551174 (&(&bond->stats_lock)->rlock#3/3){+.+.}, at: bond_get_stats+0xca/0x500 drivers/net/bonding/bond_main.c:3492 #5: 0000000014be5205 (rcu_read_lock){....}, at: bond_get_nest_level drivers/net/bonding/bond_main.c:3481 [inline] #5: 0000000014be5205 (rcu_read_lock){....}, at: bond_get_stats+0xae/0x500 drivers/net/bonding/bond_main.c:3492 stack backtrace: CPU: 1 PID: 2911 Comm: kworker/u4:4 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Workqueue: netns cleanup_net Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_deadlock_bug kernel/locking/lockdep.c:1764 [inline] check_deadlock kernel/locking/lockdep.c:1808 [inline] validate_chain kernel/locking/lockdep.c:2404 [inline] __lock_acquire.cold+0x121/0x57e kernel/locking/lockdep.c:3416 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 _raw_spin_lock_nested+0x30/0x40 kernel/locking/spinlock.c:354 bond_get_stats+0xca/0x500 drivers/net/bonding/bond_main.c:3492 dev_get_stats+0xa5/0x2b0 net/core/dev.c:9061 bond_get_stats+0x20f/0x500 drivers/net/bonding/bond_main.c:3498 __bond_release_one+0x46c/0x1620 drivers/net/bonding/bond_main.c:1913 bond_slave_netdev_event drivers/net/bonding/bond_main.c:3155 [inline] bond_netdev_event+0xb61/0xe50 drivers/net/bonding/bond_main.c:3267 notifier_call_chain+0xc0/0x230 kernel/notifier.c:93 call_netdevice_notifiers net/core/dev.c:1762 [inline] rollback_registered_many+0x83e/0xe70 net/core/dev.c:8196 unregister_netdevice_many.part.0+0x1a/0x300 net/core/dev.c:9324 unregister_netdevice_many net/core/dev.c:9323 [inline] default_device_exit_batch+0x2fa/0x3c0 net/core/dev.c:9795 ops_exit_list+0xf9/0x150 net/core/net_namespace.c:156 cleanup_net+0x3b4/0x8b0 net/core/net_namespace.c:554 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 bond0 (unregistering): Releasing backup interface bond2 bond2 (unregistering): Released all slaves bond1 (unregistering): Releasing active interface macvlan2 bond0 (unregistering): Releasing backup interface bond1 bond1 (unregistering): Released all slaves device hsr_slave_1 left promiscuous mode device hsr_slave_0 left promiscuous mode team0 (unregistering): Port device team_slave_1 removed team0 (unregistering): Port device team_slave_0 removed bond0 (unregistering): Releasing backup interface bond_slave_1 bond0 (unregistering): Releasing backup interface bond_slave_0 bond0 (unregistering): Released all slaves audit: type=1804 audit(1676633429.075:700): pid=2480 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir2269380321/syzkaller.qmW5YF/76/bus" dev="sda1" ino=14099 res=1 audit: type=1804 audit(1676633429.155:701): pid=2492 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir2269380321/syzkaller.qmW5YF/76/bus" dev="sda1" ino=14099 res=1 IPVS: Error connecting to the multicast addr netlink: 16 bytes leftover after parsing attributes in process `syz-executor.0'. audit: type=1804 audit(1676633429.245:702): pid=2490 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir1829618661/syzkaller.sr5ubA/1056/bus" dev="sda1" ino=14322 res=1 netlink: 16 bytes leftover after parsing attributes in process `syz-executor.0'. IPVS: Error connecting to the multicast addr netlink: 16 bytes leftover after parsing attributes in process `syz-executor.1'. audit: type=1804 audit(1676633429.325:703): pid=2503 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir1829618661/syzkaller.sr5ubA/1056/bus" dev="sda1" ino=14322 res=1 IPVS: Error connecting to the multicast addr netlink: 16 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 16 bytes leftover after parsing attributes in process `syz-executor.1'. audit: type=1804 audit(1676633429.405:704): pid=2498 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir2648888573/syzkaller.SM8UcP/115/bus" dev="sda1" ino=14416 res=1 audit: type=1804 audit(1676633429.475:705): pid=2519 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.4" name="/root/syzkaller-testdir2648888573/syzkaller.SM8UcP/115/bus" dev="sda1" ino=14416 res=1 netlink: 16 bytes leftover after parsing attributes in process `syz-executor.3'. audit: type=1804 audit(1676633429.715:706): pid=2525 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir2269380321/syzkaller.qmW5YF/77/bus" dev="sda1" ino=14421 res=1 netlink: 16 bytes leftover after parsing attributes in process `syz-executor.0'. audit: type=1804 audit(1676633429.825:707): pid=2548 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir2269380321/syzkaller.qmW5YF/77/bus" dev="sda1" ino=14421 res=1 IPVS: Error connecting to the multicast addr IPVS: Error connecting to the multicast addr netlink: 16 bytes leftover after parsing attributes in process `syz-executor.1'. audit: type=1804 audit(1676633429.945:708): pid=2547 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir1829618661/syzkaller.sr5ubA/1057/bus" dev="sda1" ino=14322 res=1 audit: type=1804 audit(1676633429.995:709): pid=2551 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir2648888573/syzkaller.SM8UcP/116/bus" dev="sda1" ino=14416 res=1 netlink: 16 bytes leftover after parsing attributes in process `syz-executor.1'. netlink: 16 bytes leftover after parsing attributes in process `syz-executor.0'. IPVS: Error connecting to the multicast addr PF_BRIDGE: br_mdb_parse() with invalid ifindex Left network mode bond0: interface bond_slave_0 is now down bond0: interface bond_slave_1 is now down IPv6: sit3: Disabled Multicast RS bond0: interface bond_slave_0 is now down bond0: interface bond_slave_1 is now down IPVS: Error connecting to the multicast addr bond0: interface bond_slave_0 is now down bond0: interface bond_slave_1 is now down bond0: interface bond_slave_0 is now down bond0: interface bond_slave_1 is now down bond0: now running without any active interface! PF_BRIDGE: br_mdb_parse() with invalid ifindex IPVS: Error connecting to the multicast addr PF_BRIDGE: br_mdb_parse() with invalid ifindex PF_BRIDGE: br_mdb_parse() with invalid ifindex PF_BRIDGE: br_mdb_parse() with invalid ifindex PF_BRIDGE: br_mdb_parse() with invalid ifindex IPv6: sit3: Disabled Multicast RS IPv6: sit2: Disabled Multicast RS IPv6: sit2: Disabled Multicast RS PF_BRIDGE: br_mdb_parse() with invalid ifindex PF_BRIDGE: br_mdb_parse() with invalid ifindex PF_BRIDGE: br_mdb_parse() with invalid ifindex PF_BRIDGE: br_mdb_parse() with invalid ifindex PF_BRIDGE: br_mdb_parse() with invalid ifindex PF_BRIDGE: br_mdb_parse() with invalid ifindex PF_BRIDGE: br_mdb_parse() with invalid ifindex kauditd_printk_skb: 26 callbacks suppressed audit: type=1804 audit(1676633434.405:736): pid=2746 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir2648888573/syzkaller.SM8UcP/123/bus" dev="sda1" ino=14159 res=1 nla_parse: 31 callbacks suppressed netlink: 8 bytes leftover after parsing attributes in process `syz-executor.4'. audit: type=1804 audit(1676633434.415:737): pid=2746 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.4" name="/root/syzkaller-testdir2648888573/syzkaller.SM8UcP/123/bus" dev="sda1" ino=14159 res=1 audit: type=1804 audit(1676633434.665:738): pid=2750 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir1829618661/syzkaller.sr5ubA/1066/bus" dev="sda1" ino=14438 res=1 netlink: 8 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 8 bytes leftover after parsing attributes in process `syz-executor.0'. audit: type=1804 audit(1676633434.735:739): pid=2750 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir1829618661/syzkaller.sr5ubA/1066/bus" dev="sda1" ino=14438 res=1 audit: type=1804 audit(1676633434.865:740): pid=2754 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="/root/syzkaller-testdir465489677/syzkaller.yESzIl/1035/bus" dev="sda1" ino=13987 res=1 netlink: 8 bytes leftover after parsing attributes in process `syz-executor.1'. netlink: 8 bytes leftover after parsing attributes in process `syz-executor.5'. audit: type=1804 audit(1676633434.865:741): pid=2754 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.0" name="/root/syzkaller-testdir465489677/syzkaller.yESzIl/1035/bus" dev="sda1" ino=13987 res=1 netlink: 8 bytes leftover after parsing attributes in process `syz-executor.3'. audit: type=1804 audit(1676633435.185:742): pid=2761 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir2269380321/syzkaller.qmW5YF/82/bus" dev="sda1" ino=14461 res=1 ieee802154 phy0 wpan0: encryption failed: -22 ieee802154 phy1 wpan1: encryption failed: -22 audit: type=1804 audit(1676633435.185:743): pid=2761 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir2269380321/syzkaller.qmW5YF/82/bus" dev="sda1" ino=14461 res=1 netlink: 8 bytes leftover after parsing attributes in process `syz-executor.4'. netlink: 8 bytes leftover after parsing attributes in process `syz-executor.2'. audit: type=1804 audit(1676633435.185:744): pid=2760 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir824263278/syzkaller.ej0SXv/1030/bus" dev="sda1" ino=14462 res=1 audit: type=1804 audit(1676633435.195:745): pid=2760 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.1" name="/root/syzkaller-testdir824263278/syzkaller.ej0SXv/1030/bus" dev="sda1" ino=14462 res=1 PF_BRIDGE: br_mdb_parse() with invalid ifindex netlink: 16 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 8 bytes leftover after parsing attributes in process `syz-executor.5'. batman_adv: batadv0: Interface deactivated: batadv_slave_0 batman_adv: batadv0: Removing interface: batadv_slave_0 device veth1_macvtap left promiscuous mode device veth0_macvtap left promiscuous mode device veth1_vlan left promiscuous mode device veth0_vlan left promiscuous mode