syzbot


WARNING: locking bug in nci_close_device (3)

Status: upstream: reported on 2026/01/07 15:44
Subsystems: nfc net
[Documentation on labels]
Reported-by: syzbot+f9c5fd1a0874f9069dce@syzkaller.appspotmail.com
First crash: 20d, last: 5h20m
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly nfc report (Jan 2026) 0 (1) 2026/01/12 08:40
[syzbot] [net?] [nfc?] WARNING: locking bug in nci_close_device (3) 0 (1) 2026/01/07 15:44
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: locking bug in nci_close_device (2) nfc net 4 C error 11 649d 665d 0/29 auto-obsoleted due to no activity on 2024/06/24 08:40
upstream WARNING: locking bug in nci_close_device net nfc 4 1 1089d 1085d 0/29 auto-obsoleted due to no activity on 2023/05/30 15:14

Sample crash report:
Bluetooth: hci3: Opcode 0x0c1a failed: -4
Bluetooth: hci3: Error when powering off device on rfkill (-4)
Bluetooth: hci4: Opcode 0x0c1a failed: -4
Bluetooth: hci4: Error when powering off device on rfkill (-4)
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(1)
WARNING: kernel/locking/lockdep.c:238 at hlock_class kernel/locking/lockdep.c:238 [inline], CPU#1: syz.4.213/6803
WARNING: kernel/locking/lockdep.c:238 at check_wait_context kernel/locking/lockdep.c:4854 [inline], CPU#1: syz.4.213/6803
WARNING: kernel/locking/lockdep.c:238 at __lock_acquire+0x39d/0x2cf0 kernel/locking/lockdep.c:5187, CPU#1: syz.4.213/6803
Modules linked in:
CPU: 1 UID: 0 PID: 6803 Comm: syz.4.213 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/13/2026
RIP: 0010:hlock_class kernel/locking/lockdep.c:238 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4854 [inline]
RIP: 0010:__lock_acquire+0x3a4/0x2cf0 kernel/locking/lockdep.c:5187
Code: 18 00 4c 8b 74 24 08 75 27 90 e8 57 c5 f5 02 85 c0 74 1c 83 3d 40 d1 2f 0e 00 75 13 48 8d 3d f3 e4 32 0e 48 c7 c6 32 c8 be 8d <67> 48 0f b9 3a 90 31 c0 0f b6 98 c4 00 00 00 41 8b 45 20 25 ff 1f
RSP: 0018:ffffc9001bebf680 EFLAGS: 00010046
RAX: 0000000000000001 RBX: 0000000000040000 RCX: 0000000000080000
RDX: ffffc9000d51e000 RSI: ffffffff8dbec832 RDI: ffffffff8fd21d60
RBP: 0000000000000003 R08: ffffffff8fcf09a3 R09: 1ffffffff1f9e134
R10: dffffc0000000000 R11: fffffbfff1f9e135 R12: 0000000000000b11
R13: ffff888025e5aa28 R14: ffff888025e59e80 R15: ffff888025e5a9b0
FS:  00007f8cc1b8d6c0(0000) GS:ffff888125a28000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff2d4e73c8 CR3: 00000000336a8000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 lock_acquire+0x106/0x330 kernel/locking/lockdep.c:5868
 touch_wq_lockdep_map+0xcb/0x180 kernel/workqueue.c:3940
 __flush_workqueue+0x14b/0x14f0 kernel/workqueue.c:3982
 nci_close_device+0x302/0x630 net/nfc/nci/core.c:567
 nci_dev_down+0x3b/0x50 net/nfc/nci/core.c:639
 nfc_dev_down+0x152/0x290 net/nfc/core.c:161
 nfc_rfkill_set_block+0x2d/0x100 net/nfc/core.c:179
 rfkill_set_block+0x1d2/0x440 net/rfkill/core.c:346
 rfkill_fop_write+0x461/0x5a0 net/rfkill/core.c:1301
 vfs_write+0x29a/0xb90 fs/read_write.c:684
 ksys_write+0x150/0x270 fs/read_write.c:738
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8cc0d9acb9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8cc1b8d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f8cc1015fa0 RCX: 00007f8cc0d9acb9
RDX: 0000000000000008 RSI: 0000200000000080 RDI: 0000000000000003
RBP: 00007f8cc0e08bf7 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f8cc1016038 R14: 00007f8cc1015fa0 R15: 00007ffdcf4a9cb8
 </TASK>
----------------
Code disassembly (best guess):
   0:	18 00                	sbb    %al,(%rax)
   2:	4c 8b 74 24 08       	mov    0x8(%rsp),%r14
   7:	75 27                	jne    0x30
   9:	90                   	nop
   a:	e8 57 c5 f5 02       	call   0x2f5c566
   f:	85 c0                	test   %eax,%eax
  11:	74 1c                	je     0x2f
  13:	83 3d 40 d1 2f 0e 00 	cmpl   $0x0,0xe2fd140(%rip)        # 0xe2fd15a
  1a:	75 13                	jne    0x2f
  1c:	48 8d 3d f3 e4 32 0e 	lea    0xe32e4f3(%rip),%rdi        # 0xe32e516
  23:	48 c7 c6 32 c8 be 8d 	mov    $0xffffffff8dbec832,%rsi
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	90                   	nop
  30:	31 c0                	xor    %eax,%eax
  32:	0f b6 98 c4 00 00 00 	movzbl 0xc4(%rax),%ebx
  39:	41 8b 45 20          	mov    0x20(%r13),%eax
  3d:	25                   	.byte 0x25
  3e:	ff 1f                	lcall  *(%rdi)

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/01/24 05:56 net 8016dc5ee19a 4f25b9b4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: locking bug in nci_close_device
2026/01/23 06:50 net 4a3dba481882 82c9c083 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: locking bug in nci_close_device
2026/01/03 15:40 net dbf8fe85a16a d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: locking bug in nci_close_device
* Struck through repros no longer work on HEAD.