syzbot


general protection fault in vfs_rename

Status: upstream: reported C repro on 2023/10/15 16:27
Reported-by: syzbot+09b752dc0e5d19163145@syzkaller.appspotmail.com
First crash: 241d, last: 16d
Fix bisection: the issue occurs on the latest tested release (bisect log)
  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 general protection fault in vfs_rename origin:downstream C 4 16d 241d 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 6 16d 234d 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 490d 492d 0/28 auto-obsoleted due to no activity on 2023/06/08 14:12
Last patch testing requests (3)
Created Duration User Patch Repo Result
2024/05/16 00:51 5m retest repro android13-5.10-lts error OK
2024/04/02 12:59 1h18m retest repro android13-5.10-lts report log
2023/10/29 16:22 5m retest repro android13-5.10-lts report log
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2024/05/02 20:40 2h01m bisect fix android13-5.10-lts job log (0)
2024/03/06 19:56 44m bisect fix android13-5.10-lts job log (0) log
2024/02/01 08:21 32m bisect fix android13-5.10-lts job log (0) log
2023/12/29 15:02 33m bisect fix android13-5.10-lts job log (0) log
2023/11/29 01:19 55m bisect fix android13-5.10-lts job log (0) log

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: 292 Comm: syz-executor293 Not tainted 5.10.209-syzkaller-00435-gdd976ecce2ce #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
RIP: 0010:vfs_rename+0x103/0xda0 fs/namei.c:4376
Code: c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 05 0a f4 ff 48 8b 03 48 89 44 24 48 4c 89 74 24 20 4d 8d 7e 30 4d 89 fe 49 c1 ee 03 <43> 80 3c 26 00 74 08 4c 89 ff e8 de 09 f4 ff 49 8b 07 48 89 44 24
RSP: 0018:ffffc90000b57ba0 EFLAGS: 00010203
RAX: ffff88811c4f2d00 RBX: ffff88811c46d690 RCX: ffff88811e7713c0
RDX: ffff88811e7713c0 RSI: 0000000000400000 RDI: 0000000000200000
RBP: ffffc90000b57cf0 R08: ffffffff81b416cc R09: 0000000000000000
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88811c4edb00 R14: 0000000000000007 R15: 000000000000003c
FS:  00007f12c24746c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020007000 CR3: 000000011991d000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 do_renameat2+0x88d/0x1130 fs/namei.c:4605
 __do_sys_rename fs/namei.c:4656 [inline]
 __se_sys_rename fs/namei.c:4654 [inline]
 __x64_sys_rename+0x86/0x90 fs/namei.c:4654
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f12c24f4939
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:00007f12c2474218 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f12c2585408 RCX: 00007f12c24f4939
RDX: 00007f12c24d20a6 RSI: 0000000020000140 RDI: 0000000020000100
RBP: 00007f12c2585400 R08: 00007ffc67d370e7 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f12c25520a4
R13: 000000000000006e R14: 0030656c69662f30 R15: 00007f12c25500a0
Modules linked in:
---[ end trace ab7c42a90b1fb67e ]---
RIP: 0010:vfs_rename+0x103/0xda0 fs/namei.c:4376
Code: c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 05 0a f4 ff 48 8b 03 48 89 44 24 48 4c 89 74 24 20 4d 8d 7e 30 4d 89 fe 49 c1 ee 03 <43> 80 3c 26 00 74 08 4c 89 ff e8 de 09 f4 ff 49 8b 07 48 89 44 24
RSP: 0018:ffffc90000b57ba0 EFLAGS: 00010203
RAX: ffff88811c4f2d00 RBX: ffff88811c46d690 RCX: ffff88811e7713c0
RDX: ffff88811e7713c0 RSI: 0000000000400000 RDI: 0000000000200000
RBP: ffffc90000b57cf0 R08: ffffffff81b416cc R09: 0000000000000000
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88811c4edb00 R14: 0000000000000007 R15: 000000000000003c
FS:  00007f12c24746c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020007000 CR3: 000000011991d000 CR4: 00000000003506a0
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 05 0a f4 ff       	call   0xfff40a17
  12:	48 8b 03             	mov    (%rbx),%rax
  15:	48 89 44 24 48       	mov    %rax,0x48(%rsp)
  1a:	4c 89 74 24 20       	mov    %r14,0x20(%rsp)
  1f:	4d 8d 7e 30          	lea    0x30(%r14),%r15
  23:	4d 89 fe             	mov    %r15,%r14
  26:	49 c1 ee 03          	shr    $0x3,%r14
* 2a:	43 80 3c 26 00       	cmpb   $0x0,(%r14,%r12,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 ff             	mov    %r15,%rdi
  34:	e8 de 09 f4 ff       	call   0xfff40a17
  39:	49 8b 07             	mov    (%r15),%rax
  3c:	48                   	rex.W
  3d:	89                   	.byte 0x89
  3e:	44                   	rex.R
  3f:	24                   	.byte 0x24

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/19 11:24 android13-5.10-lts dd976ecce2ce baa80228 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in vfs_rename
2023/10/15 16:15 android13-5.10-lts a27512601c2d f757a323 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in vfs_rename
2024/05/27 16:43 android13-5.10-lts a8e7f812fbc1 761766e6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in vfs_rename
2024/05/27 16:42 android13-5.10-lts a8e7f812fbc1 761766e6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in vfs_rename
2024/03/19 10:58 android13-5.10-lts dd976ecce2ce baa80228 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in vfs_rename
2023/10/15 15:47 android13-5.10-lts a27512601c2d f757a323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in vfs_rename
* Struck through repros no longer work on HEAD.