syzbot


general protection fault in hci_uart_tty_ioctl

Status: auto-obsoleted due to no activity on 2023/04/19 15:38
Reported-by: syzbot+c514fc2b21795f82006d@syzkaller.appspotmail.com
First crash: 644d, last: 644d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 general protection fault in hci_uart_tty_ioctl origin:upstream missing-backport C done 1 229d 320d 0/3 upstream: reported C repro on 2023/06/04 06:24
linux-5.15 general protection fault in hci_uart_tty_ioctl origin:upstream missing-backport C done 1 125d 326d 0/3 upstream: reported C repro on 2023/05/29 05:45
upstream general protection fault in hci_uart_tty_ioctl bluetooth C error done 4 234d 611d 0/26 auto-obsoleted due to no activity on 2023/12/07 13:40
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/04/19 15:19 19m retest repro android12-5.4 OK log

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 407 Comm: syz-executor767 Not tainted 5.4.190-syzkaller-00008-g330fa791a029 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
RIP: 0010:hci_uart_tty_ioctl+0x34c/0xa10 drivers/bluetooth/hci_ldisc.c:769
Code: fe 4c 89 f3 48 81 c3 88 00 00 00 48 89 d8 48 c1 e8 03 80 3c 28 00 74 08 48 89 df e8 7e 85 84 fe 48 8b 1b 48 89 d8 48 c1 e8 03 <8a> 04 28 84 c0 0f 85 31 06 00 00 8b 2b e9 e4 04 00 00 44 89 e0 48
RSP: 0018:ffff8881de3cfd70 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8881de241f80
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: dffffc0000000000 R08: ffffffff830833e2 R09: ffffed103bc59704
R10: ffffed103bc59704 R11: 1ffff1103bc59703 R12: 0000000000000000
R13: ffff8881de2d1800 R14: ffff8881de2cb800 R15: 00000000800455c9
FS:  00007f968cf0f700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd4bfa7b58 CR3: 00000001de378000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 tty_ioctl+0x949/0xcb0 drivers/tty/tty_io.c:2666
 do_vfs_ioctl+0x6d1/0x15b0 fs/ioctl.c:47
 ksys_ioctl fs/ioctl.c:742 [inline]
 __do_sys_ioctl fs/ioctl.c:749 [inline]
 __se_sys_ioctl fs/ioctl.c:747 [inline]
 __x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:747
 do_syscall_64+0xcb/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f968cf5dc39
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f968cf0f268 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f968cfe54c0 RCX: 00007f968cf5dc39
RDX: 0000000000000000 RSI: 00000000800455c9 RDI: 0000000000000003
RBP: 00007f968cfb3084 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f968cf0f280
R13: 6d74702f7665642f R14: 00007f968cf0f27c R15: 00007f968cfe54c8
Modules linked in:
---[ end trace 30b0a77ffc12381a ]---
RIP: 0010:hci_uart_tty_ioctl+0x34c/0xa10 drivers/bluetooth/hci_ldisc.c:769
Code: fe 4c 89 f3 48 81 c3 88 00 00 00 48 89 d8 48 c1 e8 03 80 3c 28 00 74 08 48 89 df e8 7e 85 84 fe 48 8b 1b 48 89 d8 48 c1 e8 03 <8a> 04 28 84 c0 0f 85 31 06 00 00 8b 2b e9 e4 04 00 00 44 89 e0 48
RSP: 0018:ffff8881de3cfd70 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8881de241f80
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: dffffc0000000000 R08: ffffffff830833e2 R09: ffffed103bc59704
R10: ffffed103bc59704 R11: 1ffff1103bc59703 R12: 0000000000000000
R13: ffff8881de2d1800 R14: ffff8881de2cb800 R15: 00000000800455c9
FS:  00007f968cf0f700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd4bfa7b58 CR3: 00000001de378000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	fe 4c 89 f3          	decb   -0xd(%rcx,%rcx,4)
   4:	48 81 c3 88 00 00 00 	add    $0x88,%rbx
   b:	48 89 d8             	mov    %rbx,%rax
   e:	48 c1 e8 03          	shr    $0x3,%rax
  12:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1)
  16:	74 08                	je     0x20
  18:	48 89 df             	mov    %rbx,%rdi
  1b:	e8 7e 85 84 fe       	callq  0xfe84859e
  20:	48 8b 1b             	mov    (%rbx),%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	8a 04 28             	mov    (%rax,%rbp,1),%al <-- trapping instruction
  2d:	84 c0                	test   %al,%al
  2f:	0f 85 31 06 00 00    	jne    0x666
  35:	8b 2b                	mov    (%rbx),%ebp
  37:	e9 e4 04 00 00       	jmpq   0x520
  3c:	44 89 e0             	mov    %r12d,%eax
  3f:	48                   	rex.W

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/15 05:43 android12-5.4 330fa791a029 5d921b08 .config console log report syz C ci2-android-5-4-kasan general protection fault in hci_uart_tty_ioctl
2022/07/15 02:47 android12-5.4 330fa791a029 5d921b08 .config console log report info ci2-android-5-4-kasan general protection fault in hci_uart_tty_ioctl
* Struck through repros no longer work on HEAD.