================================================================== BUG: KASAN: slab-use-after-free in xsk_bind+0x12f3/0x1380 net/xdp/xsk.c:1761 Read of size 4 at addr ffff888053bee18c by task syz.0.300/7123 CPU: 0 UID: 0 PID: 7123 Comm: syz.0.300 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 xsk_bind+0x12f3/0x1380 net/xdp/xsk.c:1761 __sys_bind_socket net/socket.c:1945 [inline] __sys_bind+0x2e3/0x410 net/socket.c:1976 __do_sys_bind net/socket.c:1981 [inline] __se_sys_bind net/socket.c:1979 [inline] __x64_sys_bind+0x7a/0x90 net/socket.c:1979 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd90199e0d9 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:00007fd9027c0028 EFLAGS: 00000246 ORIG_RAX: 0000000000000031 RAX: ffffffffffffffda RBX: 00007fd901c25fa0 RCX: 00007fd90199e0d9 RDX: 0000000000000010 RSI: 00002000000003c0 RDI: 0000000000000003 RBP: 00007fd901a35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd901c26038 R14: 00007fd901c25fa0 R15: 00007ffdd7c4c018 Allocated by task 6795: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x321/0x600 mm/slub.c:5563 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] bpf_copy_verifier_state+0xb1f/0x1170 kernel/bpf/verifier.c:1673 push_stack+0x1b9/0x380 kernel/bpf/verifier.c:1785 check_cond_jmp_op kernel/bpf/verifier.c:16923 [inline] do_check_insn+0xaa9d/0x17d70 kernel/bpf/verifier.c:18157 do_check kernel/bpf/verifier.c:18330 [inline] do_check_common+0x3c19/0x5d30 kernel/bpf/verifier.c:19411 do_check_main kernel/bpf/verifier.c:19507 [inline] bpf_check+0x2639/0x2e10 kernel/bpf/verifier.c:21162 bpf_prog_load+0x14d6/0x1c20 kernel/bpf/syscall.c:3133 __sys_bpf+0xd0d/0xd90 kernel/bpf/syscall.c:6367 __do_sys_bpf kernel/bpf/syscall.c:6486 [inline] __se_sys_bpf kernel/bpf/syscall.c:6483 [inline] __x64_sys_bpf+0xba/0xd0 kernel/bpf/syscall.c:6483 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 6795: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2748 [inline] slab_free mm/slub.c:6499 [inline] kfree+0x1c5/0x650 mm/slub.c:6792 free_func_state kernel/bpf/verifier.c:1599 [inline] bpf_free_verifier_state+0xe4/0x270 kernel/bpf/verifier.c:1615 pop_stack kernel/bpf/verifier.c:1747 [inline] do_check kernel/bpf/verifier.c:18376 [inline] do_check_common+0x3ee2/0x5d30 kernel/bpf/verifier.c:19411 do_check_main kernel/bpf/verifier.c:19507 [inline] bpf_check+0x2639/0x2e10 kernel/bpf/verifier.c:21162 bpf_prog_load+0x14d6/0x1c20 kernel/bpf/syscall.c:3133 __sys_bpf+0xd0d/0xd90 kernel/bpf/syscall.c:6367 __do_sys_bpf kernel/bpf/syscall.c:6486 [inline] __se_sys_bpf kernel/bpf/syscall.c:6483 [inline] __x64_sys_bpf+0xba/0xd0 kernel/bpf/syscall.c:6483 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888053bee000 which belongs to the cache kmalloc-cg-1k of size 1024 The buggy address is located 396 bytes inside of freed 1024-byte region [ffff888053bee000, ffff888053bee400) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888053bee000 pfn:0x53be8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888053452001 flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000240 ffff88801b04b280 ffffea0000bdec10 ffffea0000d63c10 raw: ffff888053bee000 000000020010000e 00000000f5000000 ffff888053452001 head: 00fff00000000240 ffff88801b04b280 ffffea0000bdec10 ffffea0000d63c10 head: ffff888053bee000 000000020010000e 00000000f5000000 ffff888053452001 head: 00fff00000000003 fffffffffffffe01 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 5608, tgid 5608 (syz-executor), ts 87836737620 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436 alloc_slab_page mm/slub.c:3347 [inline] allocate_slab+0x7d/0x620 mm/slub.c:3462 new_slab mm/slub.c:3513 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7410 refill_sheaf mm/slub.c:2885 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4774 alloc_from_pcs mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:4984 [inline] __do_kmalloc_node mm/slub.c:5413 [inline] __kmalloc_noprof+0x47b/0x720 mm/slub.c:5439 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] __register_sysctl_table+0x6f/0x1370 fs/proc/proc_sysctl.c:1378 neigh_sysctl_register+0x9b1/0xa90 net/core/neighbour.c:3915 addrconf_sysctl_register+0xb3/0x1c0 net/ipv6/addrconf.c:7396 ipv6_add_dev+0xd26/0x13a0 net/ipv6/addrconf.c:460 addrconf_notify+0x771/0x1050 net/ipv6/addrconf.c:3686 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2313 [inline] call_netdevice_notifiers net/core/dev.c:2327 [inline] register_netdevice+0x18a4/0x1eb0 net/core/dev.c:11541 ipvlan_link_new+0x3e6/0xa10 drivers/net/ipvlan/ipvlan_main.c:647 rtnl_newlink_create+0x305/0x7b0 net/core/rtnetlink.c:3969 page last free pid 1 tgid 1 ts 25219606800 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] free_pages_prepare+0x9eb/0xaf0 mm/page_alloc.c:1463 __free_contig_range_common+0x174/0x340 mm/page_alloc.c:7060 destroy_args+0x4e5/0x570 mm/debug_vm_pgtable.c:993 debug_vm_pgtable+0x3f8/0x410 mm/debug_vm_pgtable.c:1368 do_one_initcall+0x250/0x870 init/main.c:1353 do_initcall_level+0x10a/0x1a0 init/main.c:1415 do_initcalls+0x59/0xa0 init/main.c:1431 kernel_init_freeable+0x29d/0x3e0 init/main.c:1666 kernel_init+0x22/0x1d0 init/main.c:1556 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff888053bee080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888053bee100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888053bee180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888053bee200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888053bee280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================