syzbot


general protection fault in do_renameat2

Status: premoderation: reported C repro on 2025/06/30 10:33
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+669c950d7f6f8335bb81@syzkaller.appspotmail.com
First crash: 7d08h, last: 6h43m
Bug presence (3)
Date Name Commit Repro Result
2025/07/07 android16-6.12 (ToT) 880d6538c524 C [report] general protection fault in do_renameat2
2025/07/07 lts (merge base) e0e2f7824338 C Didn't crash
2025/07/07 upstream (ToT) d7b8f8e20813 C Didn't crash
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 general protection fault in do_renameat2 origin:downstream C 41 17d 651d 0/2 upstream: reported C repro on 2023/09/24 22:41
android-5-10 general protection fault in do_renameat2 C 75 8d03h 661d 0/2 upstream: reported C repro on 2023/09/15 06:30
android-6-1 general protection fault in do_renameat2 origin:downstream C done 38 7d15h 659d 0/2 upstream: reported C repro on 2023/09/17 05:40

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 UID: 0 PID: 296 Comm: syz-executor428 Not tainted 6.12.30-syzkaller-ge2bf362ee23b #0 e1c904518e9113895a28c59b25a6002cdacb68bf
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:__d_entry_type include/linux/dcache.h:414 [inline]
RIP: 0010:d_is_miss include/linux/dcache.h:419 [inline]
RIP: 0010:d_is_negative include/linux/dcache.h:465 [inline]
RIP: 0010:do_renameat2+0x47e/0xc80 fs/namei.c:5118
Code: 74 24 48 44 89 fa e8 81 e3 fe ff 48 3d 01 f0 ff ff 72 0d 49 89 c5 e8 c1 5a 9b ff e9 3d 04 00 00 4c 89 e1 49 89 c4 49 c1 ec 03 <41> 0f b6 14 0c 84 d2 48 89 44 24 20 0f 85 f2 05 00 00 8b 18 be 00
RSP: 0018:ffffc900011dfd00 EFLAGS: 00010202
RAX: 0000000000000008 RBX: ffff888105314400 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff888115ba0190
RBP: ffffc900011dfee8 R08: ffff8881f6e509c7 R09: 1ffff1103edca138
R10: dffffc0000000000 R11: ffffed103edca139 R12: 0000000000000001
R13: 0000000000000000 R14: 1ffff9200023bf01 R15: 0000000000000000
FS:  00007f8fe83d96c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000003000 CR3: 000000010532e000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __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:0x7f8fe842b4f9
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:00007f8fe83d9218 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f8fe84b8408 RCX: 00007f8fe842b4f9
RDX: 00007f8fe842b4f9 RSI: 00002000000000c0 RDI: 0000200000000100
RBP: 00007f8fe84b8400 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f8fe848502c
R13: 0000200000002140 R14: 00007f8fe848300c R15: 0000200000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__d_entry_type include/linux/dcache.h:414 [inline]
RIP: 0010:d_is_miss include/linux/dcache.h:419 [inline]
RIP: 0010:d_is_negative include/linux/dcache.h:465 [inline]
RIP: 0010:do_renameat2+0x47e/0xc80 fs/namei.c:5118
Code: 74 24 48 44 89 fa e8 81 e3 fe ff 48 3d 01 f0 ff ff 72 0d 49 89 c5 e8 c1 5a 9b ff e9 3d 04 00 00 4c 89 e1 49 89 c4 49 c1 ec 03 <41> 0f b6 14 0c 84 d2 48 89 44 24 20 0f 85 f2 05 00 00 8b 18 be 00
RSP: 0018:ffffc900011dfd00 EFLAGS: 00010202
RAX: 0000000000000008 RBX: ffff888105314400 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff888115ba0190
RBP: ffffc900011dfee8 R08: ffff8881f6e509c7 R09: 1ffff1103edca138
R10: dffffc0000000000 R11: ffffed103edca139 R12: 0000000000000001
R13: 0000000000000000 R14: 1ffff9200023bf01 R15: 0000000000000000
FS:  00007f8fe83d96c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000003000 CR3: 000000010532e000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	74 24                	je     0x26
   2:	48                   	rex.W
   3:	44 89 fa             	mov    %r15d,%edx
   6:	e8 81 e3 fe ff       	call   0xfffee38c
   b:	48 3d 01 f0 ff ff    	cmp    $0xfffffffffffff001,%rax
  11:	72 0d                	jb     0x20
  13:	49 89 c5             	mov    %rax,%r13
  16:	e8 c1 5a 9b ff       	call   0xff9b5adc
  1b:	e9 3d 04 00 00       	jmp    0x45d
  20:	4c 89 e1             	mov    %r12,%rcx
  23:	49 89 c4             	mov    %rax,%r12
  26:	49 c1 ec 03          	shr    $0x3,%r12
* 2a:	41 0f b6 14 0c       	movzbl (%r12,%rcx,1),%edx <-- trapping instruction
  2f:	84 d2                	test   %dl,%dl
  31:	48 89 44 24 20       	mov    %rax,0x20(%rsp)
  36:	0f 85 f2 05 00 00    	jne    0x62e
  3c:	8b 18                	mov    (%rax),%ebx
  3e:	be                   	.byte 0xbe

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/05 18:04 android16-6.12 e2bf362ee23b 4f67c4ae .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in do_renameat2
2025/07/05 16:59 android16-6.12 e2bf362ee23b 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in do_renameat2
2025/06/30 10:32 android16-6.12 1493f0937f6d fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in do_renameat2
* Struck through repros no longer work on HEAD.