syzbot


WARNING: refcount bug in linkwatch_do_dev

Status: fixed on 2022/03/08 16:11
Subsystems: net
[Documentation on labels]
Fix commit: 123e495ecc25 net: linkwatch: be more careful about dev->linkwatch_dev_tracker
First crash: 1124d, last: 1097d

Sample crash report:
------------[ cut here ]------------
refcount_t: decrement hit 0; leaking memory.
WARNING: CPU: 3 PID: 20417 at lib/refcount.c:31 refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31
Modules linked in:
CPU: 3 PID: 20417 Comm: kworker/3:2 Not tainted 5.16.0-rc2-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
Workqueue: events linkwatch_event
RIP: 0010:refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31
Code: 1d 34 db a1 09 31 ff 89 de e8 3d 4b 9c fd 84 db 75 e0 e8 54 47 9c fd 48 c7 c7 e0 4c 04 8a c6 05 14 db a1 09 01 e8 45 af 25 05 <0f> 0b eb c4 e8 38 47 9c fd 0f b6 1d 03 db a1 09 31 ff 89 de e8 08
RSP: 0018:ffffc900007bfc28 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff88800ef8c2c0 RSI: ffffffff815e40a8 RDI: fffff520000f7f77
RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815dde4e R11: 0000000000000000 R12: ffff888075b985b0
R13: 0000000000000063 R14: 0000000000000000 R15: ffff888075b98000
FS:  0000000000000000(0000) GS:ffff88802cd00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000558ead405bd8 CR3: 000000001fa93000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __refcount_dec include/linux/refcount.h:344 [inline]
 refcount_dec include/linux/refcount.h:359 [inline]
 dev_put include/linux/netdevice.h:4166 [inline]
 linkwatch_do_dev+0x134/0x150 net/core/link_watch.c:169
 __linkwatch_run_queue+0x233/0x6a0 net/core/link_watch.c:213
 linkwatch_event+0x4a/0x60 net/core/link_watch.c:252
 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298
 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445
 kthread+0x405/0x4f0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>

