syzbot


general protection fault in __device_attach

Status: auto-closed as invalid on 2022/07/29 21:17
Reported-by: syzbot+db9ebff588fafb26b3e9@syzkaller.appspotmail.com
First crash: 812d, last: 812d
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 66d 565d 0/2 upstream: reported C repro on 2023/01/03 03:10
upstream general protection fault in __device_attach kernel C done done 2 223d 860d 0/27 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 39d 564d 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 20d 416d 0/2 upstream: reported C repro on 2023/06/01 06:12
linux-4.19 general protection fault in __device_attach C error 35 510d 1318d 0/1 upstream: reported C repro on 2020/12/11 04:31
android-5-15 general protection fault in __device_attach origin:upstream C error 7 26d 565d 0/2 upstream: reported C repro on 2023/01/03 07:29
android-54 general protection fault in __device_attach 8 1003d 1259d 0/2 auto-closed as invalid on 2022/02/18 18:30

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc000000001a: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000000d0-0x00000000000000d7]
CPU: 1 PID: 13766 Comm: syz-executor.0 Not tainted 5.10.112-syzkaller-00287-gde64d941a71a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__device_attach+0xb4/0x510 drivers/base/dd.c:902
Code: 5c 24 68 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 3d 2a de fe 4c 8b 2b 49 8d 9d d0 00 00 00 48 89 d8 48 c1 e8 03 <42> 8a 04 30 84 c0 0f 85 b6 03 00 00 0f b6 1b 89 de 83 e6 01 45 31
RSP: 0018:ffffc9000631f500 EFLAGS: 00010202
RAX: 000000000000001a RBX: 00000000000000d0 RCX: ffffffff849226a6
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc9000631f480
RBP: ffffc9000631f5d0 R08: dffffc0000000000 R09: fffff52000c63e91
R10: fffff52000c63e91 R11: 1ffff92000c63e90 R12: ffff88811cc4b030
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88811cc4b030
FS:  00007f651702a700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6517fc8090 CR3: 000000014997a000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 device_attach+0x17/0x20 drivers/base/dd.c:967
 proc_ioctl+0x41e/0x600 drivers/usb/core/devio.c:2262
 proc_ioctl_default drivers/usb/core/devio.c:2297 [inline]
 usbdev_do_ioctl drivers/usb/core/devio.c:2653 [inline]
 usbdev_ioctl+0x367f/0x6c90 drivers/usb/core/devio.c:2713
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0x115/0x190 fs/ioctl.c:739
 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739
 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f6517eb40e9
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f651702a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f6517fc6f60 RCX: 00007f6517eb40e9
RDX: 0000000020000180 RSI: 00000000c0105512 RDI: 0000000000000004
RBP: 00007f6517f0e08d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffb3c241ff R14: 00007f651702a300 R15: 0000000000022000
Modules linked in:
---[ end trace 51231198885fc5f1 ]---
RIP: 0010:__device_attach+0xb4/0x510 drivers/base/dd.c:902
Code: 5c 24 68 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 3d 2a de fe 4c 8b 2b 49 8d 9d d0 00 00 00 48 89 d8 48 c1 e8 03 <42> 8a 04 30 84 c0 0f 85 b6 03 00 00 0f b6 1b 89 de 83 e6 01 45 31
RSP: 0018:ffffc9000631f500 EFLAGS: 00010202
RAX: 000000000000001a RBX: 00000000000000d0 RCX: ffffffff849226a6
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc9000631f480
RBP: ffffc9000631f5d0 R08: dffffc0000000000 R09: fffff52000c63e91
R10: fffff52000c63e91 R11: 1ffff92000c63e90 R12: ffff88811cc4b030
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88811cc4b030
FS:  00007f651702a700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055ea2f353000 CR3: 000000014997a000 CR4: 00000000003506a0
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 2a de fe       	callq  0xfede2a56
  19:	4c 8b 2b             	mov    (%rbx),%r13
  1c:	49 8d 9d d0 00 00 00 	lea    0xd0(%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 b6 03 00 00    	jne    0x3ec
  36:	0f b6 1b             	movzbl (%rbx),%ebx
  39:	89 de                	mov    %ebx,%esi
  3b:	83 e6 01             	and    $0x1,%esi
  3e:	45                   	rex.RB
  3f:	31                   	.byte 0x31

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/30 21:13 android12-5.10-lts de64d941a71a 2df221f6 .config console log report info ci2-android-5-10 general protection fault in __device_attach
* Struck through repros no longer work on HEAD.