syzbot


general protection fault in h5_recv

Status: upstream: reported C repro on 2025/02/09 15:45
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+b5691bb559396b262064@syzkaller.appspotmail.com
First crash: 114d, last: 30m
Cause bisection: introduced by (bisect log) :
commit c411c62cc13319533b1861e00cedc4883c3bc1bb
Author: Arseniy Krasnov <avkrasnov@salutedevices.com>
Date: Thu Jan 30 18:43:26 2025 +0000

  Bluetooth: hci_uart: fix race during initialization

Crash: BUG: unable to handle kernel NULL pointer dereference in h5_recv (log)
Repro: C syz .config
  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] Monthly bluetooth report (May 2025) 0 (1) 2025/05/22 12:58
[syzbot] Monthly bluetooth report (Apr 2025) 0 (1) 2025/04/22 10:11
[syzbot] [bluetooth?] general protection fault in h5_recv 1 (5) 2025/02/12 00:12
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 general protection fault in h5_recv origin:upstream C 6 6d22h 27d 0/3 upstream: reported C repro on 2025/05/03 02:45
Last patch testing requests (3)
Created Duration User Patch Repo Result
2025/03/12 02:45 17m retest repro linux-next error
2025/03/12 02:45 9m retest repro linux-next error
2025/02/10 11:03 29m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master OK log

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc000000005f: 0000 [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x00000000000002f8-0x00000000000002ff]
CPU: 1 UID: 0 PID: 5979 Comm: syz-executor356 Not tainted 6.15.0-rc7-syzkaller-00014-gd608703fcdd9 #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:h5_recv+0x104/0x910 drivers/bluetooth/hci_h5.c:572
Code: c1 e8 03 4c 01 f0 48 89 44 24 08 48 8d 83 08 03 00 00 48 89 44 24 30 48 c1 e8 03 48 89 44 24 10 e8 51 b0 5c f9 48 8b 44 24 08 <80> 38 00 0f 85 ae 01 00 00 48 89 ea 48 89 e9 4c 8b bb f8 02 00 00
RSP: 0018:ffffc90003d57c00 EFLAGS: 00010293
RAX: dffffc000000005f RBX: 0000000000000000 RCX: ffffffff885e955a
RDX: ffff888027b04880 RSI: ffffffff885e959f RDI: 0000000000000005
RBP: ffffc90003d57d88 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000001 R14: dffffc0000000000 R15: ffffffff8c9171e0
FS:  00007f894c6446c0(0000) GS:ffff8880d6ada000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f894c702a78 CR3: 00000000239fd000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 hci_uart_tty_receive+0x251/0x7e0 drivers/bluetooth/hci_ldisc.c:627
 tiocsti drivers/tty/tty_io.c:2299 [inline]
 tty_ioctl+0x580/0x1610 drivers/tty/tty_io.c:2716
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:906 [inline]
 __se_sys_ioctl fs/ioctl.c:892 [inline]
 __x64_sys_ioctl+0x190/0x200 fs/ioctl.c:892
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f894c6ac3e9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 18 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f894c644218 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f894c736338 RCX: 00007f894c6ac3e9
RDX: 0000200000000140 RSI: 0000000000005412 RDI: 0000000000000004
RBP: 00007f894c736330 R08: 00007ffc5db4b4f7 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f894c703074
R13: 00002000000000c0 R14: 1000000000000002 R15: 0000200000000140
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:h5_recv+0x104/0x910 drivers/bluetooth/hci_h5.c:572
Code: c1 e8 03 4c 01 f0 48 89 44 24 08 48 8d 83 08 03 00 00 48 89 44 24 30 48 c1 e8 03 48 89 44 24 10 e8 51 b0 5c f9 48 8b 44 24 08 <80> 38 00 0f 85 ae 01 00 00 48 89 ea 48 89 e9 4c 8b bb f8 02 00 00
RSP: 0018:ffffc90003d57c00 EFLAGS: 00010293
RAX: dffffc000000005f RBX: 0000000000000000 RCX: ffffffff885e955a
RDX: ffff888027b04880 RSI: ffffffff885e959f RDI: 0000000000000005
RBP: ffffc90003d57d88 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000001 R14: dffffc0000000000 R15: ffffffff8c9171e0
FS:  00007f894c6446c0(0000) GS:ffff8880d6ada000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f894c702a78 CR3: 00000000239fd000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	c1 e8 03             	shr    $0x3,%eax
   3:	4c 01 f0             	add    %r14,%rax
   6:	48 89 44 24 08       	mov    %rax,0x8(%rsp)
   b:	48 8d 83 08 03 00 00 	lea    0x308(%rbx),%rax
  12:	48 89 44 24 30       	mov    %rax,0x30(%rsp)
  17:	48 c1 e8 03          	shr    $0x3,%rax
  1b:	48 89 44 24 10       	mov    %rax,0x10(%rsp)
  20:	e8 51 b0 5c f9       	call   0xf95cb076
  25:	48 8b 44 24 08       	mov    0x8(%rsp),%rax
* 2a:	80 38 00             	cmpb   $0x0,(%rax) <-- trapping instruction
  2d:	0f 85 ae 01 00 00    	jne    0x1e1
  33:	48 89 ea             	mov    %rbp,%rdx
  36:	48 89 e9             	mov    %rbp,%rcx
  39:	4c 8b bb f8 02 00 00 	mov    0x2f8(%rbx),%r15

Crashes (468):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/22 09:14 upstream d608703fcdd9 0919b50b .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/02/11 07:05 linux-next df5d6180169a 43f51a00 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in h5_recv
2025/02/09 15:44 linux-next ed58d103e6da ef44b750 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in h5_recv
2025/05/29 06:32 upstream 3d413f0cfd7e 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in h5_recv
2025/05/28 23:44 upstream 3d413f0cfd7e 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in h5_recv
2025/05/28 22:33 upstream 3d413f0cfd7e 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in h5_recv
2025/05/27 09:01 upstream 0ff41df1cb26 874a1386 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in h5_recv
2025/05/26 04:17 upstream 0f8c0258bf04 2d4582d0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in h5_recv
2025/05/18 17:44 upstream 5723cc3450bc f41472b0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in h5_recv
2025/05/10 07:07 upstream 3013c33dcbd9 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in h5_recv
2025/05/30 18:04 upstream f66bc387efbe 3d2f584d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/30 06:51 upstream e0797d3b91de 3d2f584d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/30 00:52 upstream e0797d3b91de 3d2f584d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/29 15:24 upstream 90b83efa6701 3d2f584d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/29 03:08 upstream feacb1774bd5 3d2f584d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/28 19:04 upstream feacb1774bd5 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in h5_recv
2025/05/28 13:39 upstream c89756bcf406 874a1386 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/28 07:33 upstream c89756bcf406 874a1386 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/28 00:38 upstream 914873bc7df9 874a1386 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in h5_recv
2025/05/27 23:31 upstream 914873bc7df9 874a1386 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/27 17:26 upstream 914873bc7df9 874a1386 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/27 14:42 upstream 914873bc7df9 874a1386 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/27 11:43 upstream 785cdec46e92 874a1386 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/27 10:34 upstream 785cdec46e92 874a1386 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/27 04:45 upstream 785cdec46e92 874a1386 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/26 22:40 upstream 0ff41df1cb26 874a1386 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/26 15:56 upstream 0ff41df1cb26 874a1386 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/26 11:58 upstream 0ff41df1cb26 874a1386 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/25 21:14 upstream d0c22de9995b 2d4582d0 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/25 20:05 upstream d0c22de9995b 2d4582d0 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/25 16:08 upstream d0c22de9995b ed351ea7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/25 05:13 upstream b1427432d3b6 ed351ea7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/24 19:55 upstream b1427432d3b6 ed351ea7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/24 17:48 upstream 4856ebd99715 ed351ea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in h5_recv
2025/05/24 15:24 upstream 4856ebd99715 ed351ea7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/24 11:43 upstream 4856ebd99715 ed351ea7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/24 10:15 upstream 4856ebd99715 ed351ea7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/24 07:10 upstream 4856ebd99715 ed351ea7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/24 03:29 upstream 4856ebd99715 ed351ea7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/23 21:13 upstream 94305e83eccb f8cc0c83 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/23 19:04 upstream 94305e83eccb f8cc0c83 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/23 17:40 upstream 94305e83eccb f8cc0c83 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/23 15:34 upstream 94305e83eccb f8cc0c83 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/23 10:21 upstream 5cdb2c77c4c3 fa44301a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/23 07:48 upstream 5cdb2c77c4c3 fa44301a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/22 23:41 upstream 5cdb2c77c4c3 fa44301a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/22 14:29 upstream d608703fcdd9 0919b50b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/22 12:31 upstream d608703fcdd9 0919b50b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/22 08:54 upstream d608703fcdd9 0919b50b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/22 00:31 upstream 4a95bc121ccd 0919b50b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/21 19:37 upstream 4a95bc121ccd dc5d3808 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in h5_recv
2025/05/23 03:17 upstream 5cdb2c77c4c3 fa44301a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in h5_recv
2025/05/29 12:14 linux-next 2a628f951ed5 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in h5_recv
2025/05/27 00:23 linux-next 3be1a7a31fbd 874a1386 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in h5_recv
2025/05/22 14:51 linux-next 460178e842c7 0919b50b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in h5_recv
2025/02/04 20:17 linux-next 40b8e93e17bf 4baca3d6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in h5_recv
2025/04/05 17:18 upstream a8662bcd2ff1 1c65791e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in h5_recv
2025/05/30 14:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d7fa1af5b33e 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in h5_recv
2025/05/28 09:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d7fa1af5b33e 874a1386 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in h5_recv
2025/05/25 14:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d7fa1af5b33e ed351ea7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in h5_recv
2025/05/24 21:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d7fa1af5b33e ed351ea7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in h5_recv
* Struck through repros no longer work on HEAD.