Crashes (74):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/26 08:23 upstream b501b85957de 63eeac02 .config console log report info ci-qemu-upstream WARNING: refcount bug in linkwatch_do_dev
2021/11/25 08:08 upstream 5f53fa508db0 545ab074 .config console log report info ci-qemu-upstream WARNING: refcount bug in linkwatch_do_dev
2021/11/24 17:00 upstream 5d9f4cf36721 545ab074 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING: refcount bug in linkwatch_do_dev
2021/11/23 04:56 upstream 136057256686 545ab074 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING: refcount bug in linkwatch_do_dev
2021/11/22 10:50 upstream 136057256686 4eb20a4e .config console log report info ci-upstream-kasan-gce-selinux-root WARNING: refcount bug in linkwatch_do_dev
2021/11/19 16:21 upstream 4c388a8e740d 3a9d0024 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING: refcount bug in linkwatch_do_dev
2021/11/18 12:38 upstream ee1703cda8dc cafff8b6 .config console log report info ci-upstream-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
2021/11/18 10:06 upstream ee1703cda8dc cafff8b6 .config console log report info ci-upstream-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
2021/11/17 07:30 upstream 8ab774587903 cafff8b6 .config console log report info ci-upstream-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
2021/11/14 15:40 upstream c8c109546a19 83f5c9b5 .config console log report info ci-qemu-upstream WARNING: refcount bug in linkwatch_do_dev
2021/11/14 10:15 upstream ccfff0a2bd2a 83f5c9b5 .config console log report info ci-qemu-upstream WARNING: refcount bug in linkwatch_do_dev
2021/11/24 13:45 upstream 5d9f4cf36721 545ab074 .config console log report info ci-qemu-upstream-386 WARNING: refcount bug in linkwatch_do_dev
2021/11/23 16:54 upstream 136057256686 545ab074 .config console log report info ci-upstream-kasan-gce-386 WARNING: refcount bug in linkwatch_do_dev
2021/11/24 02:24 net-old 7b1b62bc1e6a 545ab074 .config console log report info ci-upstream-net-this-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/22 03:06 net-old f9390b249c90 4eb20a4e .config console log report info ci-upstream-net-this-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/20 03:46 net-old 0f296e782f21 3a9d0024 .config console log report info ci-upstream-net-this-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/18 23:45 net-old c7521d3aa2fa 31a30fc0 .config console log report info ci-upstream-net-this-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/08 15:49 net-old c45231a7668d d29682f1 .config console log report info ci-upstream-net-this-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/27 06:33 net-next-old 35bf8c86eeb8 63eeac02 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/23 06:15 net-next-old 3b0e04140bc3 545ab074 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/22 23:32 net-next-old 6d872df3e3b9 545ab074 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/22 16:31 net-next-old 6d872df3e3b9 545ab074 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/20 08:27 net-next-old 812ad3d270cb 3a9d0024 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/19 02:24 net-next-old bb8cecf8ba12 31a30fc0 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/18 23:45 net-next-old bb8cecf8ba12 31a30fc0 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/18 23:39 net-next-old bb8cecf8ba12 31a30fc0 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/18 20:32 net-next-old bb8cecf8ba12 31a30fc0 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/18 19:38 net-next-old bb8cecf8ba12 31a30fc0 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/18 16:54 net-next-old bb8cecf8ba12 31a30fc0 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/17 19:44 net-next-old b9241f54138c cafff8b6 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/17 16:17 net-next-old b9241f54138c cafff8b6 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/16 21:41 net-next-old 62803fec52f8 600426bd .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/16 19:24 net-next-old 62803fec52f8 600426bd .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/15 20:48 net-next-old cb3ef7b00042 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/15 17:18 net-next-old cb3ef7b00042 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/15 16:46 net-next-old cb3ef7b00042 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/15 12:44 net-next-old 1274a4eb318d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/15 11:14 net-next-old 1274a4eb318d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/15 10:14 net-next-old 1274a4eb318d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/15 05:01 net-next-old 1274a4eb318d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/15 02:25 net-next-old 1274a4eb318d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/15 01:40 net-next-old 1274a4eb318d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/15 01:39 net-next-old 1274a4eb318d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/15 01:06 net-next-old 1274a4eb318d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/14 10:41 net-next-old 66f4beaa6c1d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/14 09:23 net-next-old 66f4beaa6c1d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/14 09:19 net-next-old 66f4beaa6c1d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/14 03:17 net-next-old 66f4beaa6c1d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/14 02:39 net-next-old 66f4beaa6c1d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/13 21:53 net-next-old 66f4beaa6c1d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/12 09:13 net-next-old 5833291ab6de 75b04091 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/12 06:37 net-next-old 5833291ab6de 75b04091 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/11/12 03:49 net-next-old 5833291ab6de 75b04091 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in linkwatch_do_dev
2021/12/05 00:35 linux-next f81e94e91878 a617004c .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
2021/12/04 03:05 linux-next f81e94e91878 a617004c .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
2021/12/01 02:41 linux-next f81e94e91878 80270552 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
2021/11/29 13:16 linux-next f81e94e91878 63eeac02 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
2021/11/29 07:09 linux-next f81e94e91878 63eeac02 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
2021/11/28 23:34 linux-next f81e94e91878 63eeac02 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
2021/11/27 19:36 linux-next f81e94e91878 63eeac02 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
2021/11/27 15:22 linux-next f81e94e91878 63eeac02 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
2021/11/26 23:18 linux-next f81e94e91878 63eeac02 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
2021/11/25 18:53 linux-next f81e94e91878 63eeac02 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
2021/11/25 06:40 linux-next f81e94e91878 545ab074 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
2021/11/24 18:46 linux-next 4b74e088fef6 545ab074 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
2021/11/18 20:30 linux-next 5191249f8803 31a30fc0 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
2021/11/18 08:12 linux-next 5191249f8803 cafff8b6 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
2021/11/16 12:04 linux-next a2f3bb245883 600426bd .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
2021/11/08 12:54 linux-next e844ee04dee0 d29682f1 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in linkwatch_do_dev
* Struck through repros no longer work on HEAD.