syzbot


general protection fault in simple_recursive_removal (3)

Status: auto-obsoleted due to no activity on 2024/02/08 11:24
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+1ca27bc45b010e93504f@syzkaller.appspotmail.com
First crash: 112d, last: 104d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in simple_recursive_removal (2) usb fs C error error 19 573d 688d 0/26 auto-obsoleted due to no activity on 2022/11/26 06:52
upstream general protection fault in simple_recursive_removal fs 2 1449d 1504d 0/26 closed as dup on 2020/06/28 17:09

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc000000002a: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000150-0x0000000000000157]
CPU: 0 PID: 1183 Comm: syz-executor.2 Not tainted 6.6.0-syzkaller-14651-gd2f51b3516da #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
RIP: 0010:__lock_acquire+0x10d/0x7f70 kernel/locking/lockdep.c:5004
Code: 85 75 18 00 00 83 3d 6d 4a 93 0d 00 48 89 9c 24 10 01 00 00 0f 84 f8 0f 00 00 83 3d bc 50 12 0c 00 74 34 48 89 d0 48 c1 e8 03 <42> 80 3c 00 00 74 1a 48 89 d7 e8 04 8a 7d 00 48 8b 94 24 80 00 00
RSP: 0018:ffffc90003d5f600 EFLAGS: 00010002
RAX: 000000000000002a RBX: 1ffff920007abee4 RCX: 0000000000000000
RDX: 0000000000000150 RSI: 0000000000000000 RDI: 0000000000000150
RBP: ffffc90003d5f8c8 R08: dffffc0000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff1e00d5e R12: 0000000000000000
R13: 0000000000000001 R14: 0000000000000000 R15: ffff888074e70000
FS:  00007f7f93b986c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7263175198 CR3: 000000001fbae000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5753
 down_write+0x3a/0x50 kernel/locking/rwsem.c:1579
 inode_lock include/linux/fs.h:802 [inline]
 simple_recursive_removal+0x8d/0x7c0 fs/libfs.c:520
 debugfs_remove+0x49/0x70 fs/debugfs/inode.c:764
 ptp_release+0x70/0x1e0 drivers/ptp/ptp_chardev.c:144
 ptp_read+0x17f/0x820 drivers/ptp/ptp_chardev.c:589
 posix_clock_read+0x12f/0x190 kernel/time/posix-clock.c:51
 vfs_read+0x289/0xb00 fs/read_write.c:468
 ksys_read+0x1a0/0x2c0 fs/read_write.c:613
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f7f92e7cae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f7f93b980c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f7f92f9c120 RCX: 00007f7f92e7cae9
RDX: 000000000000000e RSI: 0000000020000000 RDI: 0000000000000005
RBP: 00007f7f92ec847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f7f92f9c120 R15: 00007ffdd2aa5dc8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__lock_acquire+0x10d/0x7f70 kernel/locking/lockdep.c:5004
Code: 85 75 18 00 00 83 3d 6d 4a 93 0d 00 48 89 9c 24 10 01 00 00 0f 84 f8 0f 00 00 83 3d bc 50 12 0c 00 74 34 48 89 d0 48 c1 e8 03 <42> 80 3c 00 00 74 1a 48 89 d7 e8 04 8a 7d 00 48 8b 94 24 80 00 00
RSP: 0018:ffffc90003d5f600 EFLAGS: 00010002
RAX: 000000000000002a RBX: 1ffff920007abee4 RCX: 0000000000000000
RDX: 0000000000000150 RSI: 0000000000000000 RDI: 0000000000000150
RBP: ffffc90003d5f8c8 R08: dffffc0000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff1e00d5e R12: 0000000000000000
R13: 0000000000000001 R14: 0000000000000000 R15: ffff888074e70000
FS:  00007f7f93b986c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7263175198 CR3: 000000001fbae000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	85 75 18             	test   %esi,0x18(%rbp)
   3:	00 00                	add    %al,(%rax)
   5:	83 3d 6d 4a 93 0d 00 	cmpl   $0x0,0xd934a6d(%rip)        # 0xd934a79
   c:	48 89 9c 24 10 01 00 	mov    %rbx,0x110(%rsp)
  13:	00
  14:	0f 84 f8 0f 00 00    	je     0x1012
  1a:	83 3d bc 50 12 0c 00 	cmpl   $0x0,0xc1250bc(%rip)        # 0xc1250dd
  21:	74 34                	je     0x57
  23:	48 89 d0             	mov    %rdx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 00 00       	cmpb   $0x0,(%rax,%r8,1) <-- trapping instruction
  2f:	74 1a                	je     0x4b
  31:	48 89 d7             	mov    %rdx,%rdi
  34:	e8 04 8a 7d 00       	call   0x7d8a3d
  39:	48                   	rex.W
  3a:	8b                   	.byte 0x8b
  3b:	94                   	xchg   %eax,%esp
  3c:	24 80                	and    $0x80,%al

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/06 17:04 upstream d2f51b3516da 78fae24e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in simple_recursive_removal
2023/11/04 03:06 upstream 6bdfe2d88b9f 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in simple_recursive_removal
2023/11/03 04:57 upstream 4652b8e4f3ff c4ac074c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in simple_recursive_removal
2023/11/02 01:16 upstream 8bc9e6515183 69904c9f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce general protection fault in simple_recursive_removal
2023/11/10 11:24 upstream a12deb44f973 45e9b83e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in simple_recursive_removal
* Struck through repros no longer work on HEAD.