syzbot


WARNING in __linkwatch_sync_dev

Status: fixed on 2025/06/10 16:19
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+48c14f61594bdfadb086@syzkaller.appspotmail.com
Fix commit: 10a77965760c batman-adv: Fix double-hold of meshif when getting enabled f7a11cba0ed7 bonding: hold ops lock around get_link
First crash: 71d, last: 8d06h
Cause bisection: introduced by (bisect log) :
commit 00b35530811f2aa3d7ceec2dbada80861c7632a8
Author: Eric Dumazet <edumazet@google.com>
Date: Thu Feb 6 14:04:22 2025 +0000

  batman-adv: adopt netdev_hold() / netdev_put()

Crash: unregister_netdevice: waiting for DEV to become free (log)
Repro: C syz .config
  
Discussions (5)
Title Replies (including bot) Last reply
[PATCH net v2] bonding: hold ops lock around get_link 6 (6) 2025/04/29 03:52
[PATCH net v5] batman-adv: Fix double-hold of meshif when getting enabled 3 (3) 2025/04/16 03:10
[PATCH net] bonding: hold ops lock around get_link 4 (4) 2025/04/10 15:46
Re: [PATCH net v3] batman-adv: Fix double-hold of meshif when getting enabled 2 (2) 2025/04/10 13:31
[syzbot] [net?] WARNING in __linkwatch_sync_dev 1 (4) 2025/04/09 03:59
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in __linkwatch_sync_dev (2) net C 130 12h43m 6d17h 0/29 upstream: reported C repro on 2025/06/12 02:21

Sample crash report:
------------[ cut here ]------------
RTNL: assertion failed at ./include/net/netdev_lock.h (56)
WARNING: CPU: 1 PID: 36 at ./include/net/netdev_lock.h:56 netdev_ops_assert_locked include/net/netdev_lock.h:56 [inline]
WARNING: CPU: 1 PID: 36 at ./include/net/netdev_lock.h:56 __linkwatch_sync_dev+0x303/0x350 net/core/link_watch.c:279
Modules linked in:
CPU: 1 UID: 0 PID: 36 Comm: kworker/u8:2 Not tainted 6.15.0-rc4-syzkaller-00189-g2bfcee565c3a #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
Workqueue: bond0 bond_mii_monitor
RIP: 0010:netdev_ops_assert_locked include/net/netdev_lock.h:56 [inline]
RIP: 0010:__linkwatch_sync_dev+0x303/0x350 net/core/link_watch.c:279
Code: 7c fe ff ff e8 5e 19 77 f8 c6 05 6c 38 20 06 01 90 48 c7 c7 80 b5 70 8c 48 c7 c6 dc 18 79 8d ba 38 00 00 00 e8 8e 75 3b f8 90 <0f> 0b 90 90 e9 4d fe ff ff 44 89 f1 80 e1 07 38 c1 0f 8c 22 fd ff
RSP: 0018:ffffc90000ad7710 EFLAGS: 00010246
RAX: 2e18d865fdf6be00 RBX: ffff88807d1b0000 RCX: ffff888143ed1e00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: 0000000000000000 R08: ffffc90000ad73e7 R09: 1ffff9200015ae7c
R10: dffffc0000000000 R11: fffff5200015ae7d R12: 1ffff1100fa3605d
R13: dffffc0000000000 R14: ffffffff8bfa9728 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8881261cc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa0fb7332d0 CR3: 0000000076648000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ethtool_op_get_link+0x15/0x70 net/ethtool/ioctl.c:63
 bond_check_dev_link+0x444/0x6c0 drivers/net/bonding/bond_main.c:866
 bond_miimon_inspect drivers/net/bonding/bond_main.c:2739 [inline]
 bond_mii_monitor+0x428/0x2e00 drivers/net/bonding/bond_main.c:2961
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0xadb/0x17a0 kernel/workqueue.c:3319
 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400
 kthread+0x70e/0x8a0 kernel/kthread.c:464
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>

