syzbot


general protection fault in del_gendisk (7)

Status: upstream: reported C repro on 2022/12/22 23:51
Reported-by: syzbot+f6a2e26c6c36039ed200@syzkaller.appspotmail.com
First crash: 599d, last: 54d
Cause bisection: failed (error log, bisect log)
  
Fix bisection the fix commit could be any of (bisect log):
  003c389455eb Merge 5.10.160 into android12-5.10-lts
  bf760358eac3 Merge branch 'android12-5.10' into android12-5.10-lts
  
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 704d 704d 0/2 closed as dup on 2022/07/11 15:32
android-5-10 general protection fault in del_gendisk (4) C done 1 738d 736d 0/2 closed as dup on 2022/06/08 16:47
android-54 general protection fault in del_gendisk C 8 43d 538d 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 778d 778d 0/2 closed as invalid on 2022/05/05 22:31
android-5-10 general protection fault in del_gendisk (3) C done 1 753d 753d 0/2 closed as invalid on 2022/06/03 17:43
android-5-10 general protection fault in del_gendisk (6) C done 1 620d 617d 0/2 closed as dup on 2022/10/05 23:44
android-5-10 general protection fault in del_gendisk C error 1 841d 948d 0/2 closed as invalid on 2022/03/02 21:49
Last patch testing requests (9)
Created Duration User Patch Repo Result
2024/05/04 07:58 1m retest repro android13-5.10-lts error OK
2024/05/04 07:58 2m retest repro android13-5.10-lts error OK
2024/02/07 07:08 12m retest repro android13-5.10-lts report log
2024/02/07 07:08 4m retest repro android13-5.10-lts report log
2023/11/29 06:19 16m retest repro android13-5.10-lts report log
2023/11/29 06:19 8m retest repro android13-5.10-lts report log
2023/09/11 09:02 6m retest repro android13-5.10-lts report log
2023/06/21 01:05 19m retest repro android13-5.10-lts OK log
2023/06/21 01:05 28m retest repro android13-5.10-lts report log

