team_slave_0: left allmulticast mode team_slave_1: left allmulticast mode bond0: left allmulticast mode bond_slave_0: left allmulticast mode bond_slave_1: left allmulticast mode BUG: sleeping function called from invalid context at kernel/locking/mutex.c:578 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 8859, name: syz.0.377 preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 2 locks held by syz.0.377/8859: #0: ffff80009247ace8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline] #0: ffff80009247ace8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:341 [inline] #0: ffff80009247ace8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x710/0x15dc net/core/rtnetlink.c:4064 #1: ffff80008f4f88a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire+0x10/0x4c include/linux/rcupdate.h:330 CPU: 1 UID: 0 PID: 8859 Comm: syz.0.377 Not tainted 6.15.0-rc5-syzkaller-gc32f8dc5aaf9 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:466 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 __might_resched+0x348/0x4c4 kernel/sched/core.c:8818 __might_sleep+0x94/0x110 kernel/sched/core.c:8747 __mutex_lock_common+0x10c/0x2190 kernel/locking/mutex.c:578 __mutex_lock kernel/locking/mutex.c:746 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:798 netdev_lock include/linux/netdevice.h:2751 [inline] netdev_lock_ops include/net/netdev_lock.h:42 [inline] dev_set_allmulti+0xf0/0x200 net/core/dev_api.c:288 bond_set_allmulti drivers/net/bonding/bond_main.c:945 [inline] bond_change_rx_flags+0x3e4/0x5a0 drivers/net/bonding/bond_main.c:4736 dev_change_rx_flags net/core/dev.c:9145 [inline] netif_set_allmulti+0x1e0/0x314 net/core/dev.c:9247 dev_set_allmulti+0x108/0x200 net/core/dev_api.c:289 team_change_rx_flags+0x1b4/0x2dc drivers/net/team/team_core.c:1789 dev_change_rx_flags net/core/dev.c:9145 [inline] netif_set_allmulti+0x1e0/0x314 net/core/dev.c:9247 dev_set_allmulti+0x108/0x200 net/core/dev_api.c:289 nbp_delete_promisc net/bridge/br_if.c:252 [inline] del_nbp+0xa8/0x8ec net/bridge/br_if.c:340 br_del_if+0x150/0x31c net/bridge/br_if.c:739 br_del_slave+0x28/0x38 net/bridge/br_device.c:382 do_set_master+0x26c/0x594 net/core/rtnetlink.c:2930 do_setlink+0xb2c/0x3860 net/core/rtnetlink.c:3159 rtnl_changelink net/core/rtnetlink.c:3769 [inline] __rtnl_newlink net/core/rtnetlink.c:3928 [inline] rtnl_newlink+0x10f8/0x15dc net/core/rtnetlink.c:4065 rtnetlink_rcv_msg+0x664/0x97c net/core/rtnetlink.c:6955 netlink_rcv_skb+0x230/0x414 net/netlink/af_netlink.c:2534 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:6982 netlink_unicast_kernel net/netlink/af_netlink.c:1313 [inline] netlink_unicast+0x60c/0x824 net/netlink/af_netlink.c:1339 netlink_sendmsg+0x648/0x930 net/netlink/af_netlink.c:1883 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg net/socket.c:727 [inline] ____sys_sendmsg+0x490/0x7b8 net/socket.c:2566 ___sys_sendmsg+0x204/0x278 net/socket.c:2620 __sys_sendmsg net/socket.c:2652 [inline] __do_sys_sendmsg net/socket.c:2657 [inline] __se_sys_sendmsg net/socket.c:2655 [inline] __arm64_sys_sendmsg+0x184/0x238 net/socket.c:2655 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 ============================= [ BUG: Invalid wait context ] 6.15.0-rc5-syzkaller-gc32f8dc5aaf9 #0 Tainted: G W ----------------------------- syz.0.377/8859 is trying to lock: ffff0000ce614d38 (&dev_instance_lock_key#20){+.+.}-{4:4}, at: netdev_lock include/linux/netdevice.h:2751 [inline] ffff0000ce614d38 (&dev_instance_lock_key#20){+.+.}-{4:4}, at: netdev_lock_ops include/net/netdev_lock.h:42 [inline] ffff0000ce614d38 (&dev_instance_lock_key#20){+.+.}-{4:4}, at: dev_set_allmulti+0xf0/0x200 net/core/dev_api.c:288 other info that might help us debug this: context-{5:5} 2 locks held by syz.0.377/8859: #0: ffff80009247ace8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline] #0: ffff80009247ace8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:341 [inline] #0: ffff80009247ace8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x710/0x15dc net/core/rtnetlink.c:4064 #1: ffff80008f4f88a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire+0x10/0x4c include/linux/rcupdate.h:330 stack backtrace: CPU: 1 UID: 0 PID: 8859 Comm: syz.0.377 Tainted: G W 6.15.0-rc5-syzkaller-gc32f8dc5aaf9 #0 PREEMPT Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:466 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 print_lock_invalid_wait_context kernel/locking/lockdep.c:4831 [inline] check_wait_context kernel/locking/lockdep.c:4903 [inline] __lock_acquire+0xaa0/0x3058 kernel/locking/lockdep.c:5185 lock_acquire+0x14c/0x2e0 kernel/locking/lockdep.c:5866 __mutex_lock_common+0x1d0/0x2190 kernel/locking/mutex.c:601 __mutex_lock kernel/locking/mutex.c:746 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:798 netdev_lock include/linux/netdevice.h:2751 [inline] netdev_lock_ops include/net/netdev_lock.h:42 [inline] dev_set_allmulti+0xf0/0x200 net/core/dev_api.c:288 bond_set_allmulti drivers/net/bonding/bond_main.c:945 [inline] bond_change_rx_flags+0x3e4/0x5a0 drivers/net/bonding/bond_main.c:4736 dev_change_rx_flags net/core/dev.c:9145 [inline] netif_set_allmulti+0x1e0/0x314 net/core/dev.c:9247 dev_set_allmulti+0x108/0x200 net/core/dev_api.c:289 team_change_rx_flags+0x1b4/0x2dc drivers/net/team/team_core.c:1789 dev_change_rx_flags net/core/dev.c:9145 [inline] netif_set_allmulti+0x1e0/0x314 net/core/dev.c:9247 dev_set_allmulti+0x108/0x200 net/core/dev_api.c:289 nbp_delete_promisc net/bridge/br_if.c:252 [inline] del_nbp+0xa8/0x8ec net/bridge/br_if.c:340 br_del_if+0x150/0x31c net/bridge/br_if.c:739 br_del_slave+0x28/0x38 net/bridge/br_device.c:382 do_set_master+0x26c/0x594 net/core/rtnetlink.c:2930 do_setlink+0xb2c/0x3860 net/core/rtnetlink.c:3159 rtnl_changelink net/core/rtnetlink.c:3769 [inline] __rtnl_newlink net/core/rtnetlink.c:3928 [inline] rtnl_newlink+0x10f8/0x15dc net/core/rtnetlink.c:4065 rtnetlink_rcv_msg+0x664/0x97c net/core/rtnetlink.c:6955 netlink_rcv_skb+0x230/0x414 net/netlink/af_netlink.c:2534 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:6982 netlink_unicast_kernel net/netlink/af_netlink.c:1313 [inline] netlink_unicast+0x60c/0x824 net/netlink/af_netlink.c:1339 netlink_sendmsg+0x648/0x930 net/netlink/af_netlink.c:1883 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg net/socket.c:727 [inline] ____sys_sendmsg+0x490/0x7b8 net/socket.c:2566 ___sys_sendmsg+0x204/0x278 net/socket.c:2620 __sys_sendmsg net/socket.c:2652 [inline] __do_sys_sendmsg net/socket.c:2657 [inline] __se_sys_sendmsg net/socket.c:2655 [inline] __arm64_sys_sendmsg+0x184/0x238 net/socket.c:2655 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 netdevsim netdevsim0 netdevsim0: left allmulticast mode team0: left promiscuous mode team_slave_0: left promiscuous mode team_slave_1: left promiscuous mode bond0: left promiscuous mode bond_slave_0: left promiscuous mode bond_slave_1: left promiscuous mode netdevsim netdevsim0 netdevsim0: left promiscuous mode bridge0: port 3(team0) entered disabled state 8021q: adding VLAN 0 to HW filter on device team0