syzbot
general protection fault in vfs_rename
Status:
upstream: reported C repro on 2023/10/15 16:52
Bug presence:
origin:downstream
[Documentation on labels]
Reported-by: syzbot+a80f1dcaba9e162cda54@syzkaller.appspotmail.com
First crash: 1120d, last: 1d08h
▶
▼
Bug presence (3)
| Date |
Name |
Commit |
Repro |
Result |
| 2023/10/15 |
android13-5.15-lts (ToT) |
754f8cc9b7de |
C
|
[report] general protection fault in vfs_rename
|
| 2023/10/15 |
lts (merge base) |
35ecaa3632bf |
C
|
Didn't crash |
| 2023/10/15 |
upstream (ToT) |
11d3f7261395 |
C
|
Didn't crash |
▶
▼
Last patch testing requests (10)
▶
▼
Fix bisection attempts (10)
Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000007: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000038-0x000000000000003f]
CPU: 1 PID: 307 Comm: syz-executor566 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026
RIP: 0010:vfs_rename+0x1ab/0x10e0 fs/namei.c:4729
Code: 30 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 68 e8 f4 ff 48 8b 1b 48 8b 44 24 30 48 8d 78 30 49 89 ff 49 c1 ef 03 <43> 80 3c 27 00 48 89 7c 24 50 74 0a e8 44 e8 f4 ff 48 8b 7c 24 50
RSP: 0018:ffffc900009d7b60 EFLAGS: 00010203
RAX: 000000000000000f RBX: ffff888112a8d200 RCX: ffff88811dbd5000
RDX: 0000000000000000 RSI: 0000000000400000 RDI: 000000000000003f
RBP: ffffc900009d7cd0 R08: ffff888121878f3f R09: 1ffff1102430f1e7
R10: dffffc0000000000 R11: ffffed102430f1e8 R12: dffffc0000000000
R13: ffff888121893600 R14: ffffc900009d7dc0 R15: 0000000000000007
FS: 00007f26e85686c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000008000 CR3: 000000012239a000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
do_renameat2+0x965/0xfc0 fs/namei.c:4993
__do_sys_rename fs/namei.c:5039 [inline]
__se_sys_rename fs/namei.c:5037 [inline]
__x64_sys_rename+0x86/0x90 fs/namei.c:5037
x64_sys_call+0x680/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:83
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f26e85c9279
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 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 d0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f26e8568218 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f26e867eb88 RCX: 00007f26e85c9279
RDX: 00007f26e85b91fe RSI: 00002000000068c0 RDI: 0000200000006880
RBP: 00007f26e867eb80 R08: 00007f26e85686c0 R09: 33203a6b63617473
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f26e864a0dc
R13: 0000200000006900 R14: 00007ffd1dc7bd40 R15: 00007ffd1dc7be28
</TASK>
Modules linked in:
---[ end trace 2e8df31dc6db71d7 ]---
RIP: 0010:vfs_rename+0x1ab/0x10e0 fs/namei.c:4729
Code: 30 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 68 e8 f4 ff 48 8b 1b 48 8b 44 24 30 48 8d 78 30 49 89 ff 49 c1 ef 03 <43> 80 3c 27 00 48 89 7c 24 50 74 0a e8 44 e8 f4 ff 48 8b 7c 24 50
RSP: 0018:ffffc900009d7b60 EFLAGS: 00010203
RAX: 000000000000000f RBX: ffff888112a8d200 RCX: ffff88811dbd5000
RDX: 0000000000000000 RSI: 0000000000400000 RDI: 000000000000003f
RBP: ffffc900009d7cd0 R08: ffff888121878f3f R09: 1ffff1102430f1e7
R10: dffffc0000000000 R11: ffffed102430f1e8 R12: dffffc0000000000
R13: ffff888121893600 R14: ffffc900009d7dc0 R15: 0000000000000007
FS: 00007f26e85686c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000008000 CR3: 000000012239a000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 30 48 89 xor %cl,-0x77(%rax)
3: d8 48 c1 fmuls -0x3f(%rax)
6: e8 03 42 80 3c call 0x3c80420e
b: 20 00 and %al,(%rax)
d: 74 08 je 0x17
f: 48 89 df mov %rbx,%rdi
12: e8 68 e8 f4 ff call 0xfff4e87f
17: 48 8b 1b mov (%rbx),%rbx
1a: 48 8b 44 24 30 mov 0x30(%rsp),%rax
1f: 48 8d 78 30 lea 0x30(%rax),%rdi
23: 49 89 ff mov %rdi,%r15
26: 49 c1 ef 03 shr $0x3,%r15
* 2a: 43 80 3c 27 00 cmpb $0x0,(%r15,%r12,1) <-- trapping instruction
2f: 48 89 7c 24 50 mov %rdi,0x50(%rsp)
34: 74 0a je 0x40
36: e8 44 e8 f4 ff call 0xfff4e87f
3b: 48 8b 7c 24 50 mov 0x50(%rsp),%rdi
* Struck through repros no longer work on HEAD.