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 shrinker_free+0x3b7/0x430 mm/shrinker.c:775 Read of size 4 at addr ffff8880312c0e1c by task syz.0.916/10058 CPU: 0 UID: 0 PID: 10058 Comm: syz.0.916 Not tainted 6.11.0-syzkaller-05778-g176000734ee2 #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 shrinker_free+0x3b7/0x430 mm/shrinker.c:775 nfsd_file_cache_shutdown+0xbc/0x480 fs/nfsd/filecache.c:891 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+0x9ae/0xb40 net/socket.c:2603 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2657 __sys_sendmsg+0x117/0x1f0 net/socket.c:2686 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:0x7f48a3d7def9 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:00007f48a4b46038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f48a3f36058 RCX: 00007f48a3d7def9 RDX: 0000000000000004 RSI: 0000000020000280 RDI: 0000000000000000 RBP: 00007f48a3df0b76 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f48a3f36058 R15: 00007ffc8ae307b8 Allocated by task 9197: 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:377 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:394 kmalloc_noprof include/linux/slab.h:878 [inline] addr_event.part.0+0x7b/0x4f0 drivers/infiniband/core/roce_gid_mgmt.c:839 addr_event drivers/infiniband/core/roce_gid_mgmt.c:823 [inline] inet6addr_event+0x165/0x1e0 drivers/infiniband/core/roce_gid_mgmt.c:882 notifier_call_chain+0xb9/0x410 kernel/notifier.c:93 atomic_notifier_call_chain+0x71/0x1c0 kernel/notifier.c:231 ipv6_add_addr+0x13f5/0x2060 net/ipv6/addrconf.c:1180 addrconf_add_linklocal+0x2a6/0x620 net/ipv6/addrconf.c:3317 addrconf_addr_gen+0x37b/0x3d0 net/ipv6/addrconf.c:3448 addrconf_dev_config net/ipv6/addrconf.c:3494 [inline] addrconf_init_auto_addrs+0x446/0x820 net/ipv6/addrconf.c:3572 addrconf_notify+0x6e2/0x19c0 net/ipv6/addrconf.c:3745 notifier_call_chain+0xb9/0x410 kernel/notifier.c:93 call_netdevice_notifiers_info+0xbe/0x140 net/core/dev.c:1996 netdev_state_change net/core/dev.c:1378 [inline] netdev_state_change+0x115/0x150 net/core/dev.c:1371 linkwatch_do_dev+0x12b/0x160 net/core/link_watch.c:177 __linkwatch_run_queue+0x233/0x690 net/core/link_watch.c:234 linkwatch_event+0x8f/0xc0 net/core/link_watch.c:277 process_one_work+0x958/0x1b30 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391 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 Freed by task 9194: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:579 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x51/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:2343 [inline] slab_free mm/slub.c:4580 [inline] kfree+0x158/0x4b0 mm/slub.c:4728 process_one_work+0x958/0x1b30 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391 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 Last potentially related work creation: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:541 insert_work+0x36/0x230 kernel/workqueue.c:2183 __queue_work+0x3f8/0x1070 kernel/workqueue.c:2343 queue_work_on+0x11a/0x140 kernel/workqueue.c:2390 queue_work include/linux/workqueue.h:662 [inline] addr_event.part.0+0x341/0x4f0 drivers/infiniband/core/roce_gid_mgmt.c:852 addr_event drivers/infiniband/core/roce_gid_mgmt.c:823 [inline] inet6addr_event+0x165/0x1e0 drivers/infiniband/core/roce_gid_mgmt.c:882 notifier_call_chain+0xb9/0x410 kernel/notifier.c:93 atomic_notifier_call_chain+0x71/0x1c0 kernel/notifier.c:231 ipv6_add_addr+0x13f5/0x2060 net/ipv6/addrconf.c:1180 addrconf_add_linklocal+0x2a6/0x620 net/ipv6/addrconf.c:3317 addrconf_addr_gen+0x37b/0x3d0 net/ipv6/addrconf.c:3448 addrconf_dev_config net/ipv6/addrconf.c:3494 [inline] addrconf_init_auto_addrs+0x446/0x820 net/ipv6/addrconf.c:3572 addrconf_notify+0x6e2/0x19c0 net/ipv6/addrconf.c:3745 notifier_call_chain+0xb9/0x410 kernel/notifier.c:93 call_netdevice_notifiers_info+0xbe/0x140 net/core/dev.c:1996 netdev_state_change net/core/dev.c:1378 [inline] netdev_state_change+0x115/0x150 net/core/dev.c:1371 linkwatch_do_dev+0x12b/0x160 net/core/link_watch.c:177 __linkwatch_run_queue+0x233/0x690 net/core/link_watch.c:234 linkwatch_event+0x8f/0xc0 net/core/link_watch.c:277 process_one_work+0x958/0x1b30 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391 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 The buggy address belongs to the object at ffff8880312c0e00 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 28 bytes inside of freed 192-byte region [ffff8880312c0e00, ffff8880312c0ec0) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880312c0e00 pfn:0x312c0 flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 00fff00000000200 ffff88801ac413c0 ffffea00008aa1d0 ffffea0001e45b90 raw: ffff8880312c0e00 000000000010000b 00000001fdffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 1, tgid 1 (swapper/0), ts 25410804200, free_ts 25401482999 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/0x23f0 mm/page_alloc.c:4702 alloc_pages_mpol_noprof+0x275/0x610 mm/mempolicy.c:2263 alloc_slab_page mm/slub.c:2413 [inline] allocate_slab mm/slub.c:2579 [inline] new_slab+0x28c/0x3f0 mm/slub.c:2632 ___slab_alloc+0xc4d/0x1570 mm/slub.c:3819 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3909 __slab_alloc_node mm/slub.c:3962 [inline] slab_alloc_node mm/slub.c:4123 [inline] __kmalloc_cache_noprof+0x2c5/0x310 mm/slub.c:4291 kmalloc_noprof include/linux/slab.h:878 [inline] kzalloc_noprof include/linux/slab.h:1004 [inline] call_usermodehelper_setup+0x9a/0x340 kernel/umh.c:363 kobject_uevent_env+0xde3/0x1670 lib/kobject_uevent.c:628 kernel_add_sysfs_param kernel/params.c:821 [inline] param_sysfs_builtin kernel/params.c:856 [inline] param_sysfs_builtin_init+0x2b0/0x3c0 kernel/params.c:990 do_one_initcall+0x128/0x630 init/main.c:1269 do_initcall_level init/main.c:1331 [inline] do_initcalls init/main.c:1347 [inline] do_basic_setup init/main.c:1366 [inline] kernel_init_freeable+0x660/0xc50 init/main.c:1580 kernel_init+0x1c/0x2b0 init/main.c:1469 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 page last free pid 25 tgid 25 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 vfree+0x181/0x7a0 mm/vmalloc.c:3367 delayed_vfree_work+0x56/0x70 mm/vmalloc.c:3288 process_one_work+0x958/0x1b30 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391 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: ffff8880312c0d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880312c0d80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff8880312c0e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880312c0e80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8880312c0f00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================