syzbot


general protection fault in vfs_rename

Status: premoderation: reported C repro on 2025/06/25 09:20
Reported-by: syzbot+32d7d040e35cdeb7472b@syzkaller.appspotmail.com
First crash: 8h21m, last: 7h40m
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 general protection fault in vfs_rename C inconclusive 28 7d20h 619d 0/2 upstream: reported C repro on 2023/10/15 16:27
android-5-15 general protection fault in vfs_rename origin:downstream C 12 9d18h 619d 0/2 upstream: reported C repro on 2023/10/15 16:52
android-6-1 general protection fault in vfs_rename origin:downstream C done 11 10d 612d 0/2 upstream: reported C repro on 2023/10/22 15:59
upstream BUG: unable to handle kernel paging request in vfs_rename overlayfs 6 868d 870d 0/29 auto-obsoleted due to no activity on 2023/06/08 14:12

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047]
CPU: 0 UID: 0 PID: 300 Comm: syz-executor105 Not tainted 6.12.30-syzkaller-g030e00a2d78c #0 57efd5a98e1182d97bd5f975427dc401009108c9
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:vfs_rename+0x1b3/0x10f0 fs/namei.c:4902
Code: c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 35 6c f1 ff 48 8b 03 48 89 44 24 48 48 8b 44 24 30 4c 8d 70 30 4d 89 f7 49 c1 ef 03 <43> 80 3c 27 00 74 08 4c 89 f7 e8 0e 6c f1 ff 49 8b 16 4c 89 6c 24
RSP: 0018:ffffc9000120fb80 EFLAGS: 00010203
RAX: 0000000000000015 RBX: ffff888129de8cf0 RCX: 0000000000000000
RDX: ffff88812afccc00 RSI: 0000000000400000 RDI: 0000000000200000
RBP: ffffc9000120fcf0 R08: ffff8881f6e509c7 R09: 1ffff1103edca138
R10: dffffc0000000000 R11: ffffed103edca139 R12: dffffc0000000000
R13: ffff888129ce8480 R14: 0000000000000045 R15: 0000000000000008
FS:  00007f5618f8a6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000020000000c000 CR3: 00000001280e6000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_renameat2+0x7d1/0xc80 fs/namei.c:5170
 __do_sys_rename fs/namei.c:5217 [inline]
 __se_sys_rename fs/namei.c:5215 [inline]
 __x64_sys_rename+0x86/0xa0 fs/namei.c:5215
 x64_sys_call+0x150b/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:83
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x58/0xf0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f561901e8f9
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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5618f8a218 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f56190af428 RCX: 00007f561901e8f9
RDX: 2f30656c69662f2e RSI: 00002000000000c0 RDI: 0000200000000280
RBP: 00007f56190af420 R08: 00007fff8a6c3b37 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f561907c0bc
R13: 000020000000a280 R14: 00007fff8a6c3a50 R15: 00007fff8a6c3b38
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:vfs_rename+0x1b3/0x10f0 fs/namei.c:4902
Code: c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 35 6c f1 ff 48 8b 03 48 89 44 24 48 48 8b 44 24 30 4c 8d 70 30 4d 89 f7 49 c1 ef 03 <43> 80 3c 27 00 74 08 4c 89 f7 e8 0e 6c f1 ff 49 8b 16 4c 89 6c 24
RSP: 0018:ffffc9000120fb80 EFLAGS: 00010203
RAX: 0000000000000015 RBX: ffff888129de8cf0 RCX: 0000000000000000
RDX: ffff88812afccc00 RSI: 0000000000400000 RDI: 0000000000200000
RBP: ffffc9000120fcf0 R08: ffff8881f6e509c7 R09: 1ffff1103edca138
R10: dffffc0000000000 R11: ffffed103edca139 R12: dffffc0000000000
R13: ffff888129ce8480 R14: 0000000000000045 R15: 0000000000000008
FS:  00007f5618f8a6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000020000000c000 CR3: 00000001280e6000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	c1 e8 03             	shr    $0x3,%eax
   3:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1)
   8:	74 08                	je     0x12
   a:	48 89 df             	mov    %rbx,%rdi
   d:	e8 35 6c f1 ff       	call   0xfff16c47
  12:	48 8b 03             	mov    (%rbx),%rax
  15:	48 89 44 24 48       	mov    %rax,0x48(%rsp)
  1a:	48 8b 44 24 30       	mov    0x30(%rsp),%rax
  1f:	4c 8d 70 30          	lea    0x30(%rax),%r14
  23:	4d 89 f7             	mov    %r14,%r15
  26:	49 c1 ef 03          	shr    $0x3,%r15
* 2a:	43 80 3c 27 00       	cmpb   $0x0,(%r15,%r12,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 f7             	mov    %r14,%rdi
  34:	e8 0e 6c f1 ff       	call   0xfff16c47
  39:	49 8b 16             	mov    (%r14),%rdx
  3c:	4c                   	rex.WR
  3d:	89                   	.byte 0x89
  3e:	6c                   	insb   (%dx),%es:(%rdi)
  3f:	24                   	.byte 0x24

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/25 10:00 android16-6.12 030e00a2d78c 26d77996 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in vfs_rename
2025/06/25 09:19 android16-6.12 030e00a2d78c 26d77996 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in vfs_rename
* Struck through repros no longer work on HEAD.