netlink: 'syz.0.17': attribute type 10 has an invalid length. 8021q: adding VLAN 0 to HW filter on device batadv0 bond0: (slave batadv0): Enslaving as an active interface with an up link ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.0.17/5863 is trying to acquire lock: ffff88807f5e8e70 (&dev_instance_lock_key#2){+.+.}-{4:4}, at: netdev_lock include/linux/netdevice.h:2852 [inline] ffff88807f5e8e70 (&dev_instance_lock_key#2){+.+.}-{4:4}, at: ipvlan_uninit+0x147/0x290 drivers/net/ipvlan/ipvlan_main.c:226 but task is already holding lock: ffff8880323d48c0 (&port->pnodes_lock){+.+.}-{4:4}, at: ipvlan_device_event+0x468/0xe60 drivers/net/ipvlan/ipvlan_main.c:808 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&port->pnodes_lock){+.+.}-{4:4}: __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x19d/0x1550 kernel/locking/mutex.c:821 ipvlan_device_event+0x468/0xe60 drivers/net/ipvlan/ipvlan_main.c:808 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2291 [inline] call_netdevice_notifiers+0x90/0xd0 net/core/dev.c:2305 xdp_set_features_flag_locked net/core/xdp.c:1009 [inline] xdp_set_features_flag+0x1a0/0x2a0 net/core/xdp.c:1016 bond_xdp_set_features+0x277/0x320 drivers/net/bonding/bond_main.c:1884 bond_enslave+0x2c78/0x3b10 drivers/net/bonding/bond_main.c:2340 do_set_master+0x563/0x720 net/core/rtnetlink.c:3051 do_setlink+0xe7b/0x4670 net/core/rtnetlink.c:3253 rtnl_changelink net/core/rtnetlink.c:3885 [inline] __rtnl_newlink net/core/rtnetlink.c:4056 [inline] rtnl_newlink+0x15a3/0x1c30 net/core/rtnetlink.c:4195 rtnetlink_rcv_msg+0x802/0xc00 net/core/rtnetlink.c:7112 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2556 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x7bb/0x940 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1900 sock_sendmsg_nosec+0x13a/0x180 net/socket.c:775 __sock_sendmsg net/socket.c:790 [inline] ____sys_sendmsg+0x54e/0x850 net/socket.c:2684 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2738 __sys_sendmsg net/socket.c:2770 [inline] __do_sys_sendmsg net/socket.c:2775 [inline] __se_sys_sendmsg net/socket.c:2773 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2773 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #0 (&dev_instance_lock_key#2){+.+.}-{4:4}: check_prev_add kernel/locking/lockdep.c:3165 [inline] check_prevs_add kernel/locking/lockdep.c:3284 [inline] validate_chain kernel/locking/lockdep.c:3908 [inline] __lock_acquire+0x1520/0x2cf0 kernel/locking/lockdep.c:5237 lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x19d/0x1550 kernel/locking/mutex.c:821 netdev_lock include/linux/netdevice.h:2852 [inline] ipvlan_uninit+0x147/0x290 drivers/net/ipvlan/ipvlan_main.c:226 unregister_netdevice_many_notify+0x1ad2/0x2150 net/core/dev.c:12476 ipvlan_device_event+0xdd4/0xe60 drivers/net/ipvlan/ipvlan_main.c:849 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2291 [inline] call_netdevice_notifiers net/core/dev.c:2305 [inline] unregister_netdevice_many_notify+0x17de/0x2150 net/core/dev.c:12457 rtnl_delete_link net/core/rtnetlink.c:3632 [inline] rtnl_dellink+0x5be/0x810 net/core/rtnetlink.c:3674 rtnetlink_rcv_msg+0x802/0xc00 net/core/rtnetlink.c:7112 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2556 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x7bb/0x940 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1900 sock_sendmsg_nosec+0x13a/0x180 net/socket.c:775 __sock_sendmsg net/socket.c:790 [inline] ____sys_sendmsg+0x54e/0x850 net/socket.c:2684 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2738 __sys_sendmsg net/socket.c:2770 [inline] __do_sys_sendmsg net/socket.c:2775 [inline] __se_sys_sendmsg net/socket.c:2773 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2773 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&port->pnodes_lock); lock(&dev_instance_lock_key#2); lock(&port->pnodes_lock); lock(&dev_instance_lock_key#2); *** DEADLOCK *** 2 locks held by syz.0.17/5863: #0: ffffffff9002c240 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline] #0: ffffffff9002c240 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:134 [inline] #0: ffffffff9002c240 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dellink+0x41b/0x810 net/core/rtnetlink.c:3666 #1: ffff8880323d48c0 (&port->pnodes_lock){+.+.}-{4:4}, at: ipvlan_device_event+0x468/0xe60 drivers/net/ipvlan/ipvlan_main.c:808 stack backtrace: CPU: 0 UID: 0 PID: 5863 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_circular_bug+0x2e1/0x300 kernel/locking/lockdep.c:2043 check_noncircular+0x12e/0x150 kernel/locking/lockdep.c:2175 check_prev_add kernel/locking/lockdep.c:3165 [inline] check_prevs_add kernel/locking/lockdep.c:3284 [inline] validate_chain kernel/locking/lockdep.c:3908 [inline] __lock_acquire+0x1520/0x2cf0 kernel/locking/lockdep.c:5237 lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x19d/0x1550 kernel/locking/mutex.c:821 netdev_lock include/linux/netdevice.h:2852 [inline] ipvlan_uninit+0x147/0x290 drivers/net/ipvlan/ipvlan_main.c:226 unregister_netdevice_many_notify+0x1ad2/0x2150 net/core/dev.c:12476 ipvlan_device_event+0xdd4/0xe60 drivers/net/ipvlan/ipvlan_main.c:849 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2291 [inline] call_netdevice_notifiers net/core/dev.c:2305 [inline] unregister_netdevice_many_notify+0x17de/0x2150 net/core/dev.c:12457 rtnl_delete_link net/core/rtnetlink.c:3632 [inline] rtnl_dellink+0x5be/0x810 net/core/rtnetlink.c:3674 rtnetlink_rcv_msg+0x802/0xc00 net/core/rtnetlink.c:7112 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2556 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x7bb/0x940 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1900 sock_sendmsg_nosec+0x13a/0x180 net/socket.c:775 __sock_sendmsg net/socket.c:790 [inline] ____sys_sendmsg+0x54e/0x850 net/socket.c:2684 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2738 __sys_sendmsg net/socket.c:2770 [inline] __do_sys_sendmsg net/socket.c:2775 [inline] __se_sys_sendmsg net/socket.c:2773 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2773 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc86319de59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe7ac5d158 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fc863425fa0 RCX: 00007fc86319de59 RDX: 0000000000000000 RSI: 0000200000000080 RDI: 0000000000000007 RBP: 00007fc863233e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc863425fac R14: 00007fc863425fa0 R15: 00007fc863425fa0 bond0 (unregistering): (slave bond_slave_0): Releasing backup interface bond0 (unregistering): (slave bond_slave_1): Releasing backup interface bond0 (unregistering): (slave batadv0): Releasing backup interface bond0 (unregistering): Released all slaves