syzbot


WARNING: refcount bug in ax25_release

Status: closed as invalid on 2023/12/15 13:48
Subsystems: hams
[Documentation on labels]
First crash: 287d, last: 287d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING: refcount bug in ax25_release 2 10d 10d 0/3 upstream: reported on 2024/06/15 15:04
upstream WARNING: refcount bug in ax25_release (3) hams C done 58 1d02h 30d 0/27 upstream: reported C repro on 2024/05/26 23:38
upstream WARNING: refcount bug in ax25_release (2) hams C 240 34d 100d 26/27 fixed on 2024/05/22 23:16

Sample crash report:
WARNING: CPU: 1 PID: 7000 at lib/refcount.c:31 refcount_warn_saturate+0x1d7/0x1f0 lib/refcount.c:31
Modules linked in:

CPU: 1 PID: 7000 Comm: syz-executor.1 Not tainted 6.5.0-syzkaller-12676-gbe3af13fc1b5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
RIP: 0010:refcount_warn_saturate+0x1d7/0x1f0 lib/refcount.c:31
Code: 05 07 17 93 0a 01 e8 08 d2 28 fd 0f 0b e9 d7 fe ff ff e8 ac b3 62 fd 48 c7 c7 40 cc e8 8a c6 05 e6 16 93 0a 01 e8 e9 d1 28 fd <0f> 0b e9 b8 fe ff ff 48 89 ef e8 4a 75 b8 fd e9 5c fe ff ff 0f 1f
RSP: 0018:ffffc9000343fcc0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff88808b391dc0 RSI: ffffffff814df1b6 RDI: 0000000000000001
RBP: ffff888027efc5fc R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 00000000000c1458 R12: 1ffff92000687f9d
R13: ffff888027efc5fc R14: 0000000000000000 R15: ffff888027efc000
FS:  0000555556845480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3477caaffc CR3: 000000007c3fc000 CR4: 00000000003506e0
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]
 ref_tracker_free+0x708/0x810 lib/ref_tracker.c:236
 netdev_tracker_free include/linux/netdevice.h:4076 [inline]
 netdev_put include/linux/netdevice.h:4093 [inline]
 netdev_put include/linux/netdevice.h:4089 [inline]
 ax25_release+0x339/0xa30 net/ax25/af_ax25.c:1069
 __sock_release+0xae/0x260 net/socket.c:659
 sock_close+0x1c/0x20 net/socket.c:1402
 __fput+0x3f7/0xa70 fs/file_table.c:384
 __fput_sync+0x47/0x50 fs/file_table.c:465
 __do_sys_close fs/open.c:1572 [inline]
 __se_sys_close fs/open.c:1557 [inline]
 __x64_sys_close+0x87/0xf0 fs/open.c:1557
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fea75e7b9da
Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24
RSP: 002b:00007ffe50048d10 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007fea75e7b9da
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 0000000000000032 R08: 0000001b2dd20000 R09: 000000000000006c
R10: 000000008173873c R11: 0000000000000293 R12: 00007fea75a00f88
R13: ffffffffffffffff R14: 00007fea75a00000 R15: 000000000031785f
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/12 16:05 net-next be3af13fc1b5 59da8366 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: refcount bug in ax25_release
* Struck through repros no longer work on HEAD.