syzbot


general protection fault in __device_attach (2)

Status: upstream: reported C repro on 2023/01/03 03:10
Reported-by: syzbot+f4e91ec8dbc8d4e1d02c@syzkaller.appspotmail.com
First crash: 640d, last: 57d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in __device_attach kernel C done done 2 298d 935d 0/28 auto-obsoleted due to no activity on 2024/03/19 23:28
android-5-10 general protection fault in __device_attach (2) C error inconclusive 10 44d 640d 0/2 upstream: reported C repro on 2023/01/03 15:59
android-6-1 general protection fault in __device_attach origin:upstream C error 3 27d 491d 0/2 upstream: reported C repro on 2023/06/01 06:12
linux-4.19 general protection fault in __device_attach C error 35 585d 1393d 0/1 upstream: reported C repro on 2020/12/11 04:31
android-5-10 general protection fault in __device_attach 1 888d 888d 0/2 auto-closed as invalid on 2022/07/29 21:17
android-5-15 general protection fault in __device_attach origin:upstream C error 7 31d 640d 0/2 upstream: reported C repro on 2023/01/03 07:29
android-54 general protection fault in __device_attach 8 1079d 1335d 0/2 auto-closed as invalid on 2022/02/18 18:30
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/08/08 18:57 24m retest repro android12-5.4 report log
2024/08/08 18:57 6m retest repro android12-5.4 report log
2024/08/08 18:57 8m retest repro android12-5.4 report log
2024/07/25 12:45 5m retest repro android12-5.4 report log
2024/05/30 13:11 30m retest repro android12-5.4 error
2024/05/30 13:11 24m retest repro android12-5.4 error
2024/05/30 13:11 8m retest repro android12-5.4 error
2024/05/16 08:39 11m retest repro android12-5.4 report log
2024/03/21 11:32 5m retest repro android12-5.4 report log
2024/03/21 11:32 13m retest repro android12-5.4 report log

Sample crash report:
 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+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
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: 376 Comm: syz-executor921 Not tainted 5.4.242-syzkaller-00065-g10e0626a3202 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
RIP: 0010:__device_attach+0xb4/0x490 drivers/base/dd.c:909
Code: 5c 24 68 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 3d 32 fd fe 4c 8b 2b 49 8d 9d c8 00 00 00 48 89 d8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 51 03 00 00 0f b6 1b 89 de 83 e6 01 45
RSP: 0018:ffff8881dbe779c0 EFLAGS: 00010202
RAX: 0000000000000019 RBX: 00000000000000c8 RCX: ffffffff844f0c25
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff8881dbe77940
RBP: ffff8881dbe77a90 R08: dffffc0000000000 R09: ffffed103b7cef29
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881dc493030
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000
FS:  0000555555b75300(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6e3b9542a4 CR3: 00000001dc3a0000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 proc_ioctl+0x441/0x610 drivers/usb/core/devio.c:2259
 proc_ioctl_default+0xb9/0xf0 drivers/usb/core/devio.c:2294
 usbdev_do_ioctl+0x13e5/0x1e40 drivers/usb/core/devio.c:2650
 usbdev_ioctl+0x1e/0x30 drivers/usb/core/devio.c:2710
 do_vfs_ioctl+0x742/0x1720 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+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
Modules linked in:
---[ end trace 741c69ad8305fde0 ]---
RIP: 0010:__device_attach+0xb4/0x490 drivers/base/dd.c:909
Code: 5c 24 68 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 3d 32 fd fe 4c 8b 2b 49 8d 9d c8 00 00 00 48 89 d8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 51 03 00 00 0f b6 1b 89 de 83 e6 01 45
RSP: 0018:ffff8881dbe779c0 EFLAGS: 00010202
RAX: 0000000000000019 RBX: 00000000000000c8 RCX: ffffffff844f0c25
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff8881dbe77940
RBP: ffff8881dbe77a90 R08: dffffc0000000000 R09: ffffed103b7cef29
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881dc493030
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000
FS:  0000555555b75300(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6e3b9542a4 CR3: 00000001dc3a0000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	5c                   	pop    %rsp
   1:	24 68                	and    $0x68,%al
   3:	48 89 d8             	mov    %rbx,%rax
   6:	48 c1 e8 03          	shr    $0x3,%rax
   a:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1)
   f:	74 08                	je     0x19
  11:	48 89 df             	mov    %rbx,%rdi
  14:	e8 3d 32 fd fe       	callq  0xfefd3256
  19:	4c 8b 2b             	mov    (%rbx),%r13
  1c:	49 8d 9d c8 00 00 00 	lea    0xc8(%r13),%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 30       	movzbl (%rax,%r14,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 51 03 00 00    	jne    0x388
  37:	0f b6 1b             	movzbl (%rbx),%ebx
  3a:	89 de                	mov    %ebx,%esi
  3c:	83 e6 01             	and    $0x1,%esi
  3f:	45                   	rex.RB

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/01 06:07 android12-5.4 10e0626a3202 babc4389 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in __device_attach
2023/01/03 17:53 android12-5.4 a8aad8851131 f0036e18 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in __device_attach
2023/01/03 10:23 android12-5.4 a8aad8851131 ab32d508 .config strace log report syz [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in __device_attach
2023/01/03 05:59 android12-5.4 a8aad8851131 ab32d508 .config strace log report syz [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in __device_attach
2023/01/03 03:10 android12-5.4 a8aad8851131 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in __device_attach
* Struck through repros no longer work on HEAD.