syzbot


general protection fault in idr_remove

Status: auto-obsoleted due to no activity on 2023/09/13 05:47
Reported-by: syzbot+bf763ff48ead41b102a0@syzkaller.appspotmail.com
First crash: 538d, last: 538d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in idr_remove kernfs 2 1987d 2121d 0/28 auto-closed as invalid on 2019/10/25 08:42
upstream general protection fault in idr_remove (2) kernfs 1 1606d 1602d 0/28 auto-closed as invalid on 2020/11/09 06:23

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027]
CPU: 0 PID: 10533 Comm: syz-executor.5 Not tainted 6.1.25-syzkaller-00068-g60662882b7bd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:idr_remove+0x27/0x60 lib/idr.c:154
Code: 47 0a 00 55 48 89 e5 41 56 53 49 89 f6 48 89 fb e8 7e 3a 78 fc 48 8d 7b 10 48 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 75 18 8b 43 10 49 29 c6 48 89 df 4c 89 f6 31 d2
RSP: 0018:ffffc9000cae7b78 EFLAGS: 00010202
RAX: 0000000000000004 RBX: 0000000000000010 RCX: dffffc0000000000
RDX: ffffc90001579000 RSI: 0000000000001182 RDI: 0000000000000020
RBP: ffffc9000cae7b88 R08: dffffc0000000000 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: 1ffff11021c3960f
R13: 1ffff11021c39600 R14: 00000000000495e2 R15: ffff88810e1cb000
FS:  00007f075d571700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f075c410000 CR3: 0000000131218000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 000000000000003b DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kernfs_put+0x357/0x520 fs/kernfs/dir.c:560
 kernfs_remove_by_name_ns+0xf4/0x160 fs/kernfs/dir.c:1637
 kernfs_remove_by_name include/linux/kernfs.h:631 [inline]
 remove_files fs/sysfs/group.c:28 [inline]
 sysfs_remove_group+0x10c/0x2a0 fs/sysfs/group.c:288
 sysfs_remove_groups+0x56/0xb0 fs/sysfs/group.c:312
 __kobject_del+0x9b/0x300 lib/kobject.c:587
 kobject_del+0x45/0x60 lib/kobject.c:619
 blk_unregister_queue+0x13f/0x1c0 block/blk-sysfs.c:927
 del_gendisk+0x37e/0x7e0 block/genhd.c:657
 loop_remove drivers/block/loop.c:2082 [inline]
 loop_control_remove drivers/block/loop.c:2137 [inline]
 loop_control_ioctl+0x5b0/0x760 drivers/block/loop.c:2175
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0x114/0x190 fs/ioctl.c:856
 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f075c88c149
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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:00007f075d571168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f075c9ac120 RCX: 00007f075c88c149
RDX: 0000000000000000 RSI: 0000000000004c81 RDI: 0000000000000008
RBP: 00007f075c8e7cad R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd1be378bf R14: 00007f075d571300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:idr_remove+0x27/0x60 lib/idr.c:154
Code: 47 0a 00 55 48 89 e5 41 56 53 49 89 f6 48 89 fb e8 7e 3a 78 fc 48 8d 7b 10 48 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 75 18 8b 43 10 49 29 c6 48 89 df 4c 89 f6 31 d2
RSP: 0018:ffffc9000cae7b78 EFLAGS: 00010202
RAX: 0000000000000004 RBX: 0000000000000010 RCX: dffffc0000000000
RDX: ffffc90001579000 RSI: 0000000000001182 RDI: 0000000000000020
RBP: ffffc9000cae7b88 R08: dffffc0000000000 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: 1ffff11021c3960f
R13: 1ffff11021c39600 R14: 00000000000495e2 R15: ffff88810e1cb000
FS:  00007f075d571700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f075c410000 CR3: 0000000131218000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 000000000000003b DR6: 00000000ffff0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	47 0a 00             	rex.RXB or (%r8),%r8b
   3:	55                   	push   %rbp
   4:	48 89 e5             	mov    %rsp,%rbp
   7:	41 56                	push   %r14
   9:	53                   	push   %rbx
   a:	49 89 f6             	mov    %rsi,%r14
   d:	48 89 fb             	mov    %rdi,%rbx
  10:	e8 7e 3a 78 fc       	callq  0xfc783a93
  15:	48 8d 7b 10          	lea    0x10(%rbx),%rdi
  19:	48 89 f8             	mov    %rdi,%rax
  1c:	48 c1 e8 03          	shr    $0x3,%rax
  20:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  27:	fc ff df
* 2a:	0f b6 04 08          	movzbl (%rax,%rcx,1),%eax <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	75 18                	jne    0x4a
  32:	8b 43 10             	mov    0x10(%rbx),%eax
  35:	49 29 c6             	sub    %rax,%r14
  38:	48 89 df             	mov    %rbx,%rdi
  3b:	4c 89 f6             	mov    %r14,%rsi
  3e:	31 d2                	xor    %edx,%edx

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/15 05:47 android14-6.1 60662882b7bd 76decb82 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in idr_remove
* Struck through repros no longer work on HEAD.