syzbot


WARNING: refcount bug in ax25_setsockopt

Status: upstream: reported C repro on 2025/07/11 15:28
Subsystems: hams
[Documentation on labels]
Reported-by: syzbot+0ee4da32f91ae2a3f015@syzkaller.appspotmail.com
First crash: 315d, last: 5d10h
Cause bisection: failed (error log, bisect log)
  
Fix bisection: failed (error log, bisect log)
  
Discussions (6)
Title Replies (including bot) Last reply
[syzbot] Monthly hams report (Jan 2026) 0 (1) 2026/01/26 07:12
[syzbot] Monthly hams report (Dec 2025) 0 (1) 2025/12/26 07:48
[syzbot] Monthly hams report (Oct 2025) 0 (1) 2025/10/24 18:48
[syzbot] Monthly hams report (Sep 2025) 0 (1) 2025/09/23 13:33
[syzbot] Monthly hams report (Aug 2025) 0 (1) 2025/08/25 08:40
[syzbot] [hams?] WARNING: refcount bug in ax25_setsockopt 1 (3) 2025/07/12 01:44
Last patch testing requests (11)
Created Duration User Patch Repo Result
2026/02/09 03:05 48m retest repro net report log
2026/02/09 03:05 34m retest repro linux-next report log
2026/01/25 21:22 30m retest repro net-next report log
2026/01/25 21:22 30m retest repro net-next report log
2026/01/25 21:22 19m retest repro net report log
2026/01/25 21:22 3h26m retest repro net error
2026/01/25 21:22 3h12m retest repro net-next error
2026/01/11 20:38 13m retest repro upstream report log
2026/01/11 20:38 12m retest repro upstream report log
2025/11/26 00:12 1h25m retest repro net report log
2025/07/12 00:58 45m hdanton@sina.com patch net-next OK log

Sample crash report:
------------[ cut here ]------------
refcount_t: addition on 0; use-after-free.
WARNING: lib/refcount.c:25 at refcount_warn_saturate+0x111/0x130 lib/refcount.c:25, CPU#2: syz.0.446/6575
Modules linked in:
CPU: 2 UID: 0 PID: 6575 Comm: syz.0.446 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:refcount_warn_saturate+0x111/0x130 lib/refcount.c:25
Code: 06 e8 33 cf 1b fd 48 8d 3d 9c 65 f7 0b 67 48 0f b9 3a e8 22 cf 1b fd 5b 5d c3 cc cc cc cc e8 16 cf 1b fd 48 8d 3d 8f 65 f7 0b <67> 48 0f b9 3a e8 05 cf 1b fd 5b 5d c3 cc cc cc cc 48 89 df e8 56
RSP: 0018:ffffc90007257d38 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88802b513cc8 RCX: ffffffff84eb3e7b
RDX: ffff88803236c900 RSI: ffffffff84eb3f2a RDI: ffffffff90e2a4c0
RBP: 0000000000000002 R08: 0000000000000005 R09: 0000000000000004
R10: 0000000000000002 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88802b513cc8 R14: ffff88802b513c00 R15: ffff88802b74a000
FS:  0000555566a7a500(0000) GS:ffff8880d659d000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f88453e42f8 CR3: 0000000049682000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 __refcount_add include/linux/refcount.h:289 [inline]
 __refcount_inc include/linux/refcount.h:366 [inline]
 refcount_inc include/linux/refcount.h:383 [inline]
 ax25_dev_hold include/net/ax25.h:285 [inline]
 ax25_setsockopt+0x10d7/0x1230 net/ax25/af_ax25.c:705
 do_sock_setsockopt+0xf3/0x1d0 net/socket.c:2322
 __sys_setsockopt+0x195/0x220 net/socket.c:2347
 __do_sys_setsockopt net/socket.c:2353 [inline]
 __se_sys_setsockopt net/socket.c:2350 [inline]
 __x64_sys_setsockopt+0xbd/0x160 net/socket.c:2350
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8a7099bf79
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:00007ffdcbe48d78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f8a70c15fa0 RCX: 00007f8a7099bf79
RDX: 0000000000000019 RSI: 0000000000000101 RDI: 0000000000000009
RBP: 00007f8a70a327e0 R08: 0000000000000010 R09: 0000000000000000
R10: 00002000000001c0 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f8a70c15fac R14: 00007f8a70c15fa0 R15: 00007f8a70c15fa0
 </TASK>
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	e8 33 cf 1b fd       	call   0xfd1bcf38
   5:	48 8d 3d 9c 65 f7 0b 	lea    0xbf7659c(%rip),%rdi        # 0xbf765a8
   c:	67 48 0f b9 3a       	ud1    (%edx),%rdi
  11:	e8 22 cf 1b fd       	call   0xfd1bcf38
  16:	5b                   	pop    %rbx
  17:	5d                   	pop    %rbp
  18:	c3                   	ret
  19:	cc                   	int3
  1a:	cc                   	int3
  1b:	cc                   	int3
  1c:	cc                   	int3
  1d:	e8 16 cf 1b fd       	call   0xfd1bcf38
  22:	48 8d 3d 8f 65 f7 0b 	lea    0xbf7658f(%rip),%rdi        # 0xbf765b8
