================================================================== BUG: KASAN: slab-use-after-free in xsk_bind+0x12f3/0x1380 net/xdp/xsk.c:1761 Read of size 4 at addr ffff888053da198c by task syz.0.774/9907 CPU: 1 UID: 0 PID: 9907 Comm: syz.0.774 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/05/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:0x7febedf9e0d9 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:00007febeef2b028 EFLAGS: 00000246 ORIG_RAX: 0000000000000031 RAX: ffffffffffffffda RBX: 00007febee226090 RCX: 00007febedf9e0d9 RDX: 0000000000000010 RSI: 00002000000003c0 RDI: 0000000000000004 RBP: 00007febee035024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007febee226128 R14: 00007febee226090 R15: 00007fff7b208bb8 Allocated by task 9751: 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+0x331/0x660 mm/slub.c:5484 _kmalloc_noprof include/linux/slab.h:988 [inline] _kzalloc_noprof include/linux/slab.h:1309 [inline] bpf_copy_verifier_state+0xb1f/0x1170 kernel/bpf/verifier.c:1673 bpf_is_state_visited+0x378d/0x47e0 kernel/bpf/states.c:1577 do_check kernel/bpf/verifier.c:18241 [inline] do_check_common+0x2848/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 9751: 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:2678 [inline] slab_free mm/slub.c:6372 [inline] kfree+0x1c5/0x640 mm/slub.c:6687 free_func_state kernel/bpf/verifier.c:1599 [inline] bpf_free_verifier_state+0xe4/0x270 kernel/bpf/verifier.c:1615 free_states kernel/bpf/verifier.c:19260 [inline] do_check_common+0x51ec/0x5d30 kernel/bpf/verifier.c:19419 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 ffff888053da1800 which belongs to the cache kmalloc-cg-1k of size 1024 The buggy address is located 396 bytes inside of freed 1024-byte region [ffff888053da1800, ffff888053da1c00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888053da4800 pfn:0x53da0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88802f089401 flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000240 ffff88801b04b280 ffffea0001f7a810 ffffea0000cd7a10 raw: ffff888053da4800 000000080010000b 00000000f5000000 ffff88802f089401 head: 00fff00000000240 ffff88801b04b280 ffffea0001f7a810 ffffea0000cd7a10 head: ffff888053da4800 000000080010000b 00000000f5000000 ffff88802f089401 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 83677695442 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:3267 [inline] allocate_slab+0x7c/0x5e0 mm/slub.c:3382 new_slab mm/slub.c:3428 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7305 refill_sheaf mm/slub.c:2805 [inline] __pcs_replace_empty_main+0x2c3/0x6b0 mm/slub.c:4677 alloc_from_pcs mm/slub.c:4775 [inline] slab_alloc_node mm/slub.c:4907 [inline] __do_kmalloc_node mm/slub.c:5336 [inline] __kmalloc_noprof+0x489/0x720 mm/slub.c:5362 _kmalloc_noprof include/linux/slab.h:992 [inline] _kzalloc_noprof include/linux/slab.h:1309 [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 addrconf_notify+0x808/0x1050 net/ipv6/addrconf.c:3819 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] netif_change_name+0x5f3/0x970 net/core/dev.c:1531 do_setlink+0xb66/0x4670 net/core/rtnetlink.c:3246 rtnl_changelink net/core/rtnetlink.c:3905 [inline] __rtnl_newlink net/core/rtnetlink.c:4076 [inline] rtnl_newlink+0x15a3/0x1c30 net/core/rtnetlink.c:4215 rtnetlink_rcv_msg+0x802/0xc00 net/core/rtnetlink.c:7132 page last free pid 1 tgid 1 ts 21063865163 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: ffff888053da1880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888053da1900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888053da1980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888053da1a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888053da1a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================