================================================================== BUG: KASAN: slab-use-after-free in xsk_bind+0x1582/0x16c0 net/xdp/xsk.c:1761 Read of size 4 at addr ffff888037cb218c by task syz.0.435/7365 CPU: 1 UID: 0 PID: 7365 Comm: syz.0.435 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 xsk_bind+0x1582/0x16c0 net/xdp/xsk.c:1761 __sys_bind_socket net/socket.c:1945 [inline] __sys_bind_socket net/socket.c:1937 [inline] __sys_bind+0x1a9/0x260 net/socket.c:1976 __do_sys_bind net/socket.c:1981 [inline] __se_sys_bind net/socket.c:1979 [inline] __x64_sys_bind+0x72/0xb0 net/socket.c:1979 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f64b8f9e0d9 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:00007f64b9dd3028 EFLAGS: 00000246 ORIG_RAX: 0000000000000031 RAX: ffffffffffffffda RBX: 00007f64b9225fa0 RCX: 00007f64b8f9e0d9 RDX: 0000000000000010 RSI: 00002000000003c0 RDI: 0000000000000004 RBP: 00007f64b9035024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f64b9226038 R14: 00007f64b9225fa0 R15: 00007ffcdcd64fd8 Allocated by task 7267: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5414 [inline] __kvmalloc_node_noprof+0x35b/0x9b0 mm/slub.c:7005 compute_subprog_args.constprop.0+0x4cc/0x6e40 kernel/bpf/liveness.c:1639 analyze_subprog+0x406/0x31d0 kernel/bpf/liveness.c:1882 bpf_compute_subprog_arg_access+0x26f/0x14a0 kernel/bpf/liveness.c:2024 bpf_compute_live_registers+0x5f9/0x1650 kernel/bpf/liveness.c:2263 bpf_check+0x7b54/0xa7c0 kernel/bpf/verifier.c:21154 bpf_prog_load+0x1ac3/0x2a80 kernel/bpf/syscall.c:3133 __sys_bpf+0x1f46/0x4a30 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+0xce/0x140 kernel/bpf/syscall.c:6483 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 7267: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5f/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+0x22b/0x6d0 mm/slub.c:6792 compute_subprog_args.constprop.0+0x4319/0x6e40 kernel/bpf/liveness.c:1752 analyze_subprog+0x406/0x31d0 kernel/bpf/liveness.c:1882 bpf_compute_subprog_arg_access+0x26f/0x14a0 kernel/bpf/liveness.c:2024 bpf_compute_live_registers+0x5f9/0x1650 kernel/bpf/liveness.c:2263 bpf_check+0x7b54/0xa7c0 kernel/bpf/verifier.c:21154 bpf_prog_load+0x1ac3/0x2a80 kernel/bpf/syscall.c:3133 __sys_bpf+0x1f46/0x4a30 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+0xce/0x140 kernel/bpf/syscall.c:6483 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888037cb2000 which belongs to the cache kmalloc-cg-1k of size 1024 The buggy address is located 396 bytes inside of freed 1024-byte region [ffff888037cb2000, ffff888037cb2400) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x37cb0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff8880308a2201 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801c037280 dead000000000100 dead000000000122 raw: 0000000000000000 0000000200100010 00000000f5000000 ffff8880308a2201 head: 00fff00000000040 ffff88801c037280 dead000000000100 dead000000000122 head: 0000000000000000 0000000200100010 00000000f5000000 ffff8880308a2201 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 0xd60c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_RETRY_MAYFAIL|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5597, tgid 5597 (syz-executor), ts 68043714215 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x110d/0x35b0 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x2eb/0x3300 mm/page_alloc.c:5436 alloc_slab_page mm/slub.c:3347 [inline] allocate_slab mm/slub.c:3462 [inline] new_slab+0xa9/0x6e0 mm/slub.c:3513 refill_objects+0xe3/0x410 mm/slub.c:7410 refill_sheaf mm/slub.c:2885 [inline] __pcs_replace_empty_main+0x35e/0x650 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] __kvmalloc_node_noprof+0x7bb/0x9b0 mm/slub.c:7005 netif_alloc_netdev_queues net/core/dev.c:11291 [inline] alloc_netdev_mqs+0xb4e/0x15c0 net/core/dev.c:12187 rtnl_create_link+0xc13/0xf80 net/core/rtnetlink.c:3777 rtnl_newlink_create net/core/rtnetlink.c:3959 [inline] __rtnl_newlink net/core/rtnetlink.c:4098 [inline] rtnl_newlink+0x15bc/0x2620 net/core/rtnetlink.c:4215 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:7132 netlink_rcv_skb+0x159/0x420 net/netlink/af_netlink.c:2556 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x585/0x850 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x8b0/0xda0 net/netlink/af_netlink.c:1900 sock_sendmsg_nosec net/socket.c:800 [inline] __sock_sendmsg net/socket.c:815 [inline] __sys_sendto+0x48b/0x4e0 net/socket.c:2281 __do_sys_sendto net/socket.c:2288 [inline] __se_sys_sendto net/socket.c:2284 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2284 page last free pid 5599 tgid 5599 ts 67983186753 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] __free_frozen_pages+0x79f/0x10f0 mm/page_alloc.c:2962 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x47/0xf0 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x1a0/0x1f0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4683 [inline] slab_alloc_node mm/slub.c:4996 [inline] __kmalloc_cache_noprof+0x278/0x6d0 mm/slub.c:5559 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] ref_tracker_alloc+0x190/0x590 lib/ref_tracker.c:270 __netdev_tracker_alloc include/linux/netdevice.h:4528 [inline] netdev_hold include/linux/netdevice.h:4557 [inline] netdev_hold include/linux/netdevice.h:4552 [inline] rx_queue_add_kobject net/core/net-sysfs.c:1236 [inline] net_rx_queue_update_kobjects+0x32e/0x760 net/core/net-sysfs.c:1301 register_queue_kobjects net/core/net-sysfs.c:2093 [inline] netdev_register_kobject+0x2c6/0x410 net/core/net-sysfs.c:2344 register_netdevice+0x15b6/0x25a0 net/core/dev.c:11503 veth_newlink+0x44a/0xce0 drivers/net/veth.c:1899 rtnl_newlink_create net/core/rtnetlink.c:3969 [inline] __rtnl_newlink net/core/rtnetlink.c:4098 [inline] rtnl_newlink+0x1697/0x2620 net/core/rtnetlink.c:4215 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:7132 netlink_rcv_skb+0x159/0x420 net/netlink/af_netlink.c:2556 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x585/0x850 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x8b0/0xda0 net/netlink/af_netlink.c:1900 sock_sendmsg_nosec net/socket.c:800 [inline] __sock_sendmsg net/socket.c:815 [inline] __sys_sendto+0x48b/0x4e0 net/socket.c:2281 Memory state around the buggy address: ffff888037cb2080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888037cb2100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888037cb2180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888037cb2200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888037cb2280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================