syzbot


WARNING: refcount bug in ax25_release

Status: upstream: reported C repro on 2024/06/15 15:04
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+7ed59d42e7f489c36a83@syzkaller.appspotmail.com
First crash: 444d, last: 12d
Fix bisection: failed (error log, bisect log)
  
Bug presence (2)
Date Name Commit Repro Result
2025/01/07 upstream (ToT) fbfd64d25c7a C [report] WARNING: refcount bug in ax25_release
2025/03/23 upstream (ToT) 586de92313fc C Didn't crash
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: refcount bug in ax25_release (3) hams 13 C done 5256 159d 463d 28/29 fixed on 2025/06/10 16:19
upstream WARNING: refcount bug in ax25_release hams 13 1 721d 721d 0/29 closed as invalid on 2023/12/15 13:48
upstream WARNING: refcount bug in ax25_release (2) hams 13 C 240 467d 533d 25/29 fixed on 2024/05/22 23:16
linux-6.6 WARNING: refcount bug in ax25_release 13 3 41d 66d 0/2 upstream: reported on 2025/06/28 14:27

Sample crash report:
------------[ cut here ]------------
refcount_t: decrement hit 0; leaking memory.
WARNING: CPU: 1 PID: 7139 at lib/refcount.c:31 refcount_warn_saturate+0xe3/0x1a0 lib/refcount.c:31
Modules linked in:
CPU: 1 PID: 7139 Comm: syz.1.660 Not tainted 6.1.146-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:refcount_warn_saturate+0xe3/0x1a0 lib/refcount.c:31
Code: 04 0a 01 0f 85 98 00 00 00 e8 49 5b 7a fd 5b 41 5e c3 e8 40 5b 7a fd c6 05 1e 79 04 0a 01 48 c7 c7 a0 b1 de 8a e8 bd 7c 46 fd <0f> 0b eb e0 e8 24 5b 7a fd c6 05 00 79 04 0a 01 48 c7 c7 e0 b0 de
RSP: 0018:ffffc90003397b68 EFLAGS: 00010246
RAX: 13a760825371b100 RBX: 0000000000000004 RCX: ffff888055819dc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: ffffc90003397cb0 R08: dffffc0000000000 R09: ffffed10171e4f34
R10: ffffed10171e4f34 R11: 1ffff110171e4f33 R12: ffff8880732bc5b8
R13: dffffc0000000000 R14: 0000000000000004 R15: 0000000000000001
FS:  000055558c747500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdd76571de0 CR3: 000000001e7a1000 CR4: 00000000003526e0
DR0: ffffffffffffffff DR1: 000000000000008d DR2: 0000000020000008
DR3: 0000000000007fff DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __refcount_dec include/linux/refcount.h:344 [inline]
 refcount_dec include/linux/refcount.h:359 [inline]
 ref_tracker_free+0x694/0x7c0 lib/ref_tracker.c:118
 netdev_tracker_free include/linux/netdevice.h:4071 [inline]
 netdev_put include/linux/netdevice.h:4088 [inline]
 ax25_release+0x3c8/0x940 net/ax25/af_ax25.c:1080
 __sock_release net/socket.c:654 [inline]
 sock_close+0xd5/0x240 net/socket.c:1400
 __fput+0x22c/0x920 fs/file_table.c:320
 task_work_run+0x1ca/0x250 kernel/task_work.c:203
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
 syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303
 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7efc7e38e9a9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff58fe3bf8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007efc7e5b7ba0 RCX: 00007efc7e38e9a9
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007efc7e5b7ba0 R08: 0000000000000274 R09: 0000001c58fe3eef
R10: 00007efc7e5b7ac0 R11: 0000000000000246 R12: 000000000006342a
R13: 00007efc7e5b6240 R14: ffffffffffffffff R15: 00007fff58fe3d10
 </TASK>

