[v5.15] general protection fault in bcsp_recv

4 views
Skip to first unread message

syzbot

unread,
Jun 13, 2025, 8:03:28 AM6/13/25
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 1c700860e8bc Linux 5.15.185
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=165b1e0c580000
kernel config: https://syzkaller.appspot.com/x/.config?x=db74c56dea20051
dashboard link: https://syzkaller.appspot.com/bug?extid=0cedb2b90dfed8de7e56
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/98c9bcd8fb21/disk-1c700860.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/75eaa3b1c3f3/vmlinux-1c700860.xz
kernel image: https://storage.googleapis.com/syzbot-assets/ed251e9d15fe/bzImage-1c700860.xz

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

general protection fault, probably for non-canonical address 0xdffffc0000000021: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000108-0x000000000000010f]
CPU: 0 PID: 8677 Comm: syz.9.762 Not tainted 5.15.185-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:bcsp_recv+0xde/0x15d0 drivers/bluetooth/hci_bcsp.c:590
Code: e8 48 89 6c 24 10 48 89 cd 48 c1 e8 03 48 89 44 24 40 48 89 4c 24 30 4c 89 64 24 18 4c 89 6c 24 38 89 5c 24 04 48 8b 44 24 28 <42> 80 3c 38 00 74 08 48 89 ef e8 03 20 bb fa 48 8b 5d 00 31 ff 48
RSP: 0018:ffffc9000371fce0 EFLAGS: 00010206
RAX: 0000000000000021 RBX: 0000000000000001 RCX: 0000000000000108
RDX: 0000000000000178 RSI: 000000000000002f RDI: 0000000000000000
RBP: 0000000000000108 R08: dffffc0000000000 R09: ffffed100bec4c84
R10: ffffed100bec4c84 R11: 1ffff1100bec4c83 R12: 0000000000000110
R13: 000000000000002f R14: ffffc9000371fe20 R15: dffffc0000000000
FS: 00007f64e37426c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005593ff23d950 CR3: 0000000064b33000 CR4: 00000000003506f0
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: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:0x7f64e58fb929
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:00007f64e3742038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f64e5b23080 RCX: 00007f64e58fb929
RDX: 0000200000000140 RSI: 0000000000005412 RDI: 0000000000000005
RBP: 00007f64e597db39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f64e5b23080 R15: 00007ffd2929e678
</TASK>
Modules linked in:
---[ end trace 2ef0cac2c1410786 ]---
RIP: 0010:bcsp_recv+0xde/0x15d0 drivers/bluetooth/hci_bcsp.c:590
Code: e8 48 89 6c 24 10 48 89 cd 48 c1 e8 03 48 89 44 24 40 48 89 4c 24 30 4c 89 64 24 18 4c 89 6c 24 38 89 5c 24 04 48 8b 44 24 28 <42> 80 3c 38 00 74 08 48 89 ef e8 03 20 bb fa 48 8b 5d 00 31 ff 48
RSP: 0018:ffffc9000371fce0 EFLAGS: 00010206
RAX: 0000000000000021 RBX: 0000000000000001 RCX: 0000000000000108
RDX: 0000000000000178 RSI: 000000000000002f RDI: 0000000000000000
RBP: 0000000000000108 R08: dffffc0000000000 R09: ffffed100bec4c84
R10: ffffed100bec4c84 R11: 1ffff1100bec4c83 R12: 0000000000000110
R13: 000000000000002f R14: ffffc9000371fe20 R15: dffffc0000000000
FS: 00007f64e37426c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe6835f6000 CR3: 0000000064b33000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: e8 48 89 6c 24 call 0x246c894d
5: 10 48 89 adc %cl,-0x77(%rax)
8: cd 48 int $0x48
a: c1 e8 03 shr $0x3,%eax
d: 48 89 44 24 40 mov %rax,0x40(%rsp)
12: 48 89 4c 24 30 mov %rcx,0x30(%rsp)
17: 4c 89 64 24 18 mov %r12,0x18(%rsp)
1c: 4c 89 6c 24 38 mov %r13,0x38(%rsp)
21: 89 5c 24 04 mov %ebx,0x4(%rsp)
25: 48 8b 44 24 28 mov 0x28(%rsp),%rax
* 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction
2f: 74 08 je 0x39
31: 48 89 ef mov %rbp,%rdi
34: e8 03 20 bb fa call 0xfabb203c
39: 48 8b 5d 00 mov 0x0(%rbp),%rbx
3d: 31 ff xor %edi,%edi
3f: 48 rex.W


---
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,
Jun 13, 2025, 9:22:30 AM6/13/25
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 1c700860e8bc Linux 5.15.185
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=102f1e0c580000
kernel config: https://syzkaller.appspot.com/x/.config?x=db74c56dea20051
dashboard link: https://syzkaller.appspot.com/bug?extid=0cedb2b90dfed8de7e56
compiler: Debian clang version 20.1.6 (++20250514063057+1e4d39e07757-1~exp1~20250514183223.118), Debian LLD 20.1.6
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12dbd10c580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16a49d70580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/98c9bcd8fb21/disk-1c700860.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/75eaa3b1c3f3/vmlinux-1c700860.xz
kernel image: https://storage.googleapis.com/syzbot-assets/ed251e9d15fe/bzImage-1c700860.xz

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

