================================================================== BUG: KASAN: slab-out-of-bounds in hlist_empty include/linux/list.h:972 [inline] BUG: KASAN: slab-out-of-bounds in cache_clean+0x8bd/0x9a0 net/sunrpc/cache.c:471 Read of size 8 at addr ffff88806b3c0800 by task kworker/3:3/5981 CPU: 3 UID: 0 PID: 5981 Comm: kworker/3:3 Not tainted 6.15.0-syzkaller-10954-gd00a83477e7a #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: events_power_efficient do_cache_clean Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xcd/0x680 mm/kasan/report.c:521 kasan_report+0xe0/0x110 mm/kasan/report.c:634 hlist_empty include/linux/list.h:972 [inline] cache_clean+0x8bd/0x9a0 net/sunrpc/cache.c:471 do_cache_clean net/sunrpc/cache.c:520 [inline] do_cache_clean+0x29/0xa0 net/sunrpc/cache.c:513 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c2/0x780 kernel/kthread.c:464 ret_from_fork+0x5d4/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 9006: 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 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4327 [inline] __kmalloc_noprof+0x223/0x510 mm/slub.c:4339 kmalloc_noprof include/linux/slab.h:909 [inline] kmalloc_array_noprof include/linux/slab.h:948 [inline] cache_create_net+0x9d/0x220 net/sunrpc/cache.c:1747 unix_gid_cache_create+0x60/0x130 net/sunrpc/svcauth_unix.c:606 sunrpc_init_net+0x71/0x190 net/sunrpc/sunrpc_syms.c:46 ops_init+0x1e2/0x5f0 net/core/net_namespace.c:138 setup_net+0x1ff/0x510 net/core/net_namespace.c:442 copy_net_ns+0x2a6/0x5f0 net/core/net_namespace.c:574 create_new_namespaces+0x3ea/0xa90 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0xc0/0x1f0 kernel/nsproxy.c:218 ksys_unshare+0x45b/0xa40 kernel/fork.c:3121 __do_sys_unshare kernel/fork.c:3192 [inline] __se_sys_unshare kernel/fork.c:3190 [inline] __ia32_sys_unshare+0x30/0x40 kernel/fork.c:3190 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e The buggy address belongs to the object at ffff88806b3c0000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 0 bytes to the right of allocated 2048-byte region [ffff88806b3c0000, ffff88806b3c0800) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88806b3c1000 pfn:0x6b3c0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x4fff00000000240(workingset|head|node=1|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 04fff00000000240 ffff88801b442f00 ffffea000130d810 ffff888040400948 raw: ffff88806b3c1000 0000000000080005 00000000f5000000 0000000000000000 head: 04fff00000000240 ffff88801b442f00 ffffea000130d810 ffff888040400948 head: ffff88806b3c1000 0000000000080005 00000000f5000000 0000000000000000 head: 04fff00000000003 ffffea0001acf001 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5940, tgid 5940 (syz-executor), ts 45846546709, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1704 prep_new_page mm/page_alloc.c:1712 [inline] get_page_from_freelist+0x1321/0x3890 mm/page_alloc.c:3669 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:4959 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2419 alloc_slab_page mm/slub.c:2450 [inline] allocate_slab mm/slub.c:2618 [inline] new_slab+0x23b/0x330 mm/slub.c:2672 ___slab_alloc+0xd9c/0x1940 mm/slub.c:3858 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3948 __slab_alloc_node mm/slub.c:4023 [inline] slab_alloc_node mm/slub.c:4184 [inline] __do_kmalloc_node mm/slub.c:4326 [inline] __kmalloc_node_track_caller_noprof+0x2ee/0x510 mm/slub.c:4346 kmalloc_reserve+0xef/0x2c0 net/core/skbuff.c:601 pskb_expand_head+0x238/0x1030 net/core/skbuff.c:2241 netlink_trim+0x22d/0x310 net/netlink/af_netlink.c:1295 netlink_broadcast_filtered+0xca/0xf10 net/netlink/af_netlink.c:1501 nlmsg_multicast_filtered include/net/netlink.h:1151 [inline] nlmsg_multicast include/net/netlink.h:1170 [inline] nlmsg_notify+0x9e/0x220 net/netlink/af_netlink.c:2577 rtnl_notify net/core/rtnetlink.c:958 [inline] rtmsg_ifinfo_send net/core/rtnetlink.c:4419 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:4435 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:4422 [inline] rtmsg_ifinfo+0x174/0x1a0 net/core/rtnetlink.c:4441 __dev_notify_flags+0x24c/0x2e0 net/core/dev.c:9493 rtnl_configure_link+0x1b5/0x280 net/core/rtnetlink.c:3589 page_owner free stack trace missing Memory state around the buggy address: ffff88806b3c0700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806b3c0780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806b3c0800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88806b3c0880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806b3c0900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================