syzbot


general protection fault in h5_recv

Status: upstream: reported on 2025/07/02 07:26
Reported-by: syzbot+619528b6b044f8fc00b8@syzkaller.appspotmail.com
First crash: 58d, last: 4d12h
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in h5_recv bluetooth 10 C done 1448 50m 201d 0/29 upstream: reported C repro on 2025/02/09 15:45
linux-5.15 general protection fault in h5_recv origin:upstream 8 C 7 12d 86d 0/3 upstream: reported C repro on 2025/06/04 06:57
linux-6.1 general protection fault in h5_recv origin:upstream 8 C 13 14h43m 119d 0/3 upstream: reported C repro on 2025/05/03 02:45

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc000000005f: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000002f8-0x00000000000002ff]
CPU: 0 PID: 12285 Comm: syz.0.1492 Not tainted 6.6.102-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:h5_recv+0x147/0x8c0 drivers/bluetooth/hci_h5.c:572
Code: 18 48 c1 ea 03 48 89 54 24 28 48 89 d8 48 c1 e8 03 48 89 44 24 50 44 89 64 24 14 48 b8 00 00 00 00 00 fc ff df 48 8b 4c 24 30 <80> 3c 01 00 74 08 4c 89 ef e8 2b f3 58 fa 4d 8b 65 00 31 ff 4c 89
RSP: 0018:ffffc9000bbffc60 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 00000000000002e8 RCX: 000000000000005f
RDX: 000000000000005e RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000bbffd80 R08: ffff8880311bb01f R09: 1ffff11006237603
R10: dffffc0000000000 R11: ffffed1006237604 R12: 0000000000000001
R13: 00000000000002f8 R14: ffff8880311bb010 R15: ffffc9000bbffe20
FS:  00007fa22b0ba6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e70fff8 CR3: 000000005e001000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 hci_uart_tty_receive+0x188/0x210 drivers/bluetooth/hci_ldisc.c:624
 tiocsti+0x23e/0x2c0 drivers/tty/tty_io.c:2291
 tty_ioctl+0x62e/0xdd0 drivers/tty/tty_io.c:2693
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl+0xfd/0x170 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fa22a18ebe9
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:00007fa22b0ba038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fa22a3b6090 RCX: 00007fa22a18ebe9
RDX: 0000200000000140 RSI: 0000000000005412 RDI: 0000000000000006
RBP: 00007fa22a211e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fa22a3b6128 R14: 00007fa22a3b6090 R15: 00007ffcb364d548
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:h5_recv+0x147/0x8c0 drivers/bluetooth/hci_h5.c:572
Code: 18 48 c1 ea 03 48 89 54 24 28 48 89 d8 48 c1 e8 03 48 89 44 24 50 44 89 64 24 14 48 b8 00 00 00 00 00 fc ff df 48 8b 4c 24 30 <80> 3c 01 00 74 08 4c 89 ef e8 2b f3 58 fa 4d 8b 65 00 31 ff 4c 89
RSP: 0018:ffffc9000bbffc60 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 00000000000002e8 RCX: 000000000000005f
RDX: 000000000000005e RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000bbffd80 R08: ffff8880311bb01f R09: 1ffff11006237603
R10: dffffc0000000000 R11: ffffed1006237604 R12: 0000000000000001
R13: 00000000000002f8 R14: ffff8880311bb010 R15: ffffc9000bbffe20
FS:  00007fa22b0ba6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa22b098f98 CR3: 000000005e001000 CR4: 00000000003506e0
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	48 c1 ea 03          	shr    $0x3,%rdx
   4:	48 89 54 24 28       	mov    %rdx,0x28(%rsp)
   9:	48 89 d8             	mov    %rbx,%rax
   c:	48 c1 e8 03          	shr    $0x3,%rax
  10:	48 89 44 24 50       	mov    %rax,0x50(%rsp)
  15:	44 89 64 24 14       	mov    %r12d,0x14(%rsp)
  1a:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  21:	fc ff df
  24:	48 8b 4c 24 30       	mov    0x30(%rsp),%rcx
* 29:	80 3c 01 00          	cmpb   $0x0,(%rcx,%rax,1) <-- trapping instruction
  2d:	74 08                	je     0x37
  2f:	4c 89 ef             	mov    %r13,%rdi
  32:	e8 2b f3 58 fa       	call   0xfa58f362
  37:	4d 8b 65 00          	mov    0x0(%r13),%r12
  3b:	31 ff                	xor    %edi,%edi
  3d:	4c                   	rex.WR
  3e:	89                   	.byte 0x89

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/25 17:52 linux-6.6.y bb9c90ab9c5a bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in h5_recv
2025/08/19 22:38 linux-6.6.y bb9c90ab9c5a 254a27c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in h5_recv
2025/08/01 16:42 linux-6.6.y 3a8ababb8b6a 40127d41 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in h5_recv
2025/07/21 23:35 linux-6.6.y d96eb99e2f0e 56d87229 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in h5_recv
2025/07/02 07:25 linux-6.6.y 3f5b4c104b7d bc80e4f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in h5_recv
* Struck through repros no longer work on HEAD.