syzbot


general protection fault in qca_close

Status: auto-obsoleted due to no activity on 2025/05/20 12:54
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+b9cff96f1ca33356d180@syzkaller.appspotmail.com
First crash: 116d, last: 94d
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 qca_close (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] Bluetooth: hci_ldisc: Clear and shrink the ready bit 1 (1) 2025/02/07 03:55
[syzbot] [bluetooth?] general protection fault in qca_close 0 (2) 2025/02/07 02:38
Last patch testing requests (7)
Created Duration User Patch Repo Result
2025/05/20 11:41 22m retest repro linux-next OK log
2025/05/20 11:41 21m retest repro linux-next OK log
2025/05/20 11:41 28m retest repro linux-next OK log
2025/03/11 10:00 8m retest repro linux-next error
2025/03/11 10:00 12m retest repro linux-next error
2025/03/11 10:00 40m retest repro linux-next error
2025/02/07 02:38 26m lizhi.xu@windriver.com patch linux-next OK log

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc000000002b: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000158-0x000000000000015f]
CPU: 1 UID: 0 PID: 11941 Comm: syz.2.1388 Not tainted 6.14.0-rc3-next-20250218-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:serial_clock_vote drivers/bluetooth/hci_qca.c:301 [inline]
RIP: 0010:qca_close+0x72/0x2e0 drivers/bluetooth/hci_qca.c:723
Code: e4 77 eb f8 48 89 2c 24 42 80 7c 2d 00 00 74 08 4c 89 f7 e8 70 f9 52 f9 4d 8b 26 49 8d bc 24 5a 01 00 00 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 4c 89 eb 0f 85 de 01 00 00 45 0f b6 ac 24 5a
RSP: 0018:ffffc90003d6fb90 EFLAGS: 00010206
RAX: 000000000000002b RBX: ffff88807aea8400 RCX: ffff888032e89e00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000015a
RBP: 1ffff1100f5d50b7 R08: ffffffff8189c813 R09: 1ffffffff28ad628
R10: dffffc0000000000 R11: ffffffff88d686b0 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff88807aea85b8 R15: 0000000000000000
FS:  00005555952b8500(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fad4b8d7d60 CR3: 000000005e614000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 hci_uart_tty_close+0x205/0x290 drivers/bluetooth/hci_ldisc.c:557
 tty_ldisc_kill+0xa3/0x1a0 drivers/tty/tty_ldisc.c:613
 tty_ldisc_release+0x1a1/0x200 drivers/tty/tty_ldisc.c:781
 tty_release_struct+0x2b/0xe0 drivers/tty/tty_io.c:1690
 tty_release+0xd06/0x12c0 drivers/tty/tty_io.c:1861
 __fput+0x3e9/0x9f0 fs/file_table.c:464
 task_work_run+0x24f/0x310 kernel/task_work.c:227
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x13f/0x340 kernel/entry/common.c:218
 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd8c4d8d169
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:00007ffc1af56e48 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007fd8c4fa7ba0 RCX: 00007fd8c4d8d169
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007fd8c4fa7ba0 R08: 0000000000000230 R09: 0000001c1af5713f
R10: 00000000003ffbac R11: 0000000000000246 R12: 00000000000ba76d
R13: 00007fd8c4fa6080 R14: ffffffffffffffff R15: 00007ffc1af56f60
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:serial_clock_vote drivers/bluetooth/hci_qca.c:301 [inline]
RIP: 0010:qca_close+0x72/0x2e0 drivers/bluetooth/hci_qca.c:723
Code: e4 77 eb f8 48 89 2c 24 42 80 7c 2d 00 00 74 08 4c 89 f7 e8 70 f9 52 f9 4d 8b 26 49 8d bc 24 5a 01 00 00 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 4c 89 eb 0f 85 de 01 00 00 45 0f b6 ac 24 5a
RSP: 0018:ffffc90003d6fb90 EFLAGS: 00010206
RAX: 000000000000002b RBX: ffff88807aea8400 RCX: ffff888032e89e00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000015a
RBP: 1ffff1100f5d50b7 R08: ffffffff8189c813 R09: 1ffffffff28ad628
R10: dffffc0000000000 R11: ffffffff88d686b0 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff88807aea85b8 R15: 0000000000000000
FS:  00005555952b8500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2ac905 CR3: 000000005e614000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	e4 77                	in     $0x77,%al
   2:	eb f8                	jmp    0xfffffffc
   4:	48 89 2c 24          	mov    %rbp,(%rsp)
   8:	42 80 7c 2d 00 00    	cmpb   $0x0,0x0(%rbp,%r13,1)
   e:	74 08                	je     0x18
  10:	4c 89 f7             	mov    %r14,%rdi
  13:	e8 70 f9 52 f9       	call   0xf952f988
  18:	4d 8b 26             	mov    (%r14),%r12
  1b:	49 8d bc 24 5a 01 00 	lea    0x15a(%r12),%rdi
  22:	00
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	4c 89 eb             	mov    %r13,%rbx
  34:	0f 85 de 01 00 00    	jne    0x218
  3a:	45                   	rex.RB
  3b:	0f                   	.byte 0xf
  3c:	b6 ac                	mov    $0xac,%dh
  3e:	24 5a                	and    $0x5a,%al

Crashes (94):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/25 09:06 linux-next e5d3fd687aac d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/25 06:55 linux-next e5d3fd687aac d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/23 13:48 linux-next e5d3fd687aac d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/23 07:07 linux-next e5d3fd687aac d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/22 00:33 linux-next e5d3fd687aac 0808a665 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/21 22:52 linux-next e5d3fd687aac 0808a665 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/21 21:13 linux-next e5d3fd687aac 0808a665 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/21 18:00 linux-next e5d3fd687aac 0808a665 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/21 06:10 linux-next e5d3fd687aac 0808a665 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/21 00:24 linux-next e5d3fd687aac 50668798 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/20 13:15 linux-next e5d3fd687aac 50668798 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/19 19:57 linux-next e5d3fd687aac cbd8edab .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/19 19:57 linux-next e5d3fd687aac cbd8edab .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/19 05:30 linux-next e5d3fd687aac 9a14138f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/16 18:29 linux-next 0ae0fa3bf0b4 40a34ec9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/15 14:29 linux-next 0ae0fa3bf0b4 40a34ec9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/13 20:43 linux-next 7b7a883c7f4d 2afad16e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/13 05:53 linux-next c674aa7c289e b27c2402 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/12 21:33 linux-next c674aa7c289e b27c2402 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/12 18:39 linux-next c674aa7c289e b27c2402 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/12 18:20 linux-next c674aa7c289e b27c2402 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/12 18:20 linux-next c674aa7c289e b27c2402 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/12 00:50 linux-next df5d6180169a f2baddf5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/12 00:49 linux-next df5d6180169a f2baddf5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/11 22:20 linux-next df5d6180169a f2baddf5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/11 22:19 linux-next df5d6180169a f2baddf5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/10 18:19 linux-next df5d6180169a 43f51a00 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/10 18:19 linux-next df5d6180169a 43f51a00 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/10 11:54 linux-next df5d6180169a ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/10 11:54 linux-next df5d6180169a ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/10 11:48 linux-next df5d6180169a ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/10 11:48 linux-next df5d6180169a ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/10 11:47 linux-next df5d6180169a ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/10 11:47 linux-next df5d6180169a ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/07 16:19 linux-next ed58d103e6da a4f327c2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/07 16:19 linux-next ed58d103e6da a4f327c2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/07 04:45 linux-next 808eb958781e 53657d1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/07 04:45 linux-next 808eb958781e 53657d1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/07 04:24 linux-next 808eb958781e 53657d1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/07 04:24 linux-next 808eb958781e 53657d1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/07 03:37 linux-next 808eb958781e 53657d1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/07 03:37 linux-next 808eb958781e 53657d1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/04 14:54 linux-next 40b8e93e17bf 8f267cef .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/04 14:29 linux-next 40b8e93e17bf 8f267cef .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
2025/02/04 13:46 linux-next 40b8e93e17bf 8f267cef .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in qca_close
* Struck through repros no longer work on HEAD.