syzbot


WARNING in hci_send_cmd (3)

Status: upstream: reported on 2025/12/15 11:57
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+de67f74f87a8fd41bd70@syzkaller.appspotmail.com
First crash: 5d08h, last: 5d08h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bluetooth?] WARNING in hci_send_cmd (3) 0 (1) 2025/12/15 11:57
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in hci_send_cmd -1 2 145d 168d 0/3 auto-obsoleted due to no activity on 2025/11/01 12:27
upstream WARNING in hci_send_cmd bluetooth -1 8 425d 673d 0/29 auto-obsoleted due to no activity on 2025/01/25 05:20
upstream WARNING in hci_send_cmd (2) bluetooth -1 2 232d 293d 0/29 auto-obsoleted due to no activity on 2025/08/06 09:07

Sample crash report:
Bluetooth: MGMT ver 1.23
------------[ cut here ]------------
workqueue: cannot queue hci_cmd_work on wq hci0
WARNING: kernel/workqueue.c:2271 at __queue_work+0xd20/0xf90 kernel/workqueue.c:2269, CPU#1: syz.6.1277/11092
Modules linked in:
CPU: 1 UID: 0 PID: 11092 Comm: syz.6.1277 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:__queue_work+0xd4b/0xf90 kernel/workqueue.c:2269
Code: 83 c5 18 4c 89 e8 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ef e8 e6 68 9d 00 49 8b 75 00 49 81 c7 78 01 00 00 4c 89 f7 4c 89 fa <67> 48 0f b9 3a 48 83 c4 58 5b 41 5c 41 5d 41 5e 41 5f 5d e9 3d 2a
RSP: 0018:ffffc900030d76d0 EFLAGS: 00010086
RAX: 1ffff1100afba184 RBX: 0000000000000008 RCX: 0000000000080000
RDX: ffff88807d99d178 RSI: ffffffff8a5590f0 RDI: ffffffff8f851310
RBP: 0000000000000000 R08: ffff888057dd0c0f R09: 1ffff1100afba181
R10: dffffc0000000000 R11: ffffed100afba182 R12: dffffc0000000000
R13: ffff888057dd0c20 R14: ffffffff8f851310 R15: ffff88807d99d178
FS:  00007fefeae826c0(0000) GS:ffff888125f32000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fefeae60f98 CR3: 0000000066f94000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 queue_work_on+0x181/0x270 kernel/workqueue.c:2405
 queue_work include/linux/workqueue.h:669 [inline]
 hci_send_cmd+0xb7/0x1b0 net/bluetooth/hci_core.c:3110
 set_link_security+0x588/0x740 net/bluetooth/mgmt.c:1934
 hci_mgmt_cmd+0xa14/0xfa0 net/bluetooth/hci_sock.c:1721
 hci_sock_sendmsg+0x6d7/0xf30 net/bluetooth/hci_sock.c:1841
 sock_sendmsg_nosec+0x18f/0x1d0 net/socket.c:737
 __sock_sendmsg net/socket.c:752 [inline]
 sock_write_iter+0x2d9/0x3d0 net/socket.c:1210
 new_sync_write fs/read_write.c:593 [inline]
 vfs_write+0x5c9/0xb30 fs/read_write.c:686
 ksys_write+0x145/0x250 fs/read_write.c:738
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fefe9f8f749
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fefeae82038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fefea1e5fa0 RCX: 00007fefe9f8f749
RDX: 0000000000000007 RSI: 0000200000000000 RDI: 0000000000000007
RBP: 00007fefea013f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fefea1e6038 R14: 00007fefea1e5fa0 R15: 00007fff2736b578
 </TASK>
----------------
Code disassembly (best guess):
   0:	83 c5 18             	add    $0x18,%ebp
   3:	4c 89 e8             	mov    %r13,%rax
   6:	48 c1 e8 03          	shr    $0x3,%rax
   a:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1)
   f:	74 08                	je     0x19
  11:	4c 89 ef             	mov    %r13,%rdi
  14:	e8 e6 68 9d 00       	call   0x9d68ff
  19:	49 8b 75 00          	mov    0x0(%r13),%rsi
  1d:	49 81 c7 78 01 00 00 	add    $0x178,%r15
  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:	48 83 c4 58          	add    $0x58,%rsp
  33:	5b                   	pop    %rbx
  34:	41 5c                	pop    %r12
  36:	41 5d                	pop    %r13
  38:	41 5e                	pop    %r14
  3a:	41 5f                	pop    %r15
  3c:	5d                   	pop    %rbp
  3d:	e9                   	.byte 0xe9
  3e:	3d                   	.byte 0x3d
  3f:	2a                   	.byte 0x2a

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/11 11:54 linux-next 5ce74bc1b7cb d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in hci_send_cmd
* Struck through repros no longer work on HEAD.