* 29:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2e:	e8 05 cf 1b fd       	call   0xfd1bcf38
  33:	5b                   	pop    %rbx
  34:	5d                   	pop    %rbp
  35:	c3                   	ret
  36:	cc                   	int3
  37:	cc                   	int3
  38:	cc                   	int3
  39:	cc                   	int3
  3a:	48 89 df             	mov    %rbx,%rdi
  3d:	e8                   	.byte 0xe8
  3e:	56                   	push   %rsi

Crashes (24):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/02/13 01:12 upstream 37a93dd5c49b 504cb1bf .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in ax25_setsockopt
2025/12/14 09:14 upstream 8f0b4cce4481 d1b870e1 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in ax25_setsockopt
2025/12/14 06:38 upstream 9d9c1cfec01c d1b870e1 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in ax25_setsockopt
2025/12/20 04:52 net 7b8e9264f55a d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: refcount bug in ax25_setsockopt
2025/12/20 00:31 net 7b8e9264f55a d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: refcount bug in ax25_setsockopt
2025/07/27 22:59 net afd8c2c9e2e2 fb8f743d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: refcount bug in ax25_setsockopt
2026/02/13 11:10 net-next 37a93dd5c49b 6a673c50 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: refcount bug in ax25_setsockopt
2025/04/12 14:08 net-next faeefc173be4 0bd6db41 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: refcount bug in ax25_setsockopt
2025/04/12 11:59 net-next faeefc173be4 0bd6db41 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: refcount bug in ax25_setsockopt
2025/12/08 18:31 net-next 8f7aa3d3c732 d6526ea3 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: refcount bug in ax25_setsockopt
2025/12/09 12:34 linux-next c75caf76ed86 d6526ea3 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce WARNING: refcount bug in ax25_setsockopt
2025/09/28 01:46 upstream 51a24b7deaae 001c9061 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in ax25_setsockopt
2025/09/27 17:07 upstream fec734e8d564 001c9061 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in ax25_setsockopt
2025/09/26 13:35 upstream 4ff71af020ae 0abd0691 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in ax25_setsockopt
2026/02/15 19:41 net ee5492fd88cf 1e62d198 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: refcount bug in ax25_setsockopt
2025/12/28 20:32 net d42bce414d1c d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: refcount bug in ax25_setsockopt
2025/10/10 04:14 net fea8cdf6738a 7e2882b3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: refcount bug in ax25_setsockopt
2025/09/26 18:45 net 4ff71af020ae 0abd0691 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: refcount bug in ax25_setsockopt
2025/12/08 16:46 net-next 8f7aa3d3c732 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: refcount bug in ax25_setsockopt
2025/09/02 20:45 net-next cd8a4cfa6bb4 091ba174 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: refcount bug in ax25_setsockopt
2025/08/20 18:58 net-next 5c69e0b395c1 bd178e57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: refcount bug in ax25_setsockopt
2025/07/20 09:43 net-next 4701ee5044fb 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: refcount bug in ax25_setsockopt
2025/06/09 22:44 net-next 2c7e4a2663a1 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: refcount bug in ax25_setsockopt
2025/04/12 03:42 net-next faeefc173be4 12ba9c21 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: refcount bug in ax25_setsockopt
* Struck through repros no longer work on HEAD.