Sample crash report:
RBP: 00000000000071e5 R08: 00000000000000a0 R09: 00000000000000a0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffee89f8bec
R13: 431bde82d7b634db R14: 0000000000000001 R15: 0000000000000001
---[ end trace fb07f860fb7e8341 ]---
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: 313 Comm: syz-executor177 Tainted: G        W         5.10.199-syzkaller-00307-gd30b996835c0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
RIP: 0010:kill_device drivers/base/core.c:3369 [inline]
RIP: 0010:device_del+0xdf/0xf00 drivers/base/core.c:3397
Code: 20 42 80 3c 28 00 74 08 48 89 df e8 db d3 dd fe 4c 89 7c 24 40 41 bf d0 00 00 00 48 89 5c 24 18 4c 03 3b 4d 89 fc 49 c1 ec 03 <43> 0f b6 04 2c 84 c0 0f 85 0a 0d 00 00 41 0f b6 1f 89 de 83 e6 01
RSP: 0018:ffffc90000bb7b80 EFLAGS: 00010202
RAX: 1ffff11023c1ee1a RBX: ffff88811e0f70d0 RCX: ffffffff84afc965
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc90000bb7b00
RBP: ffffc90000bb7c70 R08: dffffc0000000000 R09: fffff52000176f61
R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000001a
R13: dffffc0000000000 R14: ffff88811e0f7108 R15: 00000000000000d0
FS:  0000555555909380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005571743e40e8 CR3: 00000001079fe000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 del_gendisk+0x88d/0xa90 block/genhd.c:953
 loop_remove+0x46/0xb0 drivers/block/loop.c:2210
 loop_control_ioctl+0x564/0x620 drivers/block/loop.c:2309
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0x114/0x190 fs/ioctl.c:739
 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7fa74d451d39
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 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:00007ffee89f8bd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa74d451d39
RDX: 0000000000000000 RSI: 0000000000004c81 RDI: 0000000000000003
RBP: 00000000000071e5 R08: 00000000000000a0 R09: 00000000000000a0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffee89f8bec
R13: 431bde82d7b634db R14: 0000000000000001 R15: 0000000000000001
Modules linked in:
---[ end trace fb07f860fb7e8342 ]---
RIP: 0010:kill_device drivers/base/core.c:3369 [inline]
RIP: 0010:device_del+0xdf/0xf00 drivers/base/core.c:3397
Code: 20 42 80 3c 28 00 74 08 48 89 df e8 db d3 dd fe 4c 89 7c 24 40 41 bf d0 00 00 00 48 89 5c 24 18 4c 03 3b 4d 89 fc 49 c1 ec 03 <43> 0f b6 04 2c 84 c0 0f 85 0a 0d 00 00 41 0f b6 1f 89 de 83 e6 01
RSP: 0018:ffffc90000bb7b80 EFLAGS: 00010202
RAX: 1ffff11023c1ee1a RBX: ffff88811e0f70d0 RCX: ffffffff84afc965
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc90000bb7b00
RBP: ffffc90000bb7c70 R08: dffffc0000000000 R09: fffff52000176f61
R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000001a
R13: dffffc0000000000 R14: ffff88811e0f7108 R15: 00000000000000d0
FS:  0000555555909380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005571743e40e8 CR3: 00000001079fe000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	20 42 80             	and    %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 db d3 dd fe       	call   0xfeddd3eb
  10:	4c 89 7c 24 40       	mov    %r15,0x40(%rsp)
  15:	41 bf d0 00 00 00    	mov    $0xd0,%r15d
  1b:	48 89 5c 24 18       	mov    %rbx,0x18(%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 0f b6 04 2c       	movzbl (%r12,%r13,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 0a 0d 00 00    	jne    0xd41
  37:	41 0f b6 1f          	movzbl (%r15),%ebx
  3b:	89 de                	mov    %ebx,%esi
  3d:	83 e6 01             	and    $0x1,%esi

Crashes (54):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/15 06:01 android13-5.10-lts d30b996835c0 cb976f63 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2022/12/22 23:49 android12-5.10-lts 003c389455eb 9da18ae8 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2023/02/02 19:18 android12-5.10-lts 416c4356f372 16d19e30 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2022/12/24 03:45 android12-5.10-lts 003c389455eb 9da18ae8 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/20 04:50 android13-5.10-lts c449d2a618ef af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/18 12:09 android13-5.10-lts d82f901b3eb5 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/18 03:09 android13-5.10-lts 3c981dac49d9 acc528cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/17 23:53 android13-5.10-lts 3c981dac49d9 acc528cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/17 21:48 android13-5.10-lts 3c981dac49d9 acc528cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/16 21:41 android13-5.10-lts 4e1bc8d8e8ae 18f6e127 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/16 16:26 android13-5.10-lts 4e1bc8d8e8ae 18f6e127 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/16 14:09 android13-5.10-lts 4e1bc8d8e8ae 0d592ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/16 08:35 android13-5.10-lts 4e1bc8d8e8ae 0d592ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/16 06:08 android13-5.10-lts 4e1bc8d8e8ae 0d592ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/16 04:49 android13-5.10-lts 4e1bc8d8e8ae 0d592ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/16 01:22 android13-5.10-lts 4e1bc8d8e8ae b9af7e61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/16 01:17 android13-5.10-lts 4e1bc8d8e8ae b9af7e61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/16 01:07 android13-5.10-lts 4e1bc8d8e8ae b9af7e61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/15 16:58 android13-5.10-lts 4e1bc8d8e8ae b9af7e61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/15 16:48 android13-5.10-lts 4e1bc8d8e8ae b9af7e61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/15 08:22 android13-5.10-lts 4e1bc8d8e8ae c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/15 08:06 android13-5.10-lts 4e1bc8d8e8ae c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/14 11:30 android13-5.10-lts 4e1bc8d8e8ae c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/13 20:14 android13-5.10-lts 4e1bc8d8e8ae c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/13 19:07 android13-5.10-lts 4e1bc8d8e8ae c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/13 18:56 android13-5.10-lts 4e1bc8d8e8ae c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/13 17:05 android13-5.10-lts 4e1bc8d8e8ae c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/13 11:49 android13-5.10-lts 4e1bc8d8e8ae c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/13 10:18 android13-5.10-lts 4e1bc8d8e8ae c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/13 08:39 android13-5.10-lts 4e1bc8d8e8ae c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/13 07:42 android13-5.10-lts 4e1bc8d8e8ae c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/13 04:09 android13-5.10-lts 4e1bc8d8e8ae c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/04/13 03:49 android13-5.10-lts 4e1bc8d8e8ae c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2024/03/02 14:35 android13-5.10-lts dd976ecce2ce 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2023/11/15 05:35 android13-5.10-lts d30b996835c0 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2023/09/30 04:14 android13-5.10-lts a27512601c2d 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2023/08/28 09:01 android13-5.10-lts c6a1fbd8e4aa 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2023/04/12 00:18 android12-5.10-lts 416c4356f372 49faf98d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2023/04/09 02:01 android12-5.10-lts 416c4356f372 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2023/03/02 21:24 android12-5.10-lts 416c4356f372 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2022/12/27 17:02 android12-5.10-lts 003c389455eb 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2022/12/27 12:29 android12-5.10-lts 003c389455eb 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2022/12/27 10:00 android12-5.10-lts 003c389455eb 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2022/12/26 17:46 android12-5.10-lts 003c389455eb 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2022/12/26 08:17 android12-5.10-lts 003c389455eb 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2022/12/26 02:45 android12-5.10-lts 003c389455eb 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2022/12/25 08:50 android12-5.10-lts 003c389455eb 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2022/12/25 06:22 android12-5.10-lts 003c389455eb 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2022/12/24 16:57 android12-5.10-lts 003c389455eb 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2022/12/24 15:07 android12-5.10-lts 003c389455eb 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2022/12/23 16:44 android12-5.10-lts 003c389455eb 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in del_gendisk
2022/10/23 04:56 android12-5.10-lts 69a9a62c66bb c0b80a55 .config console log report info [disk image] [vmlinux] ci2-android-5-10 general protection fault in del_gendisk
* Struck through repros no longer work on HEAD.