Crashes (1038):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/03 07:10 upstream 2bfcee565c3a b0714e37 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in __linkwatch_sync_dev
2025/04/23 08:46 upstream bc3372351d0c 53a8b9bd .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in __linkwatch_sync_dev
2025/04/22 13:25 upstream a33b5a08cbbd 2a20f901 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in __linkwatch_sync_dev
2025/04/18 04:29 upstream b5c6891b2c5b 2a20f901 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in __linkwatch_sync_dev
2025/06/07 22:50 upstream bdc7f8c5adad 4826c28e .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/04 23:35 upstream 1af80d00e1e0 6b6b5f21 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/05/30 05:36 upstream e0797d3b91de 3d2f584d .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/05/24 18:29 upstream b1427432d3b6 ed351ea7 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/05/23 22:16 upstream 94305e83eccb f8cc0c83 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/05/21 06:47 upstream b36ddb9210e6 b47f9e02 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/04/08 21:39 linux-next 7702d0130dc0 a775275d .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __linkwatch_sync_dev
2025/06/10 13:20 upstream f09079bd04a9 5d7e17ca .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __linkwatch_sync_dev
2025/06/09 08:51 upstream 19272b37aa4f 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __linkwatch_sync_dev
2025/06/09 01:12 upstream 19272b37aa4f 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __linkwatch_sync_dev
2025/06/08 18:41 upstream 8630c59e9936 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in __linkwatch_sync_dev
2025/06/08 07:23 upstream 5b032cac6225 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __linkwatch_sync_dev
2025/06/07 19:15 upstream 7a912d04415b 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __linkwatch_sync_dev
2025/06/06 21:11 upstream e271ed52b344 f61267d4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __linkwatch_sync_dev
2025/06/04 04:32 upstream 5abc7438f1e9 a30356b7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __linkwatch_sync_dev
2025/06/04 03:02 upstream 546b1c9e93c2 a30356b7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in __linkwatch_sync_dev
2025/06/03 22:40 upstream 546b1c9e93c2 a30356b7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __linkwatch_sync_dev
2025/06/01 15:23 upstream 7d4e49a77d99 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __linkwatch_sync_dev
2025/05/31 12:25 upstream 0f70f5b08a47 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in __linkwatch_sync_dev
2025/05/30 12:53 upstream f66bc387efbe 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in __linkwatch_sync_dev
2025/05/30 03:31 upstream e0797d3b91de 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in __linkwatch_sync_dev
2025/05/17 04:57 upstream 3c21441eeffc f41472b0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in __linkwatch_sync_dev
2025/05/31 00:31 upstream 8477ab143069 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING in __linkwatch_sync_dev
2025/06/10 00:43 upstream 19272b37aa4f 4826c28e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/08 22:51 upstream 939f15e640f1 4826c28e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/08 15:22 upstream 8630c59e9936 4826c28e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/08 10:56 upstream 8630c59e9936 4826c28e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/08 01:53 upstream 8630c59e9936 4826c28e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/07 18:04 upstream bdc7f8c5adad 4826c28e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/07 16:31 upstream bdc7f8c5adad 4826c28e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/07 03:58 upstream c0c9379f235d 4826c28e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/06 17:40 upstream e271ed52b344 3d899f2c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/06 15:12 upstream e271ed52b344 3d899f2c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/06 03:06 upstream e271ed52b344 6b6b5f21 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/05 18:08 upstream ec7714e49479 6b6b5f21 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/05 04:07 upstream 1af80d00e1e0 6b6b5f21 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/03 20:26 upstream 546b1c9e93c2 a30356b7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/03 09:03 upstream d00a83477e7a a30356b7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/03 00:09 upstream d00a83477e7a a30356b7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/02 01:35 upstream 7d4e49a77d99 3d2f584d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/01 09:29 upstream 4cb6c8af8591 3d2f584d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/06/01 01:36 upstream 4cb6c8af8591 3d2f584d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __linkwatch_sync_dev
2025/04/27 09:13 upstream 5bc1018675ec c6b4fb39 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in __linkwatch_sync_dev
2025/06/01 22:33 upstream 7d4e49a77d99 3d2f584d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __linkwatch_sync_dev
2025/05/31 23:53 upstream 4cb6c8af8591 3d2f584d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __linkwatch_sync_dev
2025/05/31 20:22 upstream 0f70f5b08a47 3d2f584d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __linkwatch_sync_dev
2025/05/31 19:06 upstream 0f70f5b08a47 3d2f584d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __linkwatch_sync_dev
2025/05/30 18:53 upstream f66bc387efbe 3d2f584d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __linkwatch_sync_dev
2025/05/30 15:35 upstream f66bc387efbe 3d2f584d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __linkwatch_sync_dev
2025/05/30 04:47 upstream 9d230d500b0e 3d2f584d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __linkwatch_sync_dev
2025/05/30 02:11 upstream 9d230d500b0e 3d2f584d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in __linkwatch_sync_dev
2025/05/27 21:29 upstream 914873bc7df9 874a1386 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING in __linkwatch_sync_dev
2025/05/15 08:53 upstream c94d59a126cb d6b2ee52 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 WARNING in __linkwatch_sync_dev
2025/05/14 20:59 upstream 9f35e33144ae a4fa04ef .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in __linkwatch_sync_dev
2025/04/27 14:24 upstream 5bc1018675ec c6b4fb39 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-compat WARNING in __linkwatch_sync_dev
2025/05/31 15:16 net 3ec523304976 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in __linkwatch_sync_dev
2025/05/31 05:42 net 3ec523304976 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in __linkwatch_sync_dev
2025/05/30 20:45 net d3faab9b5a6a 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in __linkwatch_sync_dev
2025/05/30 17:34 net d3faab9b5a6a 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in __linkwatch_sync_dev
2025/05/30 13:09 net d3faab9b5a6a 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in __linkwatch_sync_dev
2025/05/30 06:51 net 27eab4c64423 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in __linkwatch_sync_dev
2025/06/05 13:36 net-next 90b83efa6701 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __linkwatch_sync_dev
2025/06/05 10:44 net-next 90b83efa6701 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __linkwatch_sync_dev
2025/06/05 08:36 net-next 90b83efa6701 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __linkwatch_sync_dev
2025/06/05 06:47 net-next 90b83efa6701 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __linkwatch_sync_dev
2025/06/04 00:34 net-next 90b83efa6701 a30356b7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __linkwatch_sync_dev
2025/06/02 20:43 net-next 90b83efa6701 b396b4bf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __linkwatch_sync_dev
2025/05/29 20:56 linux-next 2a628f951ed5 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __linkwatch_sync_dev
2025/04/08 07:32 linux-next 7702d0130dc0 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __linkwatch_sync_dev
2025/06/04 06:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d7fa1af5b33e a30356b7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __linkwatch_sync_dev
2025/06/03 11:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d7fa1af5b33e b396b4bf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __linkwatch_sync_dev
* Struck through repros no longer work on HEAD.