================================================================== BUG: KASAN: slab-out-of-bounds in __ref_is_percpu include/linux/percpu-refcount.h:174 [inline] BUG: KASAN: slab-out-of-bounds in percpu_ref_get_many+0x9c/0x140 include/linux/percpu-refcount.h:204 Read of size 8 at addr ffff888024253600 by task syz.6.5447/24905 CPU: 0 UID: 0 PID: 24905 Comm: syz.6.5447 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 __ref_is_percpu include/linux/percpu-refcount.h:174 [inline] percpu_ref_get_many+0x9c/0x140 include/linux/percpu-refcount.h:204 percpu_ref_get include/linux/percpu-refcount.h:222 [inline] obj_cgroup_get include/linux/memcontrol.h:772 [inline] refill_obj_stock+0x254/0x850 mm/memcontrol.c:3042 __memcg_slab_free_hook+0x127/0x3d0 mm/memcontrol.c:3216 memcg_slab_free_hook mm/slub.c:2242 [inline] slab_free mm/slub.c:4677 [inline] kmem_cache_free+0x223/0x400 mm/slub.c:4782 anon_vma_chain_free mm/rmap.c:147 [inline] unlink_anon_vmas+0x2cc/0x670 mm/rmap.c:421 free_pgtables+0x72b/0x9c0 mm/memory.c:413 exit_mmap+0x444/0xb50 mm/mmap.c:1291 __mmput+0x118/0x420 kernel/fork.c:1130 exit_mm+0x1da/0x2c0 kernel/exit.c:582 do_exit+0x648/0x2300 kernel/exit.c:949 do_group_exit+0x21c/0x2d0 kernel/exit.c:1102 get_signal+0x1286/0x1340 kernel/signal.c:3034 arch_do_signal_or_restart+0x9a/0x750 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop+0x75/0x110 kernel/entry/common.c:40 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x2bd/0x3b0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe13ff8ebe9 Code: Unable to access opcode bytes at 0x7fe13ff8ebbf. RSP: 002b:00007fe140dee038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: 0000200000000000 RBX: 00007fe1401b6180 RCX: 00007fe13ff8ebe9 RDX: b635773f05ebbee1 RSI: 0000000000b36000 RDI: 0000200000000000 RBP: 00007fe140011e19 R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe1401b6218 R14: 00007fe1401b6180 R15: 00007fffeef30b28 Allocated by task 24535: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:388 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:405 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4365 [inline] __kmalloc_node_track_caller_noprof+0x271/0x4e0 mm/slub.c:4384 __do_krealloc mm/slub.c:4942 [inline] krealloc_noprof+0x124/0x340 mm/slub.c:4995 copy_array+0x63/0xf0 kernel/bpf/verifier.c:1388 copy_stack_state kernel/bpf/verifier.c:1448 [inline] copy_func_state kernel/bpf/verifier.c:1729 [inline] copy_verifier_state+0x958/0xf10 kernel/bpf/verifier.c:1774 push_stack+0x19d/0x390 kernel/bpf/verifier.c:2112 check_cond_jmp_op+0x1469/0x2910 kernel/bpf/verifier.c:16761 do_check_insn kernel/bpf/verifier.c:19956 [inline] do_check+0x6751/0xe520 kernel/bpf/verifier.c:20093 do_check_common+0x1949/0x24f0 kernel/bpf/verifier.c:23260 do_check_main kernel/bpf/verifier.c:23343 [inline] bpf_check+0x1746a/0x1d2d0 kernel/bpf/verifier.c:24703 bpf_prog_load+0x1318/0x1930 kernel/bpf/syscall.c:2979 __sys_bpf+0x528/0x870 kernel/bpf/syscall.c:6029 __do_sys_bpf kernel/bpf/syscall.c:6139 [inline] __se_sys_bpf kernel/bpf/syscall.c:6137 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:6137 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 24535: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:243 [inline] __kasan_slab_free+0x5b/0x80 mm/kasan/common.c:275 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2417 [inline] slab_free mm/slub.c:4680 [inline] kfree+0x18e/0x440 mm/slub.c:4879 free_func_state kernel/bpf/verifier.c:1665 [inline] free_verifier_state+0xa7/0x230 kernel/bpf/verifier.c:1682 pop_stack kernel/bpf/verifier.c:2075 [inline] free_states kernel/bpf/verifier.c:23106 [inline] do_check_common+0x1a6c/0x24f0 kernel/bpf/verifier.c:23264 do_check_main kernel/bpf/verifier.c:23343 [inline] bpf_check+0x1746a/0x1d2d0 kernel/bpf/verifier.c:24703 bpf_prog_load+0x1318/0x1930 kernel/bpf/syscall.c:2979 __sys_bpf+0x528/0x870 kernel/bpf/syscall.c:6029 __do_sys_bpf kernel/bpf/syscall.c:6139 [inline] __se_sys_bpf kernel/bpf/syscall.c:6137 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:6137 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888024252000 which belongs to the cache kmalloc-cg-4k of size 4096 The buggy address is located 1536 bytes to the right of allocated 4096-byte region [ffff888024252000, ffff888024253000) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x24250 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888057431b41 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801a44b500 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000040004 00000000f5000000 ffff888057431b41 head: 00fff00000000040 ffff88801a44b500 dead000000000100 dead000000000122 head: 0000000000000000 0000000000040004 00000000f5000000 ffff888057431b41 head: 00fff00000000003 ffffea0000909401 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5868, tgid 5868 (syz-executor), ts 97401515456, free_ts 62492720661 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:2487 [inline] allocate_slab+0x8a/0x370 mm/slub.c:2655 new_slab mm/slub.c:2709 [inline] ___slab_alloc+0xbeb/0x1410 mm/slub.c:3891 __slab_alloc mm/slub.c:3981 [inline] __slab_alloc_node mm/slub.c:4056 [inline] slab_alloc_node mm/slub.c:4217 [inline] __do_kmalloc_node mm/slub.c:4364 [inline] __kmalloc_noprof+0x305/0x4f0 mm/slub.c:4377 kmalloc_noprof include/linux/slab.h:909 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] __register_sysctl_table+0x72/0x1340 fs/proc/proc_sysctl.c:1379 __addrconf_sysctl_register+0x328/0x4c0 net/ipv6/addrconf.c:7321 addrconf_sysctl_register+0x168/0x1c0 net/ipv6/addrconf.c:7369 ipv6_add_dev+0xd46/0x1370 net/ipv6/addrconf.c:460 addrconf_notify+0x794/0x1010 net/ipv6/addrconf.c:3650 notifier_call_chain+0x1b3/0x3e0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2267 [inline] call_netdevice_notifiers net/core/dev.c:2281 [inline] register_netdevice+0x1608/0x1ae0 net/core/dev.c:11244 veth_newlink+0x5cc/0xa50 drivers/net/veth.c:1884 rtnl_newlink_create+0x30d/0xb00 net/core/rtnetlink.c:3825 page last free pid 5615 tgid 5615 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895 discard_slab mm/slub.c:2753 [inline] __put_partials+0x156/0x1a0 mm/slub.c:3218 put_cpu_partial+0x17c/0x250 mm/slub.c:3293 __slab_free+0x2d5/0x3c0 mm/slub.c:4550 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:340 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4180 [inline] slab_alloc_node mm/slub.c:4229 [inline] kmem_cache_alloc_noprof+0x1c1/0x3c0 mm/slub.c:4236 getname_flags+0xb8/0x540 fs/namei.c:146 user_path_at+0x24/0x60 fs/namei.c:3126 user_statfs+0x94/0x170 fs/statfs.c:103 __do_sys_statfs fs/statfs.c:193 [inline] __se_sys_statfs fs/statfs.c:190 [inline] __x64_sys_statfs+0xe0/0x1b0 fs/statfs.c:190 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888024253500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888024253580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888024253600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888024253680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888024253700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================