================================================================== BUG: KASAN: vmalloc-out-of-bounds in __list_add_valid_or_report+0x6a/0x130 lib/list_debug.c:32 Read of size 8 at addr ffffc90004a37930 by task syz.2.7/5849 CPU: 1 UID: 0 PID: 5849 Comm: syz.2.7 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/05/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 __list_add_valid_or_report+0x6a/0x130 lib/list_debug.c:32 __list_add_valid include/linux/list.h:104 [inline] __list_add include/linux/list.h:169 [inline] list_add_tail include/linux/list.h:206 [inline] rpc_queue_upcall+0x86/0x320 net/sunrpc/rpc_pipe.c:142 __cld_pipe_upcall fs/nfsd/nfs4recover.c:668 [inline] cld_pipe_upcall fs/nfsd/nfs4recover.c:691 [inline] nfsd4_cld_grace_start fs/nfsd/nfs4recover.c:1305 [inline] nfsd4_cld_tracking_init+0xd85/0x13a0 fs/nfsd/nfs4recover.c:1494 nfsd4_client_tracking_init+0xca/0x1c0 fs/nfsd/nfs4recover.c:1941 nfs4_state_start_net+0xc95/0x1180 fs/nfsd/nfs4state.c:9838 nfsd_startup_net fs/nfsd/nfssvc.c:391 [inline] nfsd_svc+0x481/0x710 fs/nfsd/nfssvc.c:775 write_threads+0x434/0x610 fs/nfsd/nfsctl.c:438 nfsctl_transaction_write+0x10f/0x160 fs/nfsd/nfsctl.c:114 vfs_write+0x296/0xba0 fs/read_write.c:685 ksys_write+0x150/0x270 fs/read_write.c:739 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 RIP: 0033:0x7fa99159e159 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:00007fa99252c028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa991826090 RCX: 00007fa99159e159 RDX: 0000000000000002 RSI: 0000200000000100 RDI: 0000000000000005 RBP: 00007fa991635024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa991826128 R14: 00007fa991826090 R15: 00007ffe62e24e68 The buggy address belongs to stack of task syz.2.7/5849 and is located at offset 112 in frame: nfsd4_cld_tracking_init+0x0/0x13a0 fs/nfsd/nfs4recover.c:2059 This frame has 2 objects: [32, 80) 'msg.i.i.i50' [112, 160) 'msg.i.i.i' The buggy address belongs to a 8-page vmalloc region starting at 0xffffc90004a30000 allocated at copy_process+0x820/0x43e0 kernel/fork.c:2133 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x331c7 memcg:ffff88802554e902 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 ffffea0000cc71c8 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff88802554e902 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x29c2(GFP_NOWAIT|__GFP_HIGHMEM|__GFP_IO|__GFP_FS|__GFP_ZERO), pid 5847, tgid 5847 (syz.2.7), ts 97132089071 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436 alloc_pages_mpol+0x21e/0x390 mm/mempolicy.c:2486 alloc_frozen_pages_noprof mm/mempolicy.c:2557 [inline] alloc_pages_noprof+0xb1/0x2b0 mm/mempolicy.c:2577 vm_area_alloc_pages mm/vmalloc.c:3689 [inline] __vmalloc_area_node mm/vmalloc.c:3914 [inline] __vmalloc_node_range_noprof+0x6e5/0x1540 mm/vmalloc.c:4104 __vmalloc_node_noprof+0xc2/0x100 mm/vmalloc.c:4165 alloc_thread_stack_node kernel/fork.c:359 [inline] dup_task_struct+0x2c6/0xa00 kernel/fork.c:930 copy_process+0x820/0x43e0 kernel/fork.c:2133 kernel_clone+0x2d7/0x940 kernel/fork.c:2766 __do_sys_clone3 kernel/fork.c:3069 [inline] __se_sys_clone3+0x33c/0x360 kernel/fork.c:3048 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 page last free pid 5621 tgid 5621 ts 97128856679 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] __free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962 __slab_free+0x274/0x2c0 mm/slub.c:5815 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4683 [inline] slab_alloc_node mm/slub.c:4996 [inline] kmem_cache_alloc_node_noprof+0x354/0x610 mm/slub.c:5068 __alloc_skb+0x1db/0x7a0 net/core/skbuff.c:704 netlink_sendmsg+0x5d4/0xb40 net/netlink/af_netlink.c:1875 sock_sendmsg_nosec+0x13a/0x180 net/socket.c:800 __sock_sendmsg net/socket.c:815 [inline] __sys_sendto+0x408/0x5a0 net/socket.c:2281 __do_sys_sendto net/socket.c:2288 [inline] __se_sys_sendto net/socket.c:2284 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2284 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: ffffc90004a37800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90004a37880: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 >ffffc90004a37900: 00 00 f2 f2 f2 f2 f8 f8 f8 f8 f8 f8 f3 f3 f3 f3 ^ ffffc90004a37980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90004a37a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================