syzbot


general protection fault in afs_atcell_get_link

Status: upstream: reported C repro on 2025/03/18 08:10
Subsystems: afs
[Documentation on labels]
Reported-by: syzbot+76a6f18e3af82e84f264@syzkaller.appspotmail.com
First crash: 6d15h, last: 14h19m
Discussions (4)
Title Replies (including bot) Last reply
[PATCH] afs: Fix afs_atcell_get_link() to check if ws_cell is unset first 3 (3) 2025/03/19 08:23
Re: [syzbot] [afs?] general protection fault in afs_atcell_get_link 2 (3) 2025/03/18 11:17
[syzbot] [afs?] general protection fault in afs_atcell_get_link 1 (4) 2025/03/18 09:51
[PATCH] afs: Fix a null-ptr-deref in afs_atcell_get_link 1 (1) 2025/03/18 09:26
Last patch testing requests (3)
Created Duration User Patch Repo Result
2025/03/18 10:23 18m dhowells@redhat.com patch upstream OK log
2025/03/18 09:17 19m eadavis@qq.com patch upstream OK log
2025/03/18 09:10 19m enjuk@amazon.com patch upstream OK log

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000056: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x00000000000002b0-0x00000000000002b7]
CPU: 2 UID: 0 PID: 5932 Comm: syz-executor998 Not tainted 6.14.0-rc6-syzkaller-00189-gb35233e7bfa0 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:afs_atcell_get_link+0x33e/0x480 fs/afs/dynroot.c:321
Code: 89 c3 89 c6 e8 53 af 3b fe 85 db 75 64 e8 4a b4 3b fe 48 8d bd b0 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 1f 01 00 00 4c 89 f6 bf 03 00 00 00 4c 8b a5 b0
RSP: 0018:ffffc90004c3f988 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffffff837e3e8a
RDX: 0000000000000056 RSI: ffffffff837e3e16 RDI: 00000000000002b0
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
R13: ffff8881082b6000 R14: 0000000000000003 R15: ffff8880345a1480
FS:  000055559399f380(0000) GS:ffff88806a800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555939b0738 CR3: 000000002712e000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 pick_link fs/namei.c:1914 [inline]
 step_into+0x1982/0x2220 fs/namei.c:1984
 open_last_lookups fs/namei.c:3777 [inline]
 path_openat+0x74c/0x2d80 fs/namei.c:3986
 do_filp_open+0x20c/0x470 fs/namei.c:4016
 do_sys_openat2+0x17a/0x1e0 fs/open.c:1428
 do_sys_open fs/open.c:1443 [inline]
 __do_sys_openat fs/open.c:1459 [inline]
 __se_sys_openat fs/open.c:1454 [inline]
 __x64_sys_openat+0x175/0x210 fs/open.c:1454
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2317244161
Code: 75 57 89 f0 25 00 00 41 00 3d 00 00 41 00 74 49 80 3d 0a 8f 07 00 00 74 6d 89 da 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 93 00 00 00 48 8b 54 24 28 64 48 2b 14 25
RSP: 002b:00007ffd89f6cc50 EFLAGS: 00000202 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f2317244161
RDX: 0000000000000000 RSI: 00007ffd89f6cd80 RDI: 00000000ffffff9c
RBP: 00007ffd89f6cd80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffd89f6de70
R13: 00005555939a8700 R14: 000055559399f338 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:afs_atcell_get_link+0x33e/0x480 fs/afs/dynroot.c:321
Code: 89 c3 89 c6 e8 53 af 3b fe 85 db 75 64 e8 4a b4 3b fe 48 8d bd b0 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 1f 01 00 00 4c 89 f6 bf 03 00 00 00 4c 8b a5 b0
RSP: 0018:ffffc90004c3f988 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffffff837e3e8a
RDX: 0000000000000056 RSI: ffffffff837e3e16 RDI: 00000000000002b0
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
R13: ffff8881082b6000 R14: 0000000000000003 R15: ffff8880345a1480
FS:  000055559399f380(0000) GS:ffff88806a800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555939b0738 CR3: 000000002712e000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	89 c3                	mov    %eax,%ebx
   2:	89 c6                	mov    %eax,%esi
   4:	e8 53 af 3b fe       	call   0xfe3baf5c
   9:	85 db                	test   %ebx,%ebx
   b:	75 64                	jne    0x71
   d:	e8 4a b4 3b fe       	call   0xfe3bb45c
  12:	48 8d bd b0 02 00 00 	lea    0x2b0(%rbp),%rdi
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 1f 01 00 00    	jne    0x153
  34:	4c 89 f6             	mov    %r14,%rsi
  37:	bf 03 00 00 00       	mov    $0x3,%edi
  3c:	4c                   	rex.WR
  3d:	8b                   	.byte 0x8b
  3e:	a5                   	movsl  %ds:(%rsi),%es:(%rdi)
  3f:	b0                   	.byte 0xb0

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/15 02:05 upstream b35233e7bfa0 e2826670 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in afs_atcell_get_link
2025/03/20 09:02 upstream a7f2e10ecd8f 3b7445cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in afs_atcell_get_link
2025/03/20 09:02 upstream a7f2e10ecd8f 3b7445cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in afs_atcell_get_link
2025/03/18 19:32 upstream fc444ada1310 22a6c2b1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in afs_atcell_get_link
2025/03/16 19:38 upstream 31d7109a19f6 e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in afs_atcell_get_link
2025/03/15 14:50 upstream a29967be967e e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in afs_atcell_get_link
2025/03/14 08:05 upstream 4003c9e78778 e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in afs_atcell_get_link
2025/03/19 23:16 upstream a7f2e10ecd8f 3b7445cf .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in afs_atcell_get_link
2025/03/19 11:08 upstream 81e4f8d68c66 8d0a2921 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in afs_atcell_get_link
2025/03/18 23:27 upstream 76b6905c11fd 22a6c2b1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in afs_atcell_get_link
2025/03/18 19:20 upstream 76b6905c11fd 22a6c2b1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in afs_atcell_get_link
2025/03/18 12:41 upstream fc444ada1310 ce3352cd .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in afs_atcell_get_link
2025/03/18 04:49 upstream fc444ada1310 ce3352cd .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in afs_atcell_get_link
2025/03/17 22:19 upstream 4701f33a1070 489e2dc8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in afs_atcell_get_link
2025/03/17 10:27 upstream 4701f33a1070 948c34e4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in afs_atcell_get_link
2025/03/17 10:26 upstream 4701f33a1070 948c34e4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in afs_atcell_get_link
2025/03/17 10:26 upstream 4701f33a1070 948c34e4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in afs_atcell_get_link
2025/03/17 07:54 upstream 4701f33a1070 948c34e4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in afs_atcell_get_link
2025/03/15 16:51 upstream 3571e8b091f4 e2826670 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in afs_atcell_get_link
2025/03/15 01:41 upstream b35233e7bfa0 e2826670 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in afs_atcell_get_link
2025/03/18 14:12 upstream fc444ada1310 ce3352cd .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in afs_atcell_get_link
2025/03/14 17:49 upstream e3a854b577cb e2826670 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in afs_atcell_get_link
2025/03/14 16:41 upstream e3a854b577cb e2826670 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in afs_atcell_get_link
* Struck through repros no longer work on HEAD.