syzbot


general protection fault in __device_attach

Status: auto-closed as invalid on 2022/02/18 18:30
Reported-by: syzbot+08feebb6c2c756ba8f7c@syzkaller.appspotmail.com
First crash: 1374d, last: 1118d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 general protection fault in __device_attach (2) C 5 26d 680d 0/2 upstream: reported C repro on 2023/01/03 03:10
upstream general protection fault in __device_attach kernel C done done 2 338d 975d 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 11d 679d 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 error 3 66d 531d 0/2 upstream: reported C repro on 2023/06/01 06:12
linux-4.19 general protection fault in __device_attach C error 35 625d 1433d 0/1 upstream: reported C repro on 2020/12/11 04:31
android-5-10 general protection fault in __device_attach 1 927d 927d 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 1d05h 680d 0/2 upstream: reported C repro on 2023/01/03 07:29

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: 5641 Comm: syz-executor.0 Not tainted 5.4.147-syzkaller-00035-g792619fa3479 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__device_attach+0xb4/0x470 drivers/base/dd.c:899
Code: 5c 24 68 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 fd 02 02 ff 4c 8b 2b 49 8d 9d c8 00 00 00 48 89 d8 48 c1 e8 03 <42> 8a 04 30 84 c0 0f 85 1d 03 00 00 0f b6 1b 83 e3 01 45 31 ff 31
RSP: 0018:ffff8881814673e0 EFLAGS: 00010202
RAX: 0000000000000019 RBX: 00000000000000c8 RCX: ffffffff84477d46
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff888181467360
RBP: ffff8881814674b0 R08: dffffc0000000000 R09: ffffed103028ce6d
R10: ffffed103028ce6d R11: 0000000000000000 R12: ffff8881a4793030
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000
FS:  00007f62e3210700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe8459efd58 CR3: 00000001a8b7d000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 proc_ioctl+0x433/0x600 drivers/usb/core/devio.c:2259
 usbdev_do_ioctl+0x3945/0x67e0 drivers/usb/core/devio.c:2294
 usbdev_ioctl+0x1e/0x30 drivers/usb/core/devio.c:2710
 do_vfs_ioctl+0x76a/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+0xcb/0x1e0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f62e5499a39
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f62e3210188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f62e559cf60 RCX: 00007f62e5499a39
RDX: 0000000020000040 RSI: 00000000c00c5512 RDI: 0000000000000003
RBP: 00007f62e54f3e8f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc44c427bf R14: 00007f62e3210300 R15: 0000000000022000
Modules linked in:
---[ end trace 3fe3319ae0275d41 ]---
RIP: 0010:__device_attach+0xb4/0x470 drivers/base/dd.c:899
Code: 5c 24 68 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 fd 02 02 ff 4c 8b 2b 49 8d 9d c8 00 00 00 48 89 d8 48 c1 e8 03 <42> 8a 04 30 84 c0 0f 85 1d 03 00 00 0f b6 1b 83 e3 01 45 31 ff 31
RSP: 0018:ffff8881814673e0 EFLAGS: 00010202
RAX: 0000000000000019 RBX: 00000000000000c8 RCX: ffffffff84477d46
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff888181467360
RBP: ffff8881814674b0 R08: dffffc0000000000 R09: ffffed103028ce6d
R10: ffffed103028ce6d R11: 0000000000000000 R12: ffff8881a4793030
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000
FS:  00007f62e3210700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000001a8b7d000 CR4: 00000000003406e0
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 fd 02 02 ff       	callq  0xff020316
  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 8a 04 30          	mov    (%rax,%r14,1),%al <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	0f 85 1d 03 00 00    	jne    0x353
  36:	0f b6 1b             	movzbl (%rbx),%ebx
  39:	83 e3 01             	and    $0x1,%ebx
  3c:	45 31 ff             	xor    %r15d,%r15d
  3f:	31                   	.byte 0x31

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/21 18:30 android12-5.4 792619fa3479 c5cb7da8 .config console log report info ci2-android-5-4-kasan general protection fault in __device_attach
2021/09/13 21:22 android12-5.4 1076466328ba 58d09404 .config console log report info ci2-android-5-4-kasan general protection fault in __device_attach
2021/09/13 14:06 android12-5.4 1076466328ba 3ce60af8 .config console log report info ci2-android-5-4-kasan general protection fault in __device_attach
2021/08/25 09:40 android12-5.4 f4bf8b65e48f b599f2fc .config console log report info ci2-android-5-4-kasan general protection fault in __device_attach
2021/07/08 02:37 android12-5.4 972d251662ee 95793bce .config console log report info ci2-android-5-4-kasan general protection fault in __device_attach
2021/07/04 18:47 android12-5.4 eaef435f4357 55aa55c2 .config console log report info ci2-android-5-4-kasan general protection fault in __device_attach
2021/03/07 03:22 android12-5.4 1bd00b1a96b5 e4b4d570 .config console log report info ci2-android-5-4-kasan general protection fault in __device_attach
2021/02/07 14:56 android12-5.4 3e99096f6219 2ce644fc .config console log report info ci2-android-5-4-kasan general protection fault in __device_attach
* Struck through repros no longer work on HEAD.