syzbot


WARNING: refcount bug in sco_sock_timeout (2)

Status: upstream: reported on 2023/06/28 07:45
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+c689847e27e0fa3e7a5d@syzkaller.appspotmail.com
First crash: 309d, last: 77d
Discussions (2)
Title Replies (including bot) Last reply
Re: [syzbot] [bluetooth?] WARNING: refcount bug in sco_sock_timeout (2) 1 (1) 2023/12/11 14:15
[syzbot] [bluetooth?] WARNING: refcount bug in sco_sock_timeout (2) 0 (1) 2023/06/28 07:45
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: refcount bug in sco_sock_timeout bluetooth 24 709d 952d 0/26 auto-obsoleted due to no activity on 2022/09/15 13:12

Sample crash report:
------------[ cut here ]------------
refcount_t: addition on 0; use-after-free.
WARNING: CPU: 0 PID: 1144 at lib/refcount.c:25 refcount_warn_saturate+0x1b8/0x1f0 lib/refcount.c:25
Modules linked in:
CPU: 0 PID: 1144 Comm: kworker/0:3 Not tainted 6.5.0-rc6-syzkaller-00027-g91aa6c412d7f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
Workqueue: events sco_sock_timeout
RIP: 0010:refcount_warn_saturate+0x1b8/0x1f0 lib/refcount.c:25
Code: 0a 31 ff 89 de e8 18 d3 66 fd 84 db 0f 85 f6 fe ff ff e8 db d7 66 fd 48 c7 c7 20 cb c7 8a c6 05 b9 a0 76 0a 01 e8 08 9a 2d fd <0f> 0b e9 d7 fe ff ff e8 bc d7 66 fd 48 c7 c7 e0 cb c7 8a c6 05 98
RSP: 0018:ffffc90005c2fcb0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff8880218b3b80 RSI: ffffffff814ccc86 RDI: 0000000000000001
RBP: ffff888039122080 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff88807737d408
R13: ffff888039122080 R14: ffff8880b9841600 R15: ffff88807737d450
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000f40 CR3: 0000000016f82000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 __refcount_add include/linux/refcount.h:199 [inline]
 __refcount_inc include/linux/refcount.h:250 [inline]
 refcount_inc include/linux/refcount.h:267 [inline]
 sock_hold include/net/sock.h:777 [inline]
 sco_sock_timeout+0x232/0x2b0 net/bluetooth/sco.c:89
 process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2600
 worker_thread+0x687/0x1110 kernel/workqueue.c:2751
 kthread+0x33a/0x430 kernel/kthread.c:389
 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </TASK>

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/15 14:15 upstream 91aa6c412d7f 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: refcount bug in sco_sock_timeout
2023/11/12 10:33 net 2bd5b559a1f3 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: refcount bug in sco_sock_timeout
2024/02/10 06:54 net-next 4ec3b4aafc87 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: refcount bug in sco_sock_timeout
2024/01/19 07:58 net-next 736b5545d39c 239abf84 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: refcount bug in sco_sock_timeout
2023/06/23 00:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 42234a752679 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: refcount bug in sco_sock_timeout
* Struck through repros no longer work on HEAD.