svc: failed to register nfsdv3 RPC service (errno 111). svc: failed to register nfsaclv3 RPC service (errno 111). ================================================================== BUG: KASAN: slab-use-after-free in nfsd_svc+0x99a/0xab0 fs/nfsd/nfssvc.c:818 Read of size 4 at addr ffff888064c91454 by task syz.2.5193/23017 CPU: 1 PID: 23017 Comm: syz.2.5193 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xa8/0x210 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 nfsd_svc+0x99a/0xab0 fs/nfsd/nfssvc.c:818 write_threads+0x393/0x510 fs/nfsd/nfsctl.c:417 nfsctl_transaction_write+0x10c/0x150 fs/nfsd/nfsctl.c:113 vfs_write+0x299/0x9a0 fs/read_write.c:582 ksys_write+0x151/0x260 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fa01319e159 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa013f86028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa013425fa0 RCX: 00007fa01319e159 RDX: 0000000000000001 RSI: 0000200000000140 RDI: 0000000000000004 RBP: 00007fa01323503b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa013426038 R14: 00007fa013425fa0 R15: 00007fff905d8bf8 Allocated by task 23017: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:384 kmalloc include/linux/slab.h:600 [inline] kzalloc include/linux/slab.h:721 [inline] __svc_create+0x60/0xbb0 net/sunrpc/svc.c:520 svc_create_pooled+0x66a/0x7e0 net/sunrpc/svc.c:618 nfsd_create_serv+0x29f/0x5c0 fs/nfsd/nfssvc.c:672 nfsd_svc+0x183/0xab0 fs/nfsd/nfssvc.c:801 write_threads+0x393/0x510 fs/nfsd/nfsctl.c:417 nfsctl_transaction_write+0x10c/0x150 fs/nfsd/nfsctl.c:113 vfs_write+0x299/0x9a0 fs/read_write.c:582 ksys_write+0x151/0x260 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 23017: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x28/0x40 mm/kasan/generic.c:522 ____kasan_slab_free+0x126/0x1f0 mm/kasan/common.c:237 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1811 [inline] slab_free_freelist_hook+0x130/0x1a0 mm/slub.c:1837 slab_free mm/slub.c:3830 [inline] __kmem_cache_free+0xba/0x1f0 mm/slub.c:3843 kref_put include/linux/kref.h:65 [inline] svc_put include/linux/sunrpc/svc.h:124 [inline] nfsd_svc+0x762/0xab0 fs/nfsd/nfssvc.c:816 write_threads+0x393/0x510 fs/nfsd/nfsctl.c:417 nfsctl_transaction_write+0x10c/0x150 fs/nfsd/nfsctl.c:113 vfs_write+0x299/0x9a0 fs/read_write.c:582 ksys_write+0x151/0x260 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492 __call_rcu_common kernel/rcu/tree.c:2721 [inline] call_rcu+0x153/0x900 kernel/rcu/tree.c:2837 fib6_info_release include/net/ip6_fib.h:349 [inline] __ip6_del_rt+0x111/0x170 net/ipv6/route.c:3928 ip6_del_rt+0xc2/0x110 net/ipv6/route.c:3939 __ipv6_ifa_notify+0x5ed/0xb40 net/ipv6/addrconf.c:6313 addrconf_ifdown+0xe5d/0x18a0 net/ipv6/addrconf.c:3979 addrconf_notify+0x6c6/0x1010 net/ipv6/addrconf.c:-1 notifier_call_chain+0x18f/0x380 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2077 [inline] call_netdevice_notifiers net/core/dev.c:2091 [inline] dev_close_many+0x2a6/0x410 net/core/dev.c:1632 unregister_netdevice_many_notify+0x4bf/0x1910 net/core/dev.c:11135 unregister_netdevice_many net/core/dev.c:11218 [inline] default_device_exit_batch+0x962/0xa00 net/core/dev.c:11784 ops_exit_list net/core/net_namespace.c:178 [inline] cleanup_net+0x785/0xb00 net/core/net_namespace.c:656 process_one_work kernel/workqueue.c:2657 [inline] process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734 worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 The buggy address belongs to the object at ffff888064c91400 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 84 bytes inside of freed 512-byte region [ffff888064c91400, ffff888064c91600) The buggy address belongs to the physical page: page:ffffea0001932400 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888064c92c00 pfn:0x64c90 head:ffffea0001932400 order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff888017c41c80 ffffea0001975510 ffffea0001e1b910 raw: ffff888064c92c00 000000000010000e 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x152820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 13181, tgid 13181 (syz-executor), ts 664802236837, free_ts 660959949563 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1582 prep_new_page mm/page_alloc.c:1589 [inline] get_page_from_freelist+0x2181/0x22a0 mm/page_alloc.c:3221 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4501 alloc_slab_page+0x5d/0x180 mm/slub.c:1881 allocate_slab mm/slub.c:2028 [inline] new_slab+0x87/0x2d0 mm/slub.c:2081 ___slab_alloc+0xc5c/0x12f0 mm/slub.c:3253 __slab_alloc mm/slub.c:3339 [inline] __slab_alloc_node mm/slub.c:3392 [inline] slab_alloc_node mm/slub.c:3485 [inline] __kmem_cache_alloc_node+0x11f/0x250 mm/slub.c:3534 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc+0xa7/0x240 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] kzalloc include/linux/slab.h:721 [inline] fib6_info_alloc+0x30/0xf0 net/ipv6/ip6_fib.c:155 ip6_route_info_create+0x455/0x1260 net/ipv6/route.c:3805 addrconf_f6i_alloc+0x1fa/0x440 net/ipv6/route.c:4633 fixup_permanent_addr net/ipv6/addrconf.c:3585 [inline] addrconf_permanent_addr+0x294/0xa50 net/ipv6/addrconf.c:3624 addrconf_notify+0x996/0x1010 net/ipv6/addrconf.c:3696 notifier_call_chain+0x18f/0x380 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2077 [inline] call_netdevice_notifiers net/core/dev.c:2091 [inline] __dev_notify_flags+0x1ab/0x310 net/core/dev.c:8786 dev_change_flags+0xde/0x1a0 net/core/dev.c:8824 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1182 [inline] free_unref_page_prepare+0x7d7/0x8f0 mm/page_alloc.c:2366 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2459 kasan_depopulate_vmalloc_pte+0x75/0x90 mm/kasan/shadow.c:427 apply_to_pte_range mm/memory.c:2604 [inline] apply_to_pmd_range mm/memory.c:2648 [inline] apply_to_pud_range mm/memory.c:2684 [inline] apply_to_p4d_range mm/memory.c:2720 [inline] __apply_to_page_range+0x860/0xdd0 mm/memory.c:2756 kasan_release_vmalloc+0x97/0xb0 mm/kasan/shadow.c:544 __purge_vmap_area_lazy+0xf7c/0x1ab0 mm/vmalloc.c:1809 drain_vmap_area_work+0x40/0xd0 mm/vmalloc.c:1843 process_one_work kernel/workqueue.c:2657 [inline] process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734 worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 Memory state around the buggy address: ffff888064c91300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888064c91380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888064c91400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888064c91480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888064c91500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================