syzbot


general protection fault in del_gendisk

Status: closed as invalid on 2022/03/02 21:49
Reported-by: syzbot+ae30d1a98b93957fbfb7@syzkaller.appspotmail.com
First crash: 1122d, last: 1002d
Cause bisection: failed (error log, bisect log)
  
Duplicate bugs (2)
duplicates (2):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
general protection fault in del_gendisk (5) C done 1 865d 865d 0/2 closed as dup on 2022/07/11 15:32
general protection fault in del_gendisk (6) C done 1 781d 778d 0/2 closed as dup on 2022/10/05 23:44
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 general protection fault in del_gendisk (5) C done 1 865d 865d 0/2 closed as dup on 2022/07/11 15:32
android-5-10 general protection fault in del_gendisk (4) C done 1 899d 897d 0/2 closed as dup on 2022/06/08 16:47
android-5-10 general protection fault in del_gendisk (7) C error inconclusive 54 61d 699d 0/2 upstream: reported C repro on 2022/12/22 23:51
android-54 general protection fault in del_gendisk C 8 7d21h 698d 0/2 upstream: reported C repro on 2022/12/24 00:28
android-5-10 general protection fault in del_gendisk (2) C error 2 938d 939d 0/2 closed as invalid on 2022/05/05 22:31
android-5-10 general protection fault in del_gendisk (3) C done 1 914d 914d 0/2 closed as invalid on 2022/06/03 17:43
android-5-10 general protection fault in del_gendisk (6) C done 1 781d 778d 0/2 closed as dup on 2022/10/05 23:44
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2022/02/23 13:00 19m bisect fix android12-5.10-lts OK (0) job log log
2022/01/24 10:25 20m bisect fix android12-5.10-lts OK (0) job log log
2021/12/25 10:05 20m bisect fix android12-5.10-lts OK (0) job log log
2021/11/25 09:41 23m bisect fix android12-5.10-lts OK (0) job log log

Sample crash report:
RDX: 0000000000000000 RSI: 0000000000004c81 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 00007ffc49259950 R11: 0000000000000246 R12: 00007ffc49259eec
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
---[ end trace a4c966a9db73d00f ]---
general protection fault, probably for non-canonical address 0xdffffc000000001a: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000000d0-0x00000000000000d7]
CPU: 0 PID: 369 Comm: syz-executor152 Tainted: G        W         5.10.75-syzkaller-01082-g234d53d2bb60 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:kill_device drivers/base/core.c:3357 [inline]
RIP: 0010:device_del+0xda/0xf00 drivers/base/core.c:3385
Code: 18 42 80 3c 28 00 74 08 48 89 df e8 80 e6 d7 fe 4c 89 7c 24 08 41 bf d0 00 00 00 48 89 5c 24 10 4c 03 3b 4d 89 fc 49 c1 ec 03 <43> 8a 04 2c 84 c0 0f 85 1b 0d 00 00 45 0f b6 2f 44 89 eb 83 e3 01
RSP: 0018:ffffc900002bfba0 EFLAGS: 00010202
RAX: 1ffff11020d76a1a RBX: ffff888106bb50d0 RCX: ffffffff849cd326
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc900002bfb20
RBP: ffffc900002bfc90 R08: dffffc0000000000 R09: fffff52000057f65
R10: fffff52000057f65 R11: 0000000000000000 R12: 000000000000001a
R13: dffffc0000000000 R14: ffff888106bb5108 R15: 00000000000000d0
FS:  0000555556adb300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4913439130 CR3: 00000001079bb000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 del_gendisk+0xc00/0xe30 block/genhd.c:953
 loop_remove drivers/block/loop.c:2198 [inline]
 loop_control_ioctl+0x6a3/0x7c0 drivers/block/loop.c:2297
 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+0x31/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f49133c8079
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc49259ed8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000004c85 RCX: 00007f49133c8079
RDX: 0000000000000000 RSI: 0000000000004c81 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 00007ffc49259950 R11: 0000000000000246 R12: 00007ffc49259eec
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace a4c966a9db73d010 ]---
RIP: 0010:kill_device drivers/base/core.c:3357 [inline]
RIP: 0010:device_del+0xda/0xf00 drivers/base/core.c:3385
Code: 18 42 80 3c 28 00 74 08 48 89 df e8 80 e6 d7 fe 4c 89 7c 24 08 41 bf d0 00 00 00 48 89 5c 24 10 4c 03 3b 4d 89 fc 49 c1 ec 03 <43> 8a 04 2c 84 c0 0f 85 1b 0d 00 00 45 0f b6 2f 44 89 eb 83 e3 01
RSP: 0018:ffffc900002bfba0 EFLAGS: 00010202
RAX: 1ffff11020d76a1a RBX: ffff888106bb50d0 RCX: ffffffff849cd326
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc900002bfb20
RBP: ffffc900002bfc90 R08: dffffc0000000000 R09: fffff52000057f65
R10: fffff52000057f65 R11: 0000000000000000 R12: 000000000000001a
R13: dffffc0000000000 R14: ffff888106bb5108 R15: 00000000000000d0
FS:  0000555556adb300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4913439130 CR3: 00000001079bb000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	18 42 80             	sbb    %al,-0x80(%rdx)
   3:	3c 28                	cmp    $0x28,%al
   5:	00 74 08 48          	add    %dh,0x48(%rax,%rcx,1)
   9:	89 df                	mov    %ebx,%edi
   b:	e8 80 e6 d7 fe       	callq  0xfed7e690
  10:	4c 89 7c 24 08       	mov    %r15,0x8(%rsp)
  15:	41 bf d0 00 00 00    	mov    $0xd0,%r15d
  1b:	48 89 5c 24 10       	mov    %rbx,0x10(%rsp)
  20:	4c 03 3b             	add    (%rbx),%r15
  23:	4d 89 fc             	mov    %r15,%r12
  26:	49 c1 ec 03          	shr    $0x3,%r12
* 2a:	43 8a 04 2c          	mov    (%r12,%r13,1),%al <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	0f 85 1b 0d 00 00    	jne    0xd51
  36:	45 0f b6 2f          	movzbl (%r15),%r13d
  3a:	44 89 eb             	mov    %r13d,%ebx
  3d:	83 e3 01             	and    $0x1,%ebx

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/26 09:41 android12-5.10-lts 234d53d2bb60 c1132b49 .config console log report syz C ci2-android-5-10 general protection fault in del_gendisk
* Struck through repros no longer work on HEAD.