WARNING in hci_connect_sco

Status: upstream: reported C repro on 2025/12/25 02:18
Subsystems: bluetooth
Labels: prio:low
[Documentation on labels]
Reported-by: syzbot+5897b3c764f5989ea942@syzkaller.appspotmail.com
Fix commit: 1ea7a0946b9e Bluetooth: hci_sync: Disable connection works before draining
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci-upstream-rust-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce], missing on: [ci-qemu-native-arm64-kvm ci-qemu2-riscv64 ci-upstream-gce-arm64 ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci2-upstream-usb]
First crash: 336d, last: 22d
▶ ▼ ✨ AI Jobs (3)
ID Workflow Result Correct Bug Created Started Finished Revision
c4fbbf17 repro-c Reproduced: ✅ ❓ WARNING in hci_connect_sco 2026/10/17 08:32 2026/10/17 08:32 2026/10/17 13:02 432c0077
bb56ba16 patching 💥 WARNING in hci_connect_sco 2026/08/02 19:15 2026/08/02 20:29 2026/08/02 20:55 e611ffe1
a0d00a0a assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ✅ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ WARNING in hci_connect_sco 2026/05/22 22:20 2026/05/22 22:20 2026/05/22 23:02 df8ac09c
▶ ▼ Discussions (3)
Title Replies (including bot) Last reply
[PATCH v2 3/3] Bluetooth: hci_sync: Disable connection works before draining 1 (1) 2026/11/17 02:33
[PATCH] Bluetooth: hci_core: Fix queuing disc_work while workqueue is drained 2 (2) 2026/10/28 14:26
[syzbot] [bluetooth?] WARNING in hci_connect_sco 6 (14) 2026/10/17 14:01
▶ ▼ Last patch testing requests (16)
Created Duration User Patch Repo Result
2026/10/31 17:48 16m retest repro upstream report job log log
2026/10/17 13:43 17m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 58161ead29e50d70a317ea26b472e0c7508e69da report job log log
2026/10/16 19:56 18m gservice341@gmail.com patch upstream job log log
2026/10/16 19:56 18m gservice341@gmail.com upstream no crash job log log
2026/10/16 14:40 18m deaner92@yahoo.com patch upstream OK job log log
2026/10/16 14:40 18m deaner92@yahoo.com upstream report job log log
2026/09/26 19:14 19m retest repro upstream no crash job log log
2026/09/12 17:24 19m retest repro upstream no crash job log log
2026/08/11 19:37 25m retest repro upstream report log
2026/07/18 18:31 25m retest repro upstream report log
2026/07/04 16:15 53m retest repro upstream report log
2026/05/13 16:26 26m retest repro upstream no crash log
2026/05/13 15:41 20m retest repro upstream error
2026/04/25 16:19 24m retest repro upstream log
2026/02/02 01:13 18m hdanton@sina.com patch upstream OK log
2026/02/01 02:16 17m hdanton@sina.com patch upstream report log

Sample crash report:
------------[ cut here ]------------
workqueue: cannot queue hci_conn_timeout on wq hci0
WARNING: kernel/workqueue.c:2353 at __queue_work+0xd93/0x10e0 kernel/workqueue.c:2352, CPU#0: syz-executor112/5621
Modules linked in:
CPU: 0 UID: 0 PID: 5621 Comm: syz-executor112 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:__queue_work+0xdaf/0x10e0 kernel/workqueue.c:2352
Code: 49 81 c7 70 01 00 00 4c 8d 35 dd 07 ef 0f 48 89 f8 48 c1 e8 03 80 3c 18 00 74 05 e8 8b 37 ac 00 49 8b 75 18 4c 89 f7 4c 89 fa <67> 48 0f b9 3a 4c 89 e8 48 c1 e8 03 80 3c 18 00 74 08 4c 89 ef e8
RSP: 0018:ffffc900030a7af8 EFLAGS: 00010046
RAX: 1ffff1100a7cc94d RBX: dffffc0000000000 RCX: ffff888040b12580
RDX: ffff888013a00170 RSI: ffffffff8add09c0 RDI: ffffffff917d6ea0
RBP: 0000000000000000 R08: ffff888053e64a57 R09: 1ffff1100a7cc94a
R10: dffffc0000000000 R11: ffffed100a7cc94b R12: 0000000000000008
R13: ffff888053e64a50 R14: ffffffff917d6ea0 R15: ffff888013a00170
FS:  00007f0105e7e6c0(0000) GS:ffff88808b0b4000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555905b7708 CR3: 0000000034424000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 queue_delayed_work_on+0x11a/0x1e0 kernel/workqueue.c:2669
 hci_connect_sco+0xe9/0x390 net/bluetooth/hci_conn.c:1881
 sco_connect net/bluetooth/sco.c:375 [inline]
 sco_sock_connect+0x45e/0xb10 net/bluetooth/sco.c:764
 connect_socket net/socket.c:2141 [inline]
 __sys_connect_file net/socket.c:2166 [inline]
 __sys_connect+0x316/0x450 net/socket.c:2183
 __do_sys_connect net/socket.c:2189 [inline]
 __se_sys_connect net/socket.c:2186 [inline]
 __x64_sys_connect+0x7a/0x90 net/socket.c:2186
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f01096e299e
Code: 08 0f 85 f5 e2 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 90 41 57 41 56 4d 89 c6 41 55 4d 89 cd 41 54 55 53 48 83 ec 08
RSP: 002b:00007f0105e7e0e8 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007f0105e7e6c0 RCX: 00007f01096e299e
RDX: 0000000000000008 RSI: 00007f0105e7e160 RDI: 0000000000000008
RBP: 000000000001e435 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008
R13: 000000000001e438 R14: 00007f0105e7e160 R15: 00007f0105e7e158
 </TASK>
----------------
Code disassembly (best guess):
   0:	49 81 c7 70 01 00 00 	add    $0x170,%r15
   7:	4c 8d 35 dd 07 ef 0f 	lea    0xfef07dd(%rip),%r14        # 0xfef07eb
   e:	48 89 f8             	mov    %rdi,%rax
  11:	48 c1 e8 03          	shr    $0x3,%rax
  15:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1)
  19:	74 05                	je     0x20
  1b:	e8 8b 37 ac 00       	call   0xac37ab
  20:	49 8b 75 18          	mov    0x18(%r13),%rsi
  24:	4c 89 f7             	mov    %r14,%rdi
  27:	4c 89 fa             	mov    %r15,%rdx
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	4c 89 e8             	mov    %r13,%rax
  32:	48 c1 e8 03          	shr    $0x3,%rax
  36:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1)
  3a:	74 08                	je     0x44
  3c:	4c 89 ef             	mov    %r13,%rdi
  3f:	e8                   	.byte 0xe8

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/17 14:01 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 58161ead29e5 4a865b71 .config console log report C ci-snapshot-upstream-root WARNING in hci_connect_sco
2026/07/28 19:31 upstream 3b5f4b83c4ab 4a865b71 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in hci_connect_sco
2026/02/18 14:08 upstream 2961f841b025 39751c21 .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in hci_connect_sco
2026/02/18 10:10 upstream 2961f841b025 39751c21 .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in hci_connect_sco
2026/01/31 15:19 upstream ad9a728a3388 afc0c4d4 .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in hci_connect_sco
2026/01/31 13:50 upstream ad9a728a3388 afc0c4d4 .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in hci_connect_sco
2025/12/21 02:06 upstream d8ba32c5a460 d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in hci_connect_sco
* Struck through repros no longer work on HEAD.