syzbot


general protection fault in hci_uart_tty_ioctl

Status: auto-obsoleted due to no activity on 2023/12/07 13:40
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+c19afa60d78984711078@syzkaller.appspotmail.com
First crash: 836d, last: 454d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit d772781964415c63759572b917e21c4f7ec08d9f
Author: Jakub Kicinski <kuba@kernel.org>
Date: Fri Jan 6 06:33:54 2023 +0000

  devlink: bump the instance index directly when iterating

  
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] general protection fault in hci_uart_tty_ioctl 2 (4) 2023/07/19 08:45
[syzbot] Monthly bluetooth report (Jun 2023) 0 (1) 2023/07/01 10:15
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 449d 540d 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 346d 547d 0/3 auto-obsoleted due to no activity on 2024/10/03 16:45
android-54 general protection fault in hci_uart_tty_ioctl C 2 865d 865d 0/2 auto-obsoleted due to no activity on 2023/04/19 15:38
Last patch testing requests (6)
Created Duration User Patch Repo Result
2023/11/07 14:28 26m retest repro upstream OK log
2023/11/07 14:28 42m retest repro upstream OK log
2023/09/13 12:37 24m retest repro upstream OK log
2023/08/29 12:48 22m retest repro upstream report log
2023/08/29 12:48 28m retest repro upstream report log
2022/08/17 11:03 18m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 7ebfc85e2cd7 OK log
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2023/07/17 12:51 7h30m bisect fix upstream OK (1) job log
2023/06/02 20:10 26m bisect fix upstream OK (0) job log log
2023/05/03 15:00 37m bisect fix upstream OK (0) job log log
2023/04/02 17:22 36m bisect fix upstream OK (0) job log log
2023/03/03 16:47 35m bisect fix upstream OK (0) job log log
2023/02/01 08:03 38m bisect fix upstream OK (0) job log log
2022/10/12 17:48 40m (2) bisect fix upstream OK (0) job log log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 PID: 5131 Comm: syz-executor264 Not tainted 6.4.0-rc6-syzkaller-00195-g40f71e7cd3c6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:hci_uart_tty_ioctl+0x243/0xc20 drivers/bluetooth/hci_ldisc.c:774
Code: df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 c2 08 00 00 48 8b 9b b8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 5f 08 00 00 44 8b 23 e9 14 ff
RSP: 0018:ffffc90003e1fd18 EFLAGS: 00010256
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff87420e89 RDI: ffff888023c50cb8
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff888078b7b000
R13: 0000000000000000 R14: ffffffffffffffea R15: ffff8880157deba0
FS:  00007f9ef8645700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc30fa5960 CR3: 0000000079cd1000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 tty_ioctl+0x80b/0x16e0 drivers/tty/tty_io.c:2786
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f9ef86b4979
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:00007f9ef8645318 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f9ef873c3f8 RCX: 00007f9ef86b4979
RDX: 0000000000000000 RSI: 00000000800455c9 RDI: 0000000000000003
RBP: 00007f9ef873c3f0 R08: 00007f9ef8645700 R09: 0000000000000000
R10: 00007f9ef8645700 R11: 0000000000000246 R12: 6d74702f7665642f
R13: 00007ffc30f56f8f R14: 00007f9ef8645400 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:hci_uart_tty_ioctl+0x243/0xc20 drivers/bluetooth/hci_ldisc.c:774
Code: df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 c2 08 00 00 48 8b 9b b8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 5f 08 00 00 44 8b 23 e9 14 ff
RSP: 0018:ffffc90003e1fd18 EFLAGS: 00010256
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff87420e89 RDI: ffff888023c50cb8
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff888078b7b000
R13: 0000000000000000 R14: ffffffffffffffea R15: ffff8880157deba0
FS:  00007f9ef8645700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc30fa5960 CR3: 0000000079cd1000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	df 48 89             	fisttps -0x77(%rax)
   3:	fa                   	cli
   4:	48 c1 ea 03          	shr    $0x3,%rdx
   8:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   c:	0f 85 c2 08 00 00    	jne    0x8d4
  12:	48 8b 9b b8 00 00 00 	mov    0xb8(%rbx),%rbx
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 da             	mov    %rbx,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	0f b6 04 02          	movzbl (%rdx,%rax,1),%eax <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	74 08                	je     0x3a
  32:	3c 03                	cmp    $0x3,%al
  34:	0f 8e 5f 08 00 00    	jle    0x899
  3a:	44 8b 23             	mov    (%rbx),%r12d
  3d:	e9                   	.byte 0xe9
  3e:	14 ff                	adc    $0xff,%al

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/17 05:29 upstream 40f71e7cd3c6 f3921d4d .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in hci_uart_tty_ioctl
2022/10/17 10:42 upstream 55be6084c8e0 67cb024c .config console log report syz C [disk image] [vmlinux] ci-upstream-kasan-gce-smack-root general protection fault in hci_uart_tty_ioctl
2022/08/12 16:21 upstream 7ebfc85e2cd7 402cd70d .config console log report syz C ci-upstream-kasan-gce-root general protection fault in hci_uart_tty_ioctl
2022/11/19 05:12 upstream 84368d882b96 5bb70014 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in hci_uart_tty_ioctl
* Struck through repros no longer work on HEAD.