syzbot


general protection fault in del_gendisk (3)

Status: closed as invalid on 2022/06/03 17:43
Reported-by: syzbot+7308a6f9b7c24d5cf1d5@syzkaller.appspotmail.com
First crash: 878d, last: 878d
Cause bisection: introduced by (bisect log) :
commit bda49ad0602e5250a9d3dd61deda19d3e5615c54
Author: Bart Van Assche <bvanassche@google.com>
Date: Mon Aug 2 17:05:29 2021 +0000

  FROMGIT: loop: Select I/O scheduler 'none' from inside add_disk()

Crash: general protection fault in del_gendisk (log)
Repro: C syz .config
  
Duplicate bugs (3)
duplicates (3):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
general protection fault in kernfs_name_hash (3) C done 3 854d 854d 0/2 closed as dup on 2022/06/14 17:09
general protection fault in del_gendisk (4) C done 1 862d 860d 0/2 closed as dup on 2022/06/08 16:47
general protection fault in kernfs_name_hash (2) C done 3 873d 873d 0/2 closed as dup on 2022/05/26 23:28
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 829d 829d 0/2 closed as dup on 2022/07/11 15:32
android-5-10 general protection fault in del_gendisk (4) C done 1 862d 860d 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 24d 663d 0/2 upstream: reported C repro on 2022/12/22 23:51
android-54 general protection fault in del_gendisk C 8 27d 662d 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 902d 903d 0/2 closed as invalid on 2022/05/05 22:31
android-5-10 general protection fault in del_gendisk (6) C done 1 745d 741d 0/2 closed as dup on 2022/10/05 23:44
android-5-10 general protection fault in del_gendisk C error 1 965d 1072d 0/2 closed as invalid on 2022/03/02 21:49
Last patch testing requests (18)
Created Duration User Patch Repo Result
2022/05/26 18:22 7m tadeusz.struk@linaro.org patch android12-5.10-lts report log
2022/05/26 18:12 3m tadeusz.struk@linaro.org patch android12-5.10-lts error
2022/05/26 18:02 4m tadeusz.struk@linaro.org patch android12-5.10-lts error
2022/05/26 18:00 3m tadeusz.struk@linaro.org patch android12-5.10-lts error
2022/05/26 17:37 10m tadeusz.struk@linaro.org patch android12-5.10-lts report log
2022/05/26 17:23 10m tadeusz.struk@linaro.org patch android12-5.10-lts report log
2022/05/26 16:48 7m tadeusz.struk@linaro.org patch android12-5.10-lts report log
2022/05/26 16:46 3m tadeusz.struk@linaro.org patch android12-5.10-lts error
2022/05/26 16:37 4m tadeusz.struk@linaro.org patch android12-5.10-lts error
2022/05/26 15:25 7m tadeusz.struk@linaro.org patch android12-5.10-lts report log
2022/05/26 14:32 7m tadeusz.struk@linaro.org patch android12-5.10-lts report log
2022/05/26 00:54 10m tadeusz.struk@linaro.org patch android12-5.10-lts report log
2022/05/25 17:24 16m tadeusz.struk@linaro.org patch android12-5.10-lts OK
2022/05/25 17:11 10m tadeusz.struk@linaro.org patch android12-5.10-lts report log
2022/05/24 23:32 9m tadeusz.struk@linaro.org patch android12-5.10-lts report log
2022/05/24 23:25 0m tadeusz.struk@linaro.org patch android12-5.10-lts error
2022/05/24 22:31 9m tadeusz.struk@linaro.org patch android12-5.10-lts report log
2022/05/24 19:33 16m tadeusz.struk@linaro.org git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK

Sample crash report:
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000246 R12: 00007ffd6f61e50c
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
---[ end trace f386149e84494ffc ]---
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: 375 Comm: syz-executor171 Tainted: G        W         5.10.117-syzkaller-00813-g0974b8411a58 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:kill_device drivers/base/core.c:3361 [inline]
RIP: 0010:device_del+0xdf/0xf00 drivers/base/core.c:3389
Code: 20 42 80 3c 28 00 74 08 48 89 df e8 fb 19 df fe 4c 89 7c 24 48 41 bf d0 00 00 00 48 89 5c 24 18 4c 03 3b 4d 89 fc 49 c1 ec 03 <43> 8a 04 2c 84 c0 0f 85 0d 0d 00 00 41 0f b6 1f 89 de 83 e6 01 31
RSP: 0018:ffffc9000092fb60 EFLAGS: 00010202
RAX: 1ffff11020b3401a RBX: ffff8881059a00d0 RCX: ffffffff84925806
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc9000092fae0
RBP: ffffc9000092fc50 R08: dffffc0000000000 R09: fffff52000125f5d
R10: fffff52000125f5d R11: 1ffff92000125f5c R12: 000000000000001a
R13: dffffc0000000000 R14: ffff8881059a0108 R15: 00000000000000d0
FS:  0000555556d3c300(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0b00ef1130 CR3: 000000011a240000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 del_gendisk+0xbf2/0xe20 block/genhd.c:953
 loop_remove+0x46/0xb0 drivers/block/loop.c:2185
 loop_control_ioctl+0x67f/0x740 drivers/block/loop.c:2284
 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:0x7f0b00e800a9
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:00007ffd6f61e4f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000005501 RCX: 00007f0b00e800a9
RDX: 0000000000000000 RSI: 0000000000004c81 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000246 R12: 00007ffd6f61e50c
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace f386149e84494ffd ]---
RIP: 0010:kill_device drivers/base/core.c:3361 [inline]
RIP: 0010:device_del+0xdf/0xf00 drivers/base/core.c:3389
Code: 20 42 80 3c 28 00 74 08 48 89 df e8 fb 19 df fe 4c 89 7c 24 48 41 bf d0 00 00 00 48 89 5c 24 18 4c 03 3b 4d 89 fc 49 c1 ec 03 <43> 8a 04 2c 84 c0 0f 85 0d 0d 00 00 41 0f b6 1f 89 de 83 e6 01 31
RSP: 0018:ffffc9000092fb60 EFLAGS: 00010202
RAX: 1ffff11020b3401a RBX: ffff8881059a00d0 RCX: ffffffff84925806
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc9000092fae0
RBP: ffffc9000092fc50 R08: dffffc0000000000 R09: fffff52000125f5d
R10: fffff52000125f5d R11: 1ffff92000125f5c R12: 000000000000001a
R13: dffffc0000000000 R14: ffff8881059a0108 R15: 00000000000000d0
FS:  0000555556d3c300(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0b00ef1130 CR3: 000000011a240000 CR4: 00000000003506a0
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 fb 19 df fe       	callq  0xfedf1a0b
  10:	4c 89 7c 24 48       	mov    %r15,0x48(%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 8a 04 2c          	mov    (%r12,%r13,1),%al <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	0f 85 0d 0d 00 00    	jne    0xd43
  36:	41 0f b6 1f          	movzbl (%r15),%ebx
  3a:	89 de                	mov    %ebx,%esi
  3c:	83 e6 01             	and    $0x1,%esi
  3f:	31                   	.byte 0x31

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/05/22 01:09 android12-5.10-lts 0974b8411a58 7268fa62 .config strace log report syz C ci2-android-5-10 general protection fault in del_gendisk
* Struck through repros no longer work on HEAD.