syzbot


general protection fault in h5_recv

Status: upstream: reported on 2025/06/04 06:57
Reported-by: syzbot+847d690a94ced3d5b66f@syzkaller.appspotmail.com
First crash: 40d, last: 1d11h
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 978 26m 155d 0/29 upstream: reported C repro on 2025/02/09 15:45
linux-6.6 general protection fault in h5_recv 2 1 12d 12d 0/2 upstream: reported on 2025/07/02 07:26
linux-6.1 general protection fault in h5_recv origin:upstream 8 C 8 2d02h 72d 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: 15214 Comm: syz.7.2550 Not tainted 5.15.185-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:h5_recv+0x149/0x8b0 drivers/bluetooth/hci_h5.c:569
Code: 89 54 24 70 48 89 4c 24 28 48 c1 e9 03 48 89 4c 24 30 48 89 44 24 38 48 c1 e8 03 48 89 44 24 68 4c 89 74 24 18 48 8b 44 24 40 <80> 3c 18 00 74 08 4c 89 f7 e8 79 a6 ba fa 4d 8b 36 31 ff 4c 89 f6
RSP: 0018:ffffc900030efc40 EFLAGS: 00010202
RAX: 000000000000005f RBX: dffffc0000000000 RCX: 000000000000005e
RDX: 1ffff1100be30b82 RSI: 000000000000005f RDI: 0000000000000000
RBP: ffffc900030efd80 R08: dffffc0000000000 R09: ffffed100be30b84
R10: ffffed100be30b84 R11: 1ffff1100be30b83 R12: 0000000000000001
R13: ffff88805f185c00 R14: 00000000000002f8 R15: 0000000000000061
FS:  00007f042dcc86c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000002a2b6000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 3a810b1eb6134bdc DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 hci_uart_tty_receive+0x188/0x210 drivers/bluetooth/hci_ldisc.c:621
 tiocsti+0x1f6/0x280 drivers/tty/tty_io.c:2312
 tty_ioctl+0x3a7/0xc20 drivers/tty/tty_io.c:2724
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f042fea2929
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:00007f042dcc8038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f04300ca160 RCX: 00007f042fea2929
RDX: 0000200000000040 RSI: 0000000000005412 RDI: 0000000000000008
RBP: 00007f042ff24b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f04300ca160 R15: 00007ffc9cf92408
 </TASK>
Modules linked in:
---[ end trace cd9b7f5d43e001d8 ]---
RIP: 0010:h5_recv+0x149/0x8b0 drivers/bluetooth/hci_h5.c:569
Code: 89 54 24 70 48 89 4c 24 28 48 c1 e9 03 48 89 4c 24 30 48 89 44 24 38 48 c1 e8 03 48 89 44 24 68 4c 89 74 24 18 48 8b 44 24 40 <80> 3c 18 00 74 08 4c 89 f7 e8 79 a6 ba fa 4d 8b 36 31 ff 4c 89 f6
RSP: 0018:ffffc900030efc40 EFLAGS: 00010202
RAX: 000000000000005f RBX: dffffc0000000000 RCX: 000000000000005e
RDX: 1ffff1100be30b82 RSI: 000000000000005f RDI: 0000000000000000
RBP: ffffc900030efd80 R08: dffffc0000000000 R09: ffffed100be30b84
R10: ffffed100be30b84 R11: 1ffff1100be30b83 R12: 0000000000000001
R13: ffff88805f185c00 R14: 00000000000002f8 R15: 0000000000000061
FS:  00007f042dcc86c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c40e8d7 CR3: 000000002a2b6000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 3a810b1eb6134bdc DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	89 54 24 70          	mov    %edx,0x70(%rsp)
   4:	48 89 4c 24 28       	mov    %rcx,0x28(%rsp)
   9:	48 c1 e9 03          	shr    $0x3,%rcx
   d:	48 89 4c 24 30       	mov    %rcx,0x30(%rsp)
  12:	48 89 44 24 38       	mov    %rax,0x38(%rsp)
  17:	48 c1 e8 03          	shr    $0x3,%rax
  1b:	48 89 44 24 68       	mov    %rax,0x68(%rsp)
  20:	4c 89 74 24 18       	mov    %r14,0x18(%rsp)
  25:	48 8b 44 24 40       	mov    0x40(%rsp),%rax
* 2a:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	4c 89 f7             	mov    %r14,%rdi
  33:	e8 79 a6 ba fa       	call   0xfabaa6b1
  38:	4d 8b 36             	mov    (%r14),%r14
  3b:	31 ff                	xor    %edi,%edi
  3d:	4c 89 f6             	mov    %r14,%rsi

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/12 03:52 linux-5.15.y 1c700860e8bc 98683f8f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in h5_recv
2025/06/04 06:56 linux-5.15.y 98f47d0e9b8c a30356b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in h5_recv
2025/07/13 06:57 linux-5.15.y 2f693b607545 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in h5_recv
* Struck through repros no longer work on HEAD.