syzbot


WARNING: refcount bug in sco_conn_del (2)

Status: auto-obsoleted due to no activity on 2023/09/10 03:31
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+6686f5ece2ef713b7b61@syzkaller.appspotmail.com
First crash: 294d, last: 294d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: refcount bug in sco_conn_del bluetooth 7 948d 959d 0/26 auto-closed as invalid on 2022/01/23 12:39
upstream WARNING: refcount bug in sco_conn_del (3) bluetooth 1 30d 26d 0/26 moderation: reported on 2024/04/04 13:34

Sample crash report:
------------[ cut here ]------------
refcount_t: saturated; leaking memory.
WARNING: CPU: 1 PID: 7252 at lib/refcount.c:22 refcount_warn_saturate+0xd2/0x1f0 lib/refcount.c:22
Modules linked in:
CPU: 1 PID: 7252 Comm: syz-executor.2 Not tainted 6.5.0-rc1-next-20230712-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
RIP: 0010:refcount_warn_saturate+0xd2/0x1f0 lib/refcount.c:22
Code: 1d 94 03 7b 0a 31 ff 89 de e8 6a c0 6a fd 84 db 75 dc e8 31 c5 6a fd 48 c7 c7 e0 0c c8 8a c6 05 74 03 7b 0a 01 e8 2e d6 31 fd <0f> 0b eb c0 e8 15 c5 6a fd 0f b6 1d 60 03 7b 0a 31 ff 89 de e8 35
RSP: 0018:ffffc900043cfb08 EFLAGS: 00010282

RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888022543b80 RSI: ffffffff814cde97 RDI: 0000000000000001
RBP: ffff88804487f080 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 000000000002e3d8 R12: ffff88807c2ea000
R13: 000000008b84e620 R14: ffff88807c2ea990 R15: ffff88807dcfc608
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555556f24938 CR3: 0000000023d86000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __refcount_add include/linux/refcount.h:201 [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_conn_del+0x256/0x2d0 net/bluetooth/sco.c:193
 sco_disconn_cfm+0x76/0xb0 net/bluetooth/sco.c:1384
 hci_disconn_cfm include/net/bluetooth/hci_core.h:1900 [inline]
 hci_conn_hash_flush+0x114/0x230 net/bluetooth/hci_conn.c:2520
 hci_dev_close_sync+0x5a7/0x10e0 net/bluetooth/hci_sync.c:5044
 hci_dev_do_close+0x2e/0x70 net/bluetooth/hci_core.c:554
 hci_unregister_dev+0x1e7/0x580 net/bluetooth/hci_core.c:2731
 vhci_release+0x7f/0xf0 drivers/bluetooth/hci_vhci.c:669
 __fput+0x3fd/0xac0 fs/file_table.c:384
 task_work_run+0x14d/0x240 kernel/task_work.c:179
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xa86/0x2a00 kernel/exit.c:874
 do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
 __do_sys_exit_group kernel/exit.c:1035 [inline]
 __se_sys_exit_group kernel/exit.c:1033 [inline]
 __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1033
 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:0x7f576d67cb29
Code: Unable to access opcode bytes at 0x7f576d67caff.
RSP: 002b:00007ffd900e3a88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f576d67cb29
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000043
RBP: 00007f576d6c844b R08: 00007ffd900e1826 R09: 00000000002759e7
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000001c
R13: 00000000002759e7 R14: 0000000000275994 R15: 0000000000000006
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/12 03:31 linux-next 40b055fe7f27 2f19aa4f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in sco_conn_del
* Struck through repros no longer work on HEAD.