svc: failed to register nfsdv3 RPC service (errno 111). svc: failed to register nfsaclv3 RPC service (errno 111). ================================================================== BUG: KASAN: slab-out-of-bounds in list_add include/linux/list.h:169 [inline] BUG: KASAN: slab-out-of-bounds in rhashtable_walk_enter+0x333/0x370 lib/rhashtable.c:684 Read of size 8 at addr ffff8880699ce010 by task syz.1.5599/25910 CPU: 0 UID: 0 PID: 25910 Comm: syz.1.5599 Not tainted 6.11.0-rc7-syzkaller-00149-g0babf683783d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 print_address_description mm/kasan/report.c:377 [inline] print_report+0xc3/0x620 mm/kasan/report.c:488 kasan_report+0xd9/0x110 mm/kasan/report.c:601 list_add include/linux/list.h:169 [inline] rhashtable_walk_enter+0x333/0x370 lib/rhashtable.c:684 rhltable_walk_enter include/linux/rhashtable.h:1262 [inline] __nfsd_file_cache_purge+0xad/0x490 fs/nfsd/filecache.c:805 nfsd_file_cache_shutdown+0xcf/0x480 fs/nfsd/filecache.c:897 nfsd_shutdown_generic fs/nfsd/nfssvc.c:329 [inline] nfsd_shutdown_generic fs/nfsd/nfssvc.c:323 [inline] nfsd_startup_net fs/nfsd/nfssvc.c:444 [inline] nfsd_svc+0x6d4/0x970 fs/nfsd/nfssvc.c:817 nfsd_nl_threads_set_doit+0x52c/0xbc0 fs/nfsd/nfsctl.c:1714 genl_family_rcv_msg_doit+0x202/0x2f0 net/netlink/genetlink.c:1115 genl_family_rcv_msg net/netlink/genetlink.c:1195 [inline] genl_rcv_msg+0x565/0x800 net/netlink/genetlink.c:1210 netlink_rcv_skb+0x165/0x410 net/netlink/af_netlink.c:2550 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1219 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x53c/0x7f0 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x8b8/0xd70 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0x9b4/0xb50 net/socket.c:2597 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2651 __sys_sendmsg+0x117/0x1f0 net/socket.c:2680 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:0x7f2fe717def9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2fe7fdc038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f2fe7335f80 RCX: 00007f2fe717def9 RDX: 0000000000000004 RSI: 0000000020000280 RDI: 0000000000000003 RBP: 00007f2fe71f0b76 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f2fe7335f80 R15: 00007ffd44d06b38 Allocated by task 24982: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4162 [inline] __kmalloc_node_noprof+0x211/0x440 mm/slub.c:4168 __kvmalloc_node_noprof+0x6f/0x1a0 mm/util.c:650 kvmalloc_array_node_noprof include/linux/slab.h:833 [inline] __ptr_ring_init_queue_alloc_noprof include/linux/ptr_ring.h:471 [inline] ptr_ring_init_noprof include/linux/ptr_ring.h:489 [inline] skb_array_init_noprof include/linux/skb_array.h:182 [inline] pfifo_fast_init+0x125/0x3b0 net/sched/sch_generic.c:865 qdisc_create_dflt+0x101/0x440 net/sched/sch_generic.c:1015 attach_one_default_qdisc net/sched/sch_generic.c:1174 [inline] netdev_for_each_tx_queue include/linux/netdevice.h:2513 [inline] attach_default_qdiscs net/sched/sch_generic.c:1192 [inline] dev_activate+0x63c/0x12c0 net/sched/sch_generic.c:1251 __dev_open+0x396/0x4e0 net/core/dev.c:1483 __dev_change_flags+0x561/0x720 net/core/dev.c:8838 dev_change_flags+0x8f/0x160 net/core/dev.c:8910 do_setlink+0x19dd/0x3ec0 net/core/rtnetlink.c:2900 __rtnl_newlink+0xc3a/0x1920 net/core/rtnetlink.c:3696 rtnl_newlink+0x67/0xa0 net/core/rtnetlink.c:3743 rtnetlink_rcv_msg+0x3c7/0xea0 net/core/rtnetlink.c:6647 netlink_rcv_skb+0x165/0x410 net/netlink/af_netlink.c:2550 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x53c/0x7f0 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x8b8/0xd70 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] __sys_sendto+0x47f/0x4e0 net/socket.c:2204 __do_sys_sendto net/socket.c:2216 [inline] __se_sys_sendto net/socket.c:2212 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2212 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 The buggy address belongs to the object at ffff8880699cc000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 208 bytes to the right of allocated 8000-byte region [ffff8880699cc000, ffff8880699cdf40) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x699c8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 00fff00000000040 ffff88801ac42280 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000020002 00000001fdffffff 0000000000000000 head: 00fff00000000040 ffff88801ac42280 dead000000000122 0000000000000000 head: 0000000000000000 0000000000020002 00000001fdffffff 0000000000000000 head: 00fff00000000003 ffffea0001a67201 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 24982, tgid 24982 (syz-executor), ts 1290728417826, free_ts 1290676527995 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1500 prep_new_page mm/page_alloc.c:1508 [inline] get_page_from_freelist+0x1351/0x2e50 mm/page_alloc.c:3446 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4702 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x4e/0xf0 mm/slub.c:2325 allocate_slab mm/slub.c:2488 [inline] new_slab+0x84/0x260 mm/slub.c:2541 ___slab_alloc+0xdac/0x1870 mm/slub.c:3727 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3817 __slab_alloc_node mm/slub.c:3870 [inline] slab_alloc_node mm/slub.c:4029 [inline] __do_kmalloc_node mm/slub.c:4161 [inline] __kmalloc_node_noprof+0x367/0x440 mm/slub.c:4168 __kvmalloc_node_noprof+0x6f/0x1a0 mm/util.c:650 kvmalloc_array_node_noprof include/linux/slab.h:833 [inline] __ptr_ring_init_queue_alloc_noprof include/linux/ptr_ring.h:471 [inline] ptr_ring_init_noprof include/linux/ptr_ring.h:489 [inline] skb_array_init_noprof include/linux/skb_array.h:182 [inline] pfifo_fast_init+0x125/0x3b0 net/sched/sch_generic.c:865 qdisc_create_dflt+0x101/0x440 net/sched/sch_generic.c:1015 attach_one_default_qdisc net/sched/sch_generic.c:1174 [inline] netdev_for_each_tx_queue include/linux/netdevice.h:2513 [inline] attach_default_qdiscs net/sched/sch_generic.c:1192 [inline] dev_activate+0x63c/0x12c0 net/sched/sch_generic.c:1251 __dev_open+0x396/0x4e0 net/core/dev.c:1483 __dev_change_flags+0x561/0x720 net/core/dev.c:8838 dev_change_flags+0x8f/0x160 net/core/dev.c:8910 do_setlink+0x19dd/0x3ec0 net/core/rtnetlink.c:2900 page last free pid 5278 tgid 5278 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1101 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2619 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3992 [inline] slab_alloc_node mm/slub.c:4041 [inline] __kmalloc_cache_noprof+0x11e/0x310 mm/slub.c:4188 kmalloc_noprof include/linux/slab.h:681 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] nsim_fib6_rt_create drivers/net/netdevsim/fib.c:547 [inline] nsim_fib6_rt_insert drivers/net/netdevsim/fib.c:752 [inline] nsim_fib6_event drivers/net/netdevsim/fib.c:856 [inline] nsim_fib_event drivers/net/netdevsim/fib.c:889 [inline] nsim_fib_event_work+0x1ac3/0x3190 drivers/net/netdevsim/fib.c:1492 process_one_work+0x958/0x1ad0 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3393 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Memory state around the buggy address: ffff8880699cdf00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff8880699cdf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880699ce000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880699ce080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880699ce100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================