WARNING in msft_do_close (2)

Status: upstream: reported C repro on 2026/08/27 18:52
Subsystems: bluetooth
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+14ce1b05b7d5a989abbe@syzkaller.appspotmail.com
First crash: 3d17h, last: 3d17h
✨ AI Patch Versions (2)
Version Stage Reported Report Link Job
1 upstream 2026/08/28 08:54 Discussion 2bc9e8aa-ca6d-43e2-be2c-fd5d9f649d7e
1 moderation 2026/08/27 21:25 Discussion 2bc9e8aa-ca6d-43e2-be2c-fd5d9f649d7e
✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision
2bc9e8aa patching WARNING in msft_do_close (2) 2026/08/27 19:17 2026/08/27 19:17 2026/08/27 21:25 bd6de8ec
2383e85b assessment-security DenialOfService: ✅ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ✅ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ WARNING in msft_do_close (2) 2026/08/27 00:04 2026/08/27 00:04 2026/08/27 00:39 a2b77b9e
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] Bluetooth: hci_core: Fix race condition during device registration 1 (1) 2026/08/28 08:55
[syzbot] [bluetooth?] WARNING in msft_do_close (2) 0 (1) 2026/08/27 18:52
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in msft_do_close bluetooth -1 1 884d 880d 0/29 auto-obsoleted due to no activity on 2024/07/07 06:04

Sample crash report:
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(lock->magic != lock)
WARNING: kernel/locking/mutex.c:625 at __mutex_lock_common kernel/locking/mutex.c:625 [inline], CPU#1: kworker/u34:2/5890
WARNING: kernel/locking/mutex.c:625 at __mutex_lock+0x944/0x1bc0 kernel/locking/mutex.c:821, CPU#1: kworker/u34:2/5890
Modules linked in:
CPU: 1 UID: 0 PID: 5890 Comm: kworker/u34:2 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
Workqueue: hci0 hci_power_on
RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:625 [inline]
RIP: 0010:__mutex_lock+0x94b/0x1bc0 kernel/locking/mutex.c:821
Code: 0f b6 14 11 38 d0 7c 08 84 d2 0f 85 b4 10 00 00 44 8b 05 d8 d5 7a 05 45 85 c0 75 13 48 8d 3d ac da 7d 05 48 c7 c6 a0 d2 ef 8b <67> 48 0f b9 3a 90 e9 1b f8 ff ff 4d 8d a7 f0 0a 00 00 4c 89 e7 e8
RSP: 0018:ffffc90002937890 EFLAGS: 00010246
RAX: 0000000000000003 RBX: ffff88803c0a4440 RCX: 1ffffffff2287150
RDX: 0000000000000000 RSI: ffffffff8befd2a0 RDI: ffffffff91468f60
RBP: ffffc90002937a00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 00000000000075eb R12: 0000000000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff888056a15980
FS:  0000000000000000(0000) GS:ffff8880d5ca2000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8ddaddcff8 CR3: 000000002b956000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 msft_do_close+0x32e/0x6a0 net/bluetooth/msft.c:698
 hci_dev_close_sync+0x1020/0x13c0 net/bluetooth/hci_sync.c:5596
 hci_dev_do_close+0x2e/0xb0 net/bluetooth/hci_core.c:502
 hci_power_on+0x1be/0x630 net/bluetooth/hci_core.c:940
 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3387
 process_scheduled_works kernel/workqueue.c:3470 [inline]
 worker_thread+0x5ef/0xe50 kernel/workqueue.c:3551
 kthread+0x373/0x450 kernel/kthread.c:436
 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
----------------
Code disassembly (best guess):
   0:	0f b6 14 11          	movzbl (%rcx,%rdx,1),%edx
   4:	38 d0                	cmp    %dl,%al
   6:	7c 08                	jl     0x10
   8:	84 d2                	test   %dl,%dl
   a:	0f 85 b4 10 00 00    	jne    0x10c4
  10:	44 8b 05 d8 d5 7a 05 	mov    0x57ad5d8(%rip),%r8d        # 0x57ad5ef
  17:	45 85 c0             	test   %r8d,%r8d
  1a:	75 13                	jne    0x2f
  1c:	48 8d 3d ac da 7d 05 	lea    0x57ddaac(%rip),%rdi        # 0x57ddacf
  23:	48 c7 c6 a0 d2 ef 8b 	mov    $0xffffffff8befd2a0,%rsi
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	90                   	nop
  30:	e9 1b f8 ff ff       	jmp    0xfffff850
  35:	4d 8d a7 f0 0a 00 00 	lea    0xaf0(%r15),%r12
  3c:	4c 89 e7             	mov    %r12,%rdi
  3f:	e8                   	.byte 0xe8

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/26 23:05 upstream 818bebeb63dd a2b77b9e .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in msft_do_close
* Struck through repros no longer work on HEAD.