Crashes (44):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/22 12:04 linux-6.1.y 3369c6df2fae 1555463b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2025/05/14 21:24 linux-6.1.y 02b72ccb5f9d a4fa04ef .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2025/04/29 00:41 linux-6.1.y 535ec20c5027 aeb6ec69 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2025/04/29 00:41 linux-6.1.y 535ec20c5027 aeb6ec69 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2025/04/26 00:45 linux-6.1.y 535ec20c5027 c6b4fb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2025/04/26 00:44 linux-6.1.y 535ec20c5027 c6b4fb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2025/04/12 00:56 linux-6.1.y 420102835862 0bd6db41 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2025/04/12 00:56 linux-6.1.y 420102835862 0bd6db41 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2025/04/10 21:22 linux-6.1.y 420102835862 1ef3ab4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2025/04/08 04:15 linux-6.1.y 3dfebb87d7eb a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2025/04/08 04:15 linux-6.1.y 3dfebb87d7eb a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2025/03/28 22:06 linux-6.1.y 344a09659766 9a1a9e31 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2025/02/28 10:52 linux-6.1.y 3a8358583626 6a8fcbc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2025/02/28 01:07 linux-6.1.y 3a8358583626 6a8fcbc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2025/02/19 08:46 linux-6.1.y 0cbb5f65e52f 9a14138f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2025/02/19 08:46 linux-6.1.y 0cbb5f65e52f 9a14138f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2025/02/19 08:43 linux-6.1.y 0cbb5f65e52f 9a14138f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2025/02/11 04:10 linux-6.1.y 0cbb5f65e52f 43f51a00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2024/10/30 08:26 linux-6.1.y 7ec6f9fa3d97 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2024/08/08 06:10 linux-6.1.y 48d525b0e463 de12cf65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2024/07/15 14:43 linux-6.1.y cac15753b8ce c605e6a2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2024/07/15 14:43 linux-6.1.y cac15753b8ce c605e6a2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2024/06/15 15:03 linux-6.1.y ae9f2a70d69e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2024/06/15 15:03 linux-6.1.y ae9f2a70d69e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING: refcount bug in ax25_release
2025/08/21 03:10 linux-6.1.y 0bc96de781b4 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
2025/07/08 08:11 linux-6.1.y 04d1ccaa9c28 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
2025/04/08 16:43 linux-6.1.y 3dfebb87d7eb a775275d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
2025/03/12 06:43 linux-6.1.y 6ae7ac5c4251 ee70e6db .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
2025/02/27 16:23 linux-6.1.y 3a8358583626 6a8fcbc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
2025/02/19 22:16 linux-6.1.y 0cbb5f65e52f b257a9b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
2025/02/19 22:15 linux-6.1.y 0cbb5f65e52f b257a9b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
2025/02/19 05:55 linux-6.1.y 0cbb5f65e52f 9a14138f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
2025/02/19 05:55 linux-6.1.y 0cbb5f65e52f 9a14138f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
2025/02/19 05:53 linux-6.1.y 0cbb5f65e52f 9a14138f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
2025/02/12 16:05 linux-6.1.y 0cbb5f65e52f b27c2402 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
2025/02/11 03:36 linux-6.1.y 0cbb5f65e52f 43f51a00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
2025/02/01 17:38 linux-6.1.y 75cefdf153f5 aa47157c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
2025/01/19 06:31 linux-6.1.y 60ceadf9247e f2cb035c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
2025/01/17 10:27 linux-6.1.y c63962be84ef f9e07a6e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
2025/01/16 08:27 linux-6.1.y c63962be84ef 968edaf4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
2025/01/13 00:56 linux-6.1.y c63962be84ef 6dbc6a9b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
2025/01/07 10:20 linux-6.1.y 7dc732d24ff7 f3558dbf .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
2025/01/07 06:48 linux-6.1.y 7dc732d24ff7 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING: refcount bug in ax25_release
* Struck through repros no longer work on HEAD.