team0: entered promiscuous mode team_slave_1: entered promiscuous mode macvlan2: entered promiscuous mode BUG: sleeping function called from invalid context at kernel/locking/mutex.c:578 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 11576, name: syz.3.1348 preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 2 locks held by syz.3.1348/11576: #0: ffff80009248e928 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline] #0: ffff80009248e928 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:341 [inline] #0: ffff80009248e928 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x710/0x15dc net/core/rtnetlink.c:4064 #1: ffff80008f508920 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire+0x10/0x4c include/linux/rcupdate.h:330 CPU: 0 UID: 0 PID: 11576 Comm: syz.3.1348 Not tainted 6.15.0-rc7-syzkaller-gd7fa1af5b33e #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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_promiscuity+0xf0/0x1fc net/core/dev_api.c:285 macvlan_change_rx_flags+0x134/0x1ac drivers/net/macvlan.c:786 dev_change_rx_flags net/core/dev.c:9145 [inline] __dev_set_promiscuity+0x328/0x490 net/core/dev.c:9189 netif_set_promiscuity+0x60/0xf4 net/core/dev.c:9201 dev_set_promiscuity+0x104/0x1fc net/core/dev_api.c:286 team_change_rx_flags+0x170/0x2dc drivers/net/team/team_core.c:1785 dev_change_rx_flags net/core/dev.c:9145 [inline] __dev_set_promiscuity+0x328/0x490 net/core/dev.c:9189 __dev_change_flags+0x22c/0x54c net/core/dev.c:9363 netif_change_flags+0x80/0x15c net/core/dev.c:9417 do_setlink+0xaa8/0x3860 net/core/rtnetlink.c:3152 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-rc7-syzkaller-gd7fa1af5b33e #0 Tainted: G W ----------------------------- syz.3.1348/11576 is trying to lock: ffff0000f18f0d38 (&dev_instance_lock_key#20){+.+.}-{4:4}, at: netdev_lock include/linux/netdevice.h:2751 [inline] ffff0000f18f0d38 (&dev_instance_lock_key#20){+.+.}-{4:4}, at: netdev_lock_ops include/net/netdev_lock.h:42 [inline] ffff0000f18f0d38 (&dev_instance_lock_key#20){+.+.}-{4:4}, at: dev_set_promiscuity+0xf0/0x1fc net/core/dev_api.c:285 other info that might help us debug this: context-{5:5} 2 locks held by syz.3.1348/11576: #0: ffff80009248e928 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline] #0: ffff80009248e928 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:341 [inline] #0: ffff80009248e928 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x710/0x15dc net/core/rtnetlink.c:4064 #1: ffff80008f508920 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire+0x10/0x4c include/linux/rcupdate.h:330 stack backtrace: CPU: 0 UID: 0 PID: 11576 Comm: syz.3.1348 Tainted: G W 6.15.0-rc7-syzkaller-gd7fa1af5b33e #0 PREEMPT Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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_promiscuity+0xf0/0x1fc net/core/dev_api.c:285 macvlan_change_rx_flags+0x134/0x1ac drivers/net/macvlan.c:786 dev_change_rx_flags net/core/dev.c:9145 [inline] __dev_set_promiscuity+0x328/0x490 net/core/dev.c:9189 netif_set_promiscuity+0x60/0xf4 net/core/dev.c:9201 dev_set_promiscuity+0x104/0x1fc net/core/dev_api.c:286 team_change_rx_flags+0x170/0x2dc drivers/net/team/team_core.c:1785 dev_change_rx_flags net/core/dev.c:9145 [inline] __dev_set_promiscuity+0x328/0x490 net/core/dev.c:9189 __dev_change_flags+0x22c/0x54c net/core/dev.c:9363 netif_change_flags+0x80/0x15c net/core/dev.c:9417 do_setlink+0xaa8/0x3860 net/core/rtnetlink.c:3152 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 team0: Cannot enslave team device to itself A link change request failed with some changes committed already. Interface team0 may have been left with an inconsistent configuration, please check.