general protection fault, probably for non-canonical address 0xdffffc0000000021: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000108-0x000000000000010f]
CPU: 0 PID: 4232 Comm: syz-executor339 Not tainted 5.15.185-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:bcsp_recv+0xde/0x15d0 drivers/bluetooth/hci_bcsp.c:590
Code: e8 48 89 6c 24 10 48 89 cd 48 c1 e8 03 48 89 44 24 40 48 89 4c 24 30 4c 89 64 24 18 4c 89 6c 24 38 89 5c 24 04 48 8b 44 24 28 <42> 80 3c 38 00 74 08 48 89 ef e8 03 20 bb fa 48 8b 5d 00 31 ff 48
RSP: 0018:ffffc90002f2fce0 EFLAGS: 00010206
RAX: 0000000000000021 RBX: 0000000000000001 RCX: 0000000000000108
RDX: 0000000000000178 RSI: 000000000000002f RDI: 0000000000000000
RBP: 0000000000000108 R08: dffffc0000000000 R09: ffffed100f247e04
R10: ffffed100f247e04 R11: 1ffff1100f247e03 R12: 0000000000000110
R13: 000000000000002f R14: ffffc90002f2fe20 R15: dffffc0000000000
FS: 00007f487cad16c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f487d3c2994 CR3: 000000001f282000 CR4: 00000000003506f0
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: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:0x7f487d338f29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 1a 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:00007f487cad1218 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f487d3c81d8 RCX: 00007f487d338f29
RDX: 0000200000000100 RSI: 0000000000005412 RDI: 0000000000000004
RBP: 00007f487d3c81d0 R08: 00007fff98a922a7 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f487d38e714
R13: 0000200000000000 R14: 00002000000000c0 R15: 0000200000000100
</TASK>
Modules linked in:
---[ end trace fcf99e5a8da8e2be ]---
RIP: 0010:bcsp_recv+0xde/0x15d0 drivers/bluetooth/hci_bcsp.c:590
Code: e8 48 89 6c 24 10 48 89 cd 48 c1 e8 03 48 89 44 24 40 48 89 4c 24 30 4c 89 64 24 18 4c 89 6c 24 38 89 5c 24 04 48 8b 44 24 28 <42> 80 3c 38 00 74 08 48 89 ef e8 03 20 bb fa 48 8b 5d 00 31 ff 48
RSP: 0018:ffffc90002f2fce0 EFLAGS: 00010206
RAX: 0000000000000021 RBX: 0000000000000001 RCX: 0000000000000108
RDX: 0000000000000178 RSI: 000000000000002f RDI: 0000000000000000
RBP: 0000000000000108 R08: dffffc0000000000 R09: ffffed100f247e04
R10: ffffed100f247e04 R11: 1ffff1100f247e03 R12: 0000000000000110
R13: 000000000000002f R14: ffffc90002f2fe20 R15: dffffc0000000000
FS: 00007f487cad16c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f487d3c2994 CR3: 000000001f282000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: e8 48 89 6c 24 call 0x246c894d
5: 10 48 89 adc %cl,-0x77(%rax)
8: cd 48 int $0x48
a: c1 e8 03 shr $0x3,%eax
d: 48 89 44 24 40 mov %rax,0x40(%rsp)
12: 48 89 4c 24 30 mov %rcx,0x30(%rsp)
17: 4c 89 64 24 18 mov %r12,0x18(%rsp)
1c: 4c 89 6c 24 38 mov %r13,0x38(%rsp)
21: 89 5c 24 04 mov %ebx,0x4(%rsp)
25: 48 8b 44 24 28 mov 0x28(%rsp),%rax
* 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction
2f: 74 08 je 0x39
31: 48 89 ef mov %rbp,%rdi
34: e8 03 20 bb fa call 0xfabb203c
39: 48 8b 5d 00 mov 0x0(%rbp),%rbx
3d: 31 ff xor %edi,%edi
3f: 48 rex.W


---
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.

syzbot

unread,
Jan 1, 2026, 8:10:04 AMJan 1
to syzkaller...@googlegroups.com
syzbot suspects this issue was fixed by commit:

commit b65ca9708bfbf47d8b7bd44b7c574bd16798e9c9
Author: Ivan Pravdin <ipravdin...@gmail.com>
Date: Sat Aug 30 20:03:40 2025 +0000

Bluetooth: bcsp: receive data only if registered

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1537529a580000
start commit: 1c700860e8bc Linux 5.15.185
git tree: linux-5.15.y
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12999d70580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10500e82580000

If the result looks correct, please mark the issue as fixed by replying with:

#syz fix: Bluetooth: bcsp: receive data only if registered

For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Reply all
Reply to author
Forward
0 new messages