[v6.6] general protection fault in h5_recv

1 view
Skip to first unread message

syzbot

unread,
Jul 2, 2025, 3:26:35 AM7/2/25
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f5b4c104b7d Linux 6.6.95
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1113b982580000
kernel config: https://syzkaller.appspot.com/x/.config?x=b80883c3ded77c16
dashboard link: https://syzkaller.appspot.com/bug?extid=619528b6b044f8fc00b8
compiler: Debian clang version 20.1.6 (++20250514063057+1e4d39e07757-1~exp1~20250514183223.118), Debian LLD 20.1.6

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/0efd4e01816e/disk-3f5b4c10.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/f7c9d20858cc/vmlinux-3f5b4c10.xz
kernel image: https://storage.googleapis.com/syzbot-assets/18f8dc74ef68/bzImage-3f5b4c10.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+619528...@syzkaller.appspotmail.com

general protection fault, probably for non-canonical address 0xdffffc000000005f: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000002f8-0x00000000000002ff]
CPU: 1 PID: 7204 Comm: syz.5.246 Not tainted 6.6.95-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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 7b 81 59 fa 4d 8b 65 00 31 ff 4c 89
RSP: 0018:ffffc90005007c60 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 00000000000002e8 RCX: 000000000000005f
RDX: 000000000000005e RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90005007d80 R08: ffff88805f38441f R09: 1ffff1100be70883
R10: dffffc0000000000 R11: ffffed100be70884 R12: 0000000000000001
R13: 00000000000002f8 R14: ffff88805f384410 R15: ffffc90005007e20
FS: 00007f3e231ff6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3e231fef98 CR3: 000000005fcd4000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
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:0x7f3e2338e929
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:00007f3e231ff038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f3e235b6080 RCX: 00007f3e2338e929
RDX: 0000200000000140 RSI: 0000000000005412 RDI: 0000000000000004
RBP: 00007f3e23410b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f3e235b6080 R15: 00007fff3d4429c8
</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 7b 81 59 fa 4d 8b 65 00 31 ff 4c 89
RSP: 0018:ffffc90005007c60 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 00000000000002e8 RCX: 000000000000005f
RDX: 000000000000005e RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90005007d80 R08: ffff88805f38441f R09: 1ffff1100be70883
R10: dffffc0000000000 R11: ffffed100be70884 R12: 0000000000000001
R13: 00000000000002f8 R14: ffff88805f384410 R15: ffffc90005007e20
FS: 00007f3e231ff6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f106ccb9286 CR3: 000000005fcd4000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
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 7b 81 59 fa call 0xfa5981b2
37: 4d 8b 65 00 mov 0x0(%r13),%r12
3b: 31 ff xor %edi,%edi
3d: 4c rex.WR
3e: 89 .byte 0x89


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Nov 22, 2025, 12:43:28 PM11/22/25
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 0a805b6ea8cd Linux 6.6.116
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11c38e92580000
kernel config: https://syzkaller.appspot.com/x/.config?x=12606d4b8832c7e4
dashboard link: https://syzkaller.appspot.com/bug?extid=619528b6b044f8fc00b8
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12cb98b4580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=166eb658580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/13874446b4b2/disk-0a805b6e.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/69a5e59e1ade/vmlinux-0a805b6e.xz
kernel image: https://storage.googleapis.com/syzbot-assets/322c0711f976/bzImage-0a805b6e.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+619528...@syzkaller.appspotmail.com

general protection fault, probably for non-canonical address 0xdffffc000000005f: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000002f8-0x00000000000002ff]
CPU: 1 PID: 7183 Comm: syz.3.416 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/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 5b f3 57 fa 4d 8b 65 00 31 ff 4c 89
RSP: 0018:ffffc9000b42fc60 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 00000000000002e8 RCX: 000000000000005f
RDX: 000000000000005e RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000b42fd80 R08: ffff88806031d01f R09: 1ffff1100c063a03
R10: dffffc0000000000 R11: ffffed100c063a04 R12: 0000000000000001
R13: 00000000000002f8 R14: ffff88806031d010 R15: ffffc9000b42fe20
FS: 00007ff0b17c96c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c008b46000 CR3: 0000000077319000 CR4: 00000000003506e0
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:0x7ff0b098f749
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:00007ff0b17c9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ff0b0be6180 RCX: 00007ff0b098f749
RDX: 0000200000019600 RSI: 0000000000005412 RDI: 0000000000000006
RBP: 00007ff0b0a13f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff0b0be6218 R14: 00007ff0b0be6180 R15: 00007ffeb43eb578
</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 5b f3 57 fa 4d 8b 65 00 31 ff 4c 89
RSP: 0018:ffffc9000b42fc60 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 00000000000002e8 RCX: 000000000000005f
RDX: 000000000000005e RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000b42fd80 R08: ffff88806031d01f R09: 1ffff1100c063a03
R10: dffffc0000000000 R11: ffffed100c063a04 R12: 0000000000000001
R13: 00000000000002f8 R14: ffff88806031d010 R15: ffffc9000b42fe20
FS: 00007ff0b17c96c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f53379e7dac CR3: 0000000077319000 CR4: 00000000003506f0
----------------
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 5b f3 57 fa call 0xfa57f392
37: 4d 8b 65 00 mov 0x0(%r13),%r12
3b: 31 ff xor %edi,%edi
3d: 4c rex.WR
3e: 89 .byte 0x89


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages