syzbot


WARNING: refcount bug in sco_conn_del

Status: auto-closed as invalid on 2022/01/23 12:39
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+284f5086a790a6246920@syzkaller.appspotmail.com
First crash: 953d, last: 935d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] WARNING: refcount bug in sco_conn_del 0 (1) 2021/09/14 17:37
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: refcount bug in sco_conn_del (2) bluetooth 1 281d 277d 0/26 auto-obsoleted due to no activity on 2023/09/10 03:31
upstream WARNING: refcount bug in sco_conn_del (3) bluetooth 1 17d 13d 0/26 moderation: reported on 2024/04/04 13:34

Sample crash report:
WARNING: CPU: 0 PID: 21103 at lib/refcount.c:25 refcount_warn_saturate+0x13d/0x1a0 lib/refcount.c:25
Modules linked in:
CPU: 0 PID: 21103 Comm: syz-executor.0 Not tainted 5.15.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:refcount_warn_saturate+0x13d/0x1a0 lib/refcount.c:25
Code: c7 60 d8 b3 8a 31 c0 e8 c1 d9 3c fd 0f 0b eb a3 e8 58 a2 71 fd c6 05 65 db b7 09 01 48 c7 c7 c0 d8 b3 8a 31 c0 e8 a3 d9 3c fd <0f> 0b eb 85 e8 3a a2 71 fd c6 05 48 db b7 09 01 48 c7 c7 20 d9 b3
RSP: 0018:ffffc9000512f788 EFLAGS: 00010246
RAX: e4d9338b3b730f00 RBX: 0000000000000002 RCX: ffff888088bcb900
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 0000000000000002 R08: ffffffff81682032 R09: ffffed10173857a8
R10: ffffed10173857a8 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff88808555c968 R14: ffff888075e6fe00 R15: 0000000000000067
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2f728000 CR3: 0000000039b0d000 CR4: 00000000001526e0
Call Trace:
 __refcount_inc include/linux/refcount.h:250 [inline]
 refcount_inc include/linux/refcount.h:267 [inline]
 sock_hold include/net/sock.h:702 [inline]
 sco_conn_del+0x242/0x2f0 net/bluetooth/sco.c:193
 hci_disconn_cfm include/net/bluetooth/hci_core.h:1518 [inline]
 hci_conn_hash_flush+0x112/0x240 net/bluetooth/hci_conn.c:1608
 hci_dev_do_close+0x93e/0xeb0 net/bluetooth/hci_core.c:1793
 hci_unregister_dev+0x2a2/0x510 net/bluetooth/hci_core.c:4029
 vhci_release+0x73/0xc0 drivers/bluetooth/hci_vhci.c:340
 __fput+0x3fe/0x870 fs/file_table.c:280
 task_work_run+0x146/0x1c0 kernel/task_work.c:164
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0x6fc/0x2580 kernel/exit.c:825
 do_group_exit+0x168/0x2d0 kernel/exit.c:922
 get_signal+0x16e0/0x20c0 kernel/signal.c:2868
 arch_do_signal_or_restart+0x9c/0x730 arch/x86/kernel/signal.c:865
 handle_signal_work kernel/entry/common.c:148 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
 exit_to_user_mode_prepare+0x191/0x220 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:300
 do_syscall_64+0x53/0xd0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f9a22abb709
Code: Unable to access opcode bytes at RIP 0x7f9a22abb6df.
RSP: 002b:00007f9a1fff0218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f9a22bc00e8 RCX: 00007f9a22abb709
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f9a22bc00e8
RBP: 00007f9a22bc00e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9a22bc00ec
R13: 00007ffcaa2efe2f R14: 00007f9a1fff0300 R15: 0000000000022000

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/09/25 12:39 upstream 7d42e9818258 8cac236e .config console log report info ci-upstream-kasan-gce-smack-root WARNING: refcount bug in sco_conn_del
2021/09/18 11:50 upstream 4357f03d6611 70b76c1d .config console log report info ci-upstream-kasan-gce-smack-root WARNING: refcount bug in sco_conn_del
2021/09/16 17:05 upstream ff1ffd71d5f0 aae492f2 .config console log report info ci-upstream-kasan-gce-smack-root WARNING: refcount bug in sco_conn_del
2021/09/10 05:29 upstream bf9f243f23e6 e2776ee4 .config console log report info ci-upstream-kasan-gce-smack-root WARNING: refcount bug in sco_conn_del
2021/09/08 10:35 net-old 626bf91a292e e2776ee4 .config console log report info ci-upstream-net-this-kasan-gce WARNING: refcount bug in sco_conn_del
2021/09/14 12:34 linux-next 815c5020b5ab 58d09404 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in sco_conn_del
2021/09/07 13:05 linux-next b2bb710d34d5 6ca60148 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in sco_conn_del
* Struck through repros no longer work on HEAD.