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: 333d, last: 5d09h
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 733d 976d 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: 1 PID: 5321 at lib/refcount.c:25 refcount_warn_saturate+0x1ca/0x210 lib/refcount.c:25
Modules linked in:
CPU: 1 PID: 5321 Comm: kworker/1:7 Not tainted 6.9.0-syzkaller-05151-g1b294a1f3561 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
Workqueue: events sco_sock_timeout
RIP: 0010:refcount_warn_saturate+0x1ca/0x210 lib/refcount.c:25
Code: ff 89 de e8 08 ac 0d fd 84 db 0f 85 e6 fe ff ff e8 7b b1 0d fd c6 05 5d 05 4c 0b 01 90 48 c7 c7 20 54 8f 8b e8 a7 02 d0 fc 90 <0f> 0b 90 90 e9 c3 fe ff ff e8 58 b1 0d fd c6 05 38 05 4c 0b 01 90
RSP: 0018:ffffc90002e8fc90 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff81519da9
RDX: ffff88801d705a00 RSI: ffffffff81519db6 RDI: 0000000000000001
RBP: ffff88805ca40080 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000003 R12: ffff88807d89a008
R13: ffff88805ca40080 R14: 000000000003d78c R15: ffffffff8fe43ad8
FS:  0000000000000000(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2fb3d000 CR3: 0000000020430000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 __refcount_add include/linux/refcount.h:190 [inline]
 __refcount_inc include/linux/refcount.h:241 [inline]
 refcount_inc include/linux/refcount.h:258 [inline]
 sock_hold include/net/sock.h:774 [inline]
 sco_sock_timeout+0x29c/0x2e0 net/bluetooth/sco.c:92
 process_one_work+0x9ac/0x1ac0 kernel/workqueue.c:3267
 process_scheduled_works kernel/workqueue.c:3348 [inline]
 worker_thread+0x6c8/0xf70 kernel/workqueue.c:3429
 kthread+0x2c4/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/15 18:34 upstream 1b294a1f3561 0b3dad46 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: refcount bug in sco_sock_timeout
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.