================================================================== BUG: KASAN: slab-out-of-bounds in nfsd+0x116/0xbb0 fs/nfsd/nfssvc.c:926 Read of size 8 at addr ffff88806724eed8 by task nfsd/6909 CPU: 0 UID: 0 PID: 6909 Comm: nfsd Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 nfsd+0x116/0xbb0 fs/nfsd/nfssvc.c:926 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 6891: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:409 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:426 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x31c/0x600 mm/slub.c:5680 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] __svc_create+0x63/0x9f0 net/sunrpc/svc.c:402 svc_create_pooled+0x8f/0x470 net/sunrpc/svc.c:503 nfsd_create_serv+0x56c/0x8b0 fs/nfsd/nfssvc.c:632 __write_ports_addxprt fs/nfsd/nfsctl.c:790 [inline] __write_ports fs/nfsd/nfsctl.c:829 [inline] write_ports+0x66b/0xdb0 fs/nfsd/nfsctl.c:882 nfsctl_transaction_write+0x10f/0x160 fs/nfsd/nfsctl.c:117 vfs_write+0x296/0xba0 fs/read_write.c:685 ksys_write+0x150/0x270 fs/read_write.c:1036 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88806724ec00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 384 bytes to the right of allocated 344-byte region [ffff88806724ec00, ffff88806724ed58) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6724c head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88813ff26c80 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88813ff26c80 dead000000000100 dead000000000122 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffffffffffff01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1150, tgid 1150 (kworker/u8:8), ts 85369417412 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1854 prep_new_page mm/page_alloc.c:1862 [inline] get_page_from_freelist+0x220f/0x2280 mm/page_alloc.c:3933 __alloc_frozen_pages_noprof+0x1fe/0x410 mm/page_alloc.c:5457 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab+0x7d/0x5e0 mm/slub.c:3499 new_slab mm/slub.c:3550 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7539 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4811 alloc_from_pcs mm/slub.c:4887 [inline] slab_alloc_node mm/slub.c:5021 [inline] __kmalloc_cache_noprof+0x396/0x600 mm/slub.c:5676 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] mca_alloc net/ipv6/mcast.c:890 [inline] __ipv6_dev_mc_inc+0x447/0xaf0 net/ipv6/mcast.c:981 addrconf_join_solict net/ipv6/addrconf.c:2265 [inline] addrconf_dad_begin net/ipv6/addrconf.c:4140 [inline] addrconf_dad_work+0x3fc/0x15c0 net/ipv6/addrconf.c:4268 process_one_work kernel/workqueue.c:3495 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3578 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3659 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 page last free pid 5595 tgid 5595 ts 76083036697 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1401 [inline] free_unref_folios+0xdc6/0x14e0 mm/page_alloc.c:3012 folios_put_refs+0x9e9/0xb30 mm/folio.c:1039 free_pages_and_swap_cache+0x2ba/0x490 mm/swap_state.c:644 __tlb_batch_free_encoded_pages mm/mmu_gather.c:138 [inline] tlb_batch_pages_flush mm/mmu_gather.c:151 [inline] tlb_flush_mmu_free mm/mmu_gather.c:397 [inline] tlb_flush_mmu+0x6d3/0xa30 mm/mmu_gather.c:404 tlb_finish_mmu+0xf4/0x220 mm/mmu_gather.c:529 unmap_region+0x2a5/0x330 mm/vma.c:516 vms_clear_ptes mm/vma.c:1371 [inline] vms_complete_munmap_vmas+0x427/0xbe0 mm/vma.c:1413 do_vmi_align_munmap+0x3b7/0x4b0 mm/vma.c:1672 do_vmi_munmap+0x252/0x2d0 mm/vma.c:1720 __vm_munmap+0x241/0x3e0 mm/vma.c:3554 __do_sys_munmap mm/mmap.c:1094 [inline] __se_sys_munmap mm/mmap.c:1091 [inline] __x64_sys_munmap+0x60/0x70 mm/mmap.c:1091 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88806724ed80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806724ee00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88806724ee80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88806724ef00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806724ef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================