8021q: adding VLAN 0 to HW filter on device netdevsim0 ============================================ WARNING: possible recursive locking detected syzkaller #0 Tainted: G L -------------------------------------------- syz.5.3374/18002 is trying to acquire lock: ffff88807ebd4e60 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: netdev_lock include/linux/netdevice.h:2837 [inline] ffff88807ebd4e60 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: netdev_lock_ops include/net/netdev_lock.h:42 [inline] ffff88807ebd4e60 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: __ethtool_get_link_ksettings+0x109/0x250 net/ethtool/ioctl.c:463 but task is already holding lock: ffff88807ebd4e60 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: netdev_lock include/linux/netdevice.h:2837 [inline] ffff88807ebd4e60 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: netdev_lock_ops include/net/netdev_lock.h:42 [inline] ffff88807ebd4e60 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: dev_open+0xeb/0x220 net/core/dev_api.c:201 and the lock comparison function returns 0: other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&dev_instance_lock_key#23); lock(&dev_instance_lock_key#23); *** DEADLOCK *** May be due to missing lock nesting notation 2 locks held by syz.5.3374/18002: #0: ffffffff8fdeaf40 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline] #0: ffffffff8fdeaf40 (rtnl_mutex){+.+.}-{4:4}, at: dev_ioctl+0x83c/0x1150 net/core/dev_ioctl.c:842 #1: ffff88807ebd4e60 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: netdev_lock include/linux/netdevice.h:2837 [inline] #1: ffff88807ebd4e60 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: netdev_lock_ops include/net/netdev_lock.h:42 [inline] #1: ffff88807ebd4e60 (&dev_instance_lock_key#23){+.+.}-{4:4}, at: dev_open+0xeb/0x220 net/core/dev_api.c:201 stack backtrace: CPU: 1 UID: 0 PID: 18002 Comm: syz.5.3374 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP 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_deadlock_bug+0x279/0x290 kernel/locking/lockdep.c:3041 check_deadlock kernel/locking/lockdep.c:3093 [inline] validate_chain kernel/locking/lockdep.c:3895 [inline] __lock_acquire+0x24df/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:2837 [inline] netdev_lock_ops include/net/netdev_lock.h:42 [inline] __ethtool_get_link_ksettings+0x109/0x250 net/ethtool/ioctl.c:463 bond_update_speed_duplex drivers/net/bonding/bond_main.c:801 [inline] bond_slave_netdev_event drivers/net/bonding/bond_main.c:3982 [inline] bond_netdev_event+0x643/0xf80 drivers/net/bonding/bond_main.c:4089 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2288 [inline] call_netdevice_notifiers net/core/dev.c:2302 [inline] __dev_notify_flags+0x1aa/0x310 net/core/dev.c:9793 netif_change_flags+0xde/0x1b0 net/core/dev.c:9822 dev_change_flags+0x128/0x260 net/core/dev_api.c:68 vlan_device_event+0x1b4e/0x1f00 net/8021q/vlan.c:494 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2288 [inline] call_netdevice_notifiers net/core/dev.c:2302 [inline] netif_open+0x10f/0x190 net/core/dev.c:1730 dev_open+0x101/0x220 net/core/dev_api.c:202 bond_enslave+0xeb2/0x3b10 drivers/net/bonding/bond_main.c:2089 bond_do_ioctl+0x6f6/0x8e0 drivers/net/bonding/bond_main.c:4640 bond_siocdevprivate+0x19c/0x1f0 drivers/net/bonding/bond_main.c:-1 dev_siocdevprivate net/core/dev_ioctl.c:511 [inline] dev_ifsioc+0xb56/0x1360 net/core/dev_ioctl.c:625 dev_ioctl+0x84c/0x1150 net/core/dev_ioctl.c:843 sock_ioctl+0x753/0x7e0 net/socket.c:1346 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 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:0x7fe6a039ce59 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:00007fe69e5f6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fe6a0616090 RCX: 00007fe6a039ce59 RDX: 0000200000000040 RSI: 00000000000089f0 RDI: 0000000000000003 RBP: 00007fe6a0432e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe6a0616128 R14: 00007fe6a0616090 R15: 00007fe6a073fa48