syzbot


general protection fault in hci_devcd_register

Status: upstream: reported on 2025/01/10 14:25
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+8f07eb2fda9f5d7721f6@syzkaller.appspotmail.com
First crash: 55d, last: 1d20h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bluetooth?] general protection fault in hci_devcd_register 0 (1) 2025/01/10 14:25

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc000000000e: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000070-0x0000000000000077]
CPU: 0 UID: 0 PID: 9180 Comm: syz.0.645 Not tainted 6.14.0-rc2-syzkaller-00056-gab68d7eb7b1a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:564 [inline]
RIP: 0010:__mutex_lock+0x151/0xb10 kernel/locking/mutex.c:730
Code: d0 7c 08 84 d2 0f 85 71 07 00 00 8b 35 28 ec 39 0f 85 f6 75 29 48 8d 7b 60 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 59 07 00 00 48 3b 5b 60 0f 85 e7 01 00 00 bf 01
RSP: 0018:ffffc900047cfa80 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000010 RCX: 1ffffffff3503f14
RDX: 000000000000000e RSI: 0000000000000000 RDI: 0000000000000070
RBP: ffffc900047cfbc0 R08: ffffffff8a548b77 R09: 0000000000000006
R10: ffffc900047cfbd8 R11: 0000000000000002 R12: dffffc0000000000
R13: 0000000000000002 R14: 0000000000000000 R15: ffffc900047cfb00
FS:  00007f1c71cb96c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1c71c97f98 CR3: 0000000028d7a000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 hci_devcd_register+0x47/0x170 net/bluetooth/coredump.c:415
 force_devcd_write+0x175/0x350 drivers/bluetooth/hci_vhci.c:346
 full_proxy_write+0x13c/0x200 fs/debugfs/file.c:398
 vfs_write+0x24c/0x1150 fs/read_write.c:677
 ksys_write+0x12b/0x250 fs/read_write.c:731
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1c70d8cde9
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:00007f1c71cb9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f1c70fa5fa0 RCX: 00007f1c70d8cde9
RDX: 000000000000000e RSI: 0000000000000000 RDI: 0000000000000006
RBP: 00007f1c70e0e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f1c70fa5fa0 R15: 00007ffcd8dff3e8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:564 [inline]
RIP: 0010:__mutex_lock+0x151/0xb10 kernel/locking/mutex.c:730
Code: d0 7c 08 84 d2 0f 85 71 07 00 00 8b 35 28 ec 39 0f 85 f6 75 29 48 8d 7b 60 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 59 07 00 00 48 3b 5b 60 0f 85 e7 01 00 00 bf 01
RSP: 0018:ffffc900047cfa80 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000010 RCX: 1ffffffff3503f14
RDX: 000000000000000e RSI: 0000000000000000 RDI: 0000000000000070
RBP: ffffc900047cfbc0 R08: ffffffff8a548b77 R09: 0000000000000006
R10: ffffc900047cfbd8 R11: 0000000000000002 R12: dffffc0000000000
R13: 0000000000000002 R14: 0000000000000000 R15: ffffc900047cfb00
FS:  00007f1c71cb96c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00003ffffffffec0 CR3: 0000000028d7a000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	d0 7c 08 84          	sarb   -0x7c(%rax,%rcx,1)
   4:	d2 0f                	rorb   %cl,(%rdi)
   6:	85 71 07             	test   %esi,0x7(%rcx)
   9:	00 00                	add    %al,(%rax)
   b:	8b 35 28 ec 39 0f    	mov    0xf39ec28(%rip),%esi        # 0xf39ec39
  11:	85 f6                	test   %esi,%esi
  13:	75 29                	jne    0x3e
  15:	48 8d 7b 60          	lea    0x60(%rbx),%rdi
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 59 07 00 00    	jne    0x78d
  34:	48 3b 5b 60          	cmp    0x60(%rbx),%rbx
  38:	0f 85 e7 01 00 00    	jne    0x225
  3e:	bf                   	.byte 0xbf
  3f:	01                   	.byte 0x1

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/14 05:23 upstream ab68d7eb7b1a d9a046cf .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in hci_devcd_register
2025/02/11 10:16 upstream febbc555cf0f 43f51a00 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in hci_devcd_register
2025/02/11 10:14 upstream febbc555cf0f 43f51a00 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in hci_devcd_register
2025/01/27 08:12 upstream c2da8b3f914f 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in hci_devcd_register
2025/01/14 17:12 upstream c45323b7560e 0dce2409 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in hci_devcd_register
2025/01/01 21:03 upstream 56e6a3499e14 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in hci_devcd_register
2024/12/25 16:11 upstream 9b2ffa6148b1 444551c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in hci_devcd_register
2024/12/22 10:18 upstream 48f506ad0b68 b4fbdbd4 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in hci_devcd_register
2025/02/09 15:46 upstream 9946eaf552b1 ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto KASAN: global-out-of-bounds Read in hci_devcd_register
2025/01/06 10:11 upstream ab75170520d4 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto KASAN: global-out-of-bounds Read in hci_devcd_register
* Struck through repros no longer work on HEAD.