Hello,
syzbot found the following issue on:
HEAD commit: dc5c83b7f5f8 Linux 6.1.178
git tree: linux-6.1.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=1438c49e580000
kernel config:
https://syzkaller.appspot.com/x/.config?x=872c04466179833f
dashboard link:
https://syzkaller.appspot.com/bug?extid=58b170c28cb18dcbe370
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
userspace arch: arm64
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/96393e4697a3/disk-dc5c83b7.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/0d4afce44fab/vmlinux-dc5c83b7.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/4787e310d875/Image-dc5c83b7.gz.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+58b170...@syzkaller.appspotmail.com
svc: failed to register nfsdv3 RPC service (errno 111).
svc: failed to register nfsaclv3 RPC service (errno 111).
==================================================================
BUG: KASAN: use-after-free in nfsd_svc+0x818/0x948 fs/nfsd/nfssvc.c:813
Read of size 4 at addr ffff0000d9e33054 by task syz.4.29/4492
CPU: 0 PID: 4492 Comm: syz.4.29 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/02/2026
Call trace:
dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:158
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165
__dump_stack+0x30/0x40 lib/dump_stack.c:88
dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106
print_address_description+0x88/0x218 mm/kasan/report.c:316
print_report+0x50/0x68 mm/kasan/report.c:420
kasan_report+0xa8/0xfc mm/kasan/report.c:524
__asan_report_load4_noabort+0x2c/0x38 mm/kasan/report_generic.c:350
nfsd_svc+0x818/0x948 fs/nfsd/nfssvc.c:813
write_threads+0x2b4/0x310 fs/nfsd/nfsctl.c:424
nfsctl_transaction_write+0x114/0x164 fs/nfsd/nfsctl.c:114
vfs_write+0x2a8/0x7c8 fs/read_write.c:582
ksys_write+0x12c/0x228 fs/read_write.c:637
__do_sys_write fs/read_write.c:649 [inline]
__se_sys_write fs/read_write.c:646 [inline]
__arm64_sys_write+0x7c/0x90 fs/read_write.c:646
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
Allocated by task 4492:
kasan_save_stack mm/kasan/common.c:46 [inline]
kasan_set_track+0x4c/0x80 mm/kasan/common.c:53
kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505
____kasan_kmalloc mm/kasan/common.c:375 [inline]
__kasan_kmalloc+0xa0/0xb8 mm/kasan/common.c:384
kasan_kmalloc include/linux/kasan.h:211 [inline]
kmalloc_trace+0x7c/0x94 mm/slab_common.c:1031
kmalloc include/linux/slab.h:563 [inline]
kzalloc include/linux/slab.h:699 [inline]
__svc_create+0x80/0x89c net/sunrpc/svc.c:464
svc_create_pooled+0x648/0x7d8 net/sunrpc/svc.c:552
nfsd_create_serv+0x284/0x6a4 fs/nfsd/nfssvc.c:667
nfsd_svc+0x168/0x948 fs/nfsd/nfssvc.c:796
write_threads+0x2b4/0x310 fs/nfsd/nfsctl.c:424
nfsctl_transaction_write+0x114/0x164 fs/nfsd/nfsctl.c:114
vfs_write+0x2a8/0x7c8 fs/read_write.c:582
ksys_write+0x12c/0x228 fs/read_write.c:637
__do_sys_write fs/read_write.c:649 [inline]
__se_sys_write fs/read_write.c:646 [inline]
__arm64_sys_write+0x7c/0x90 fs/read_write.c:646
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
Freed by task 4492:
kasan_save_stack mm/kasan/common.c:46 [inline]
kasan_set_track+0x4c/0x80 mm/kasan/common.c:53
kasan_save_free_info+0x38/0x5c mm/kasan/generic.c:516
____kasan_slab_free+0x148/0x1b0 mm/kasan/common.c:237
__kasan_slab_free+0x18/0x28 mm/kasan/common.c:245
kasan_slab_free include/linux/kasan.h:177 [inline]
slab_free_hook mm/slub.c:1729 [inline]
slab_free_freelist_hook+0x16c/0x1e8 mm/slub.c:1755
slab_free mm/slub.c:3687 [inline]
__kmem_cache_free+0xbc/0x21c mm/slub.c:3700
kfree+0xd0/0x1a8 mm/slab_common.c:988
svc_destroy+0x144/0x184 net/sunrpc/svc.c:586
kref_put include/linux/kref.h:65 [inline]
svc_put include/linux/sunrpc/svc.h:123 [inline]
nfsd_svc+0x63c/0x948 fs/nfsd/nfssvc.c:811
write_threads+0x2b4/0x310 fs/nfsd/nfsctl.c:424
nfsctl_transaction_write+0x114/0x164 fs/nfsd/nfsctl.c:114
vfs_write+0x2a8/0x7c8 fs/read_write.c:582
ksys_write+0x12c/0x228 fs/read_write.c:637
__do_sys_write fs/read_write.c:649 [inline]
__se_sys_write fs/read_write.c:646 [inline]
__arm64_sys_write+0x7c/0x90 fs/read_write.c:646
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
The buggy address belongs to the object at ffff0000d9e33000
which belongs to the cache kmalloc-512 of size 512
The buggy address is located 84 bytes inside of
512-byte region [ffff0000d9e33000, ffff0000d9e33200)
The buggy address belongs to the physical page:
page:000000008058ec5b refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x119e30
head:000000008058ec5b order:2 compound_mapcount:0 compound_pincount:0
flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff)
raw: 05ffc00000010200 fffffc0003647900 dead000000000002 ffff0000c0002600
raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff0000d9e32f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff0000d9e32f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff0000d9e33000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff0000d9e33080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff0000d9e33100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
Unable to handle kernel paging request at virtual address 0006c00000000003
Mem abort info:
ESR = 0x0000000096000004
EC = 0x25: DABT (current EL), IL = 32 bits
SET = 0, FnV = 0
EA = 0, S1PTW = 0
FSC = 0x04: level 0 translation fault
Data abort info:
ISV = 0, ISS = 0x00000004
CM = 0, WnR = 0
[0006c00000000003] address between user and kernel address ranges
Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 4492 Comm: syz.4.29 Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/02/2026
pstate: 02400005 (nzcv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--)
pc : svc_unregister+0x130/0x624 net/sunrpc/svc.c:1143
lr : svc_unregister+0x104/0x624 net/sunrpc/svc.c:1141
sp : ffff800021a97820
x29: ffff800021a97850 x28: dfff800000000000 x27: ffff0000efdccc98
x26: ffff0000df5b1c40 x25: 003a00000000001c x24: 0000000000000001
x23: ffff0000efdccc94 x22: 1fffe0001dfb9992 x21: ffff0000efdccc80
x20: 1fffe0001dfb9993 x19: 0000000000000008 x18: 1fffe00033e7697e
x17: ffff80001537d000 x16: ffff800008043b30 x15: 0000000040000000
x14: 0000000000000001 x13: 1fffe00019f3b380 x12: 0000000000080000
x11: 00000000000765ca x10: ffff800029ebd000 x9 : ffff80001c5fab10
x8 : 0007400000000003 x7 : ffff800011cec160 x6 : ffff800010f4e7d8
x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff800010f0ab38
x2 : 0000000000000000 x1 : 0000000000000008 x0 : 0000000000000000
Call trace:
svc_unregister+0x130/0x624 net/sunrpc/svc.c:1143
svc_rpcb_cleanup+0x28/0x40 net/sunrpc/svc.c:407
nfsd_last_thread+0x114/0x2e4 fs/nfsd/nfssvc.c:560
nfsd_svc+0x698/0x948 fs/nfsd/nfssvc.c:814
write_threads+0x2b4/0x310 fs/nfsd/nfsctl.c:424
nfsctl_transaction_write+0x114/0x164 fs/nfsd/nfsctl.c:114
vfs_write+0x2a8/0x7c8 fs/read_write.c:582
ksys_write+0x12c/0x228 fs/read_write.c:637
__do_sys_write fs/read_write.c:649 [inline]
__se_sys_write fs/read_write.c:646 [inline]
__arm64_sys_write+0x7c/0x90 fs/read_write.c:646
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
Code: f8736b28 b4000148 91007119 d343ff28 (38fc6908)
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
0: f8736b28 ldr x8, [x25, x19]
4: b4000148 cbz x8, 0x2c
8: 91007119 add x25, x8, #0x1c
c: d343ff28 lsr x8, x25, #3
* 10: 38fc6908 ldrsb w8, [x8, x28] <-- trapping instruction
---
This report is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup