================================================================== BUG: KASAN: slab-out-of-bounds in __bpf_get_stackid+0x6bf/0x900 kernel/bpf/stackmap.c:271 Write of size 32 at addr ffff88805f9734a8 by task syz.4.2222/13053 CPU: 1 PID: 13053 Comm: syz.4.2222 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xa8/0x210 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x241/0x290 mm/kasan/generic.c:187 __asan_memcpy+0x40/0x70 mm/kasan/shadow.c:106 __bpf_get_stackid+0x6bf/0x900 kernel/bpf/stackmap.c:271 ____bpf_get_stackid_raw_tp kernel/trace/bpf_trace.c:1892 [inline] bpf_get_stackid_raw_tp+0x196/0x200 kernel/trace/bpf_trace.c:1881 bpf_prog_b724608cae728045+0x26/0x2a bpf_dispatcher_nop_func include/linux/bpf.h:1224 [inline] __bpf_prog_run include/linux/filter.h:616 [inline] bpf_prog_run include/linux/filter.h:623 [inline] __bpf_prog_test_run_raw_tp+0x1f9/0x440 net/bpf/test_run.c:714 bpf_prog_test_run_raw_tp+0x3f9/0x660 net/bpf/test_run.c:756 bpf_prog_test_run+0x321/0x390 kernel/bpf/syscall.c:4132 __sys_bpf+0x49d/0x890 kernel/bpf/syscall.c:5494 __do_sys_bpf kernel/bpf/syscall.c:5580 [inline] __se_sys_bpf kernel/bpf/syscall.c:5578 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5578 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fa6a6b9acb9 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:00007fa6a7aab028 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fa6a6e15fa0 RCX: 00007fa6a6b9acb9 RDX: 000000000000000c RSI: 0000200000000500 RDI: 000000000000000a RBP: 00007fa6a6c08bf7 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa6a6e16038 R14: 00007fa6a6e15fa0 R15: 00007ffda31bd3b8 Allocated by task 13053: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:198 [inline] __do_kmalloc_node mm/slab_common.c:1007 [inline] __kmalloc_node+0xb4/0x230 mm/slab_common.c:1014 kmalloc_node include/linux/slab.h:620 [inline] __bpf_map_area_alloc kernel/bpf/syscall.c:303 [inline] bpf_map_area_alloc+0x5e/0x110 kernel/bpf/syscall.c:316 prealloc_elems_and_freelist+0x86/0x1c0 kernel/bpf/stackmap.c:51 stack_map_alloc+0x33a/0x4c0 kernel/bpf/stackmap.c:114 map_create+0x877/0x12f0 kernel/bpf/syscall.c:1247 __sys_bpf+0x651/0x890 kernel/bpf/syscall.c:5458 __do_sys_bpf kernel/bpf/syscall.c:5580 [inline] __se_sys_bpf kernel/bpf/syscall.c:5578 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5578 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492 __call_rcu_common kernel/rcu/tree.c:2721 [inline] call_rcu+0x153/0x950 kernel/rcu/tree.c:2837 in6_dev_put include/net/addrconf.h:388 [inline] addrconf_ifdown+0x163f/0x18c0 net/ipv6/addrconf.c:3999 addrconf_notify+0x6c6/0x1010 net/ipv6/addrconf.c:-1 notifier_call_chain+0x197/0x380 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2090 [inline] call_netdevice_notifiers net/core/dev.c:2104 [inline] unregister_netdevice_many_notify+0x100d/0x1900 net/core/dev.c:11117 ip_tunnel_delete_nets+0x324/0x370 net/ipv4/ip_tunnel.c:1157 ops_exit_list net/core/net_namespace.c:178 [inline] setup_net+0x85c/0xa30 net/core/net_namespace.c:375 copy_net_ns+0x36d/0x5e0 net/core/net_namespace.c:520 create_new_namespaces+0x3d3/0x6f0 kernel/nsproxy.c:110 copy_namespaces+0x430/0x4a0 kernel/nsproxy.c:179 copy_process+0x1724/0x3d80 kernel/fork.c:2509 kernel_clone+0x24b/0x8a0 kernel/fork.c:2914 __do_sys_clone kernel/fork.c:3057 [inline] __se_sys_clone kernel/fork.c:3041 [inline] __x64_sys_clone+0x1b7/0x230 kernel/fork.c:3041 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Second to last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492 kvfree_call_rcu+0xee/0x790 kernel/rcu/tree.c:3452 drop_sysctl_table+0x394/0x540 fs/proc/proc_sysctl.c:1515 unregister_sysctl_table+0x41/0x60 fs/proc/proc_sysctl.c:1536 nf_conntrack_standalone_fini_sysctl net/netfilter/nf_conntrack_standalone.c:1119 [inline] nf_conntrack_fini_net net/netfilter/nf_conntrack_standalone.c:1139 [inline] nf_conntrack_pernet_exit+0xb5/0x110 net/netfilter/nf_conntrack_standalone.c:1182 ops_exit_list net/core/net_namespace.c:178 [inline] setup_net+0x85c/0xa30 net/core/net_namespace.c:375 copy_net_ns+0x36d/0x5e0 net/core/net_namespace.c:520 create_new_namespaces+0x3d3/0x6f0 kernel/nsproxy.c:110 copy_namespaces+0x430/0x4a0 kernel/nsproxy.c:179 copy_process+0x1724/0x3d80 kernel/fork.c:2509 kernel_clone+0x24b/0x8a0 kernel/fork.c:2914 __do_sys_clone kernel/fork.c:3057 [inline] __se_sys_clone kernel/fork.c:3041 [inline] __x64_sys_clone+0x1b7/0x230 kernel/fork.c:3041 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88805f973000 which belongs to the cache kmalloc-cg-2k of size 2048 The buggy address is located 1192 bytes inside of allocated 1200-byte region [ffff88805f973000, ffff88805f9734b0) The buggy address belongs to the physical page: page:ffffea00017e5c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5f970 head:ffffea00017e5c00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88803147e301 flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff888017c4f3c0 ffffea00019c6000 dead000000000002 raw: 0000000000000000 0000000000080008 00000001ffffffff ffff88803147e301 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 5775, tgid 5775 (syz-executor), ts 84425975019, free_ts 28851805755 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1554 prep_new_page mm/page_alloc.c:1561 [inline] get_page_from_freelist+0x1951/0x19e0 mm/page_alloc.c:3191 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4457 alloc_slab_page+0x5d/0x160 mm/slub.c:1881 allocate_slab mm/slub.c:2028 [inline] new_slab+0x87/0x2d0 mm/slub.c:2081 ___slab_alloc+0xc5d/0x12f0 mm/slub.c:3253 __slab_alloc mm/slub.c:3339 [inline] __slab_alloc_node mm/slub.c:3392 [inline] slab_alloc_node mm/slub.c:3485 [inline] __kmem_cache_alloc_node+0x19e/0x250 mm/slub.c:3534 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc+0xa4/0x230 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] kzalloc include/linux/slab.h:721 [inline] __register_sysctl_table+0x6e/0x1240 fs/proc/proc_sysctl.c:1373 __addrconf_sysctl_register+0x27a/0x3f0 net/ipv6/addrconf.c:7210 addrconf_sysctl_register+0x15c/0x1b0 net/ipv6/addrconf.c:7258 ipv6_add_dev+0xc42/0x11e0 net/ipv6/addrconf.c:451 addrconf_notify+0x67b/0x1010 net/ipv6/addrconf.c:3640 notifier_call_chain+0x197/0x380 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2090 [inline] call_netdevice_notifiers net/core/dev.c:2104 [inline] register_netdevice+0x16a6/0x1b90 net/core/dev.c:10344 ipcaif_newlink+0x1ed/0x4d0 net/caif/chnl_net.c:452 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1154 [inline] free_unref_page_prepare+0x7b2/0x8c0 mm/page_alloc.c:2336 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2429 free_contig_range+0xa1/0x150 mm/page_alloc.c:6369 destroy_args+0x80/0x850 mm/debug_vm_pgtable.c:1015 debug_vm_pgtable+0x411/0x440 mm/debug_vm_pgtable.c:1400 do_one_initcall+0x242/0x790 init/main.c:1250 do_initcall_level+0x137/0x1f0 init/main.c:1312 do_initcalls+0x69/0xd0 init/main.c:1328 kernel_init_freeable+0x3ed/0x580 init/main.c:1565 kernel_init+0x1d/0x1c0 init/main.c:1455 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 Memory state around the buggy address: ffff88805f973380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805f973400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805f973480: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ^ ffff88805f973500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805f973580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================