================================================================== BUG: KASAN: slab-out-of-bounds in __xfrm_state_lookup_all net/xfrm/xfrm_state.c:-1 [inline] BUG: KASAN: slab-out-of-bounds in xfrm_state_find+0x2cf2/0x5400 net/xfrm/xfrm_state.c:1494 Read of size 1 at addr ffff88802868fa70 by task kworker/u8:5/1100 CPU: 1 UID: 0 PID: 1100 Comm: kworker/u8:5 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Workqueue: bond1 bond_alb_monitor 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 __xfrm_state_lookup_all net/xfrm/xfrm_state.c:-1 [inline] xfrm_state_find+0x2cf2/0x5400 net/xfrm/xfrm_state.c:1494 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2522 [inline] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2573 [inline] xfrm_resolve_and_create_bundle+0x768/0x2f80 net/xfrm/xfrm_policy.c:2871 xfrm_bundle_lookup net/xfrm/xfrm_policy.c:3106 [inline] xfrm_lookup_with_ifid+0x58a/0x1a70 net/xfrm/xfrm_policy.c:3237 xfrm_lookup net/xfrm/xfrm_policy.c:3336 [inline] xfrm_lookup_route+0x3c/0x1c0 net/xfrm/xfrm_policy.c:3347 ip_route_output_key include/net/route.h:179 [inline] udp_tunnel_dst_lookup+0x1ba/0x3e0 net/ipv4/udp_tunnel_core.c:259 geneve_xmit_skb drivers/net/geneve.c:846 [inline] geneve_xmit+0xa99/0x2b70 drivers/net/geneve.c:1048 __netdev_start_xmit include/linux/netdevice.h:5222 [inline] netdev_start_xmit include/linux/netdevice.h:5231 [inline] xmit_one net/core/dev.c:3839 [inline] dev_hard_start_xmit+0x2d7/0x830 net/core/dev.c:3855 __dev_queue_xmit+0x1b8d/0x3b50 net/core/dev.c:4725 dev_queue_xmit include/linux/netdevice.h:3361 [inline] alb_send_lp_vid+0x324/0x510 drivers/net/bonding/bond_alb.c:949 alb_send_learning_packets+0x10d/0x2c0 drivers/net/bonding/bond_alb.c:1012 bond_alb_monitor+0x3e4/0x1800 drivers/net/bonding/bond_alb.c:1563 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 25598: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:330 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:356 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_node_noprof+0x1bb/0x3c0 mm/slub.c:4281 kmalloc_reserve+0xbd/0x290 net/core/skbuff.c:578 __alloc_skb+0x142/0x2d0 net/core/skbuff.c:669 alloc_skb include/linux/skbuff.h:1336 [inline] alloc_skb_with_frags+0xca/0x890 net/core/skbuff.c:6665 __virtio_vsock_alloc_skb_with_frags include/linux/virtio_vsock.h:68 [inline] virtio_vsock_alloc_skb include/linux/virtio_vsock.h:90 [inline] virtio_transport_alloc_skb+0x1a4/0x1120 net/vmw_vsock/virtio_transport_common.c:265 virtio_transport_send_pkt_info+0x617/0xf00 net/vmw_vsock/virtio_transport_common.c:388 virtio_transport_stream_enqueue+0xba/0x110 net/vmw_vsock/virtio_transport_common.c:1111 vsock_connectible_sendmsg+0xb0d/0x1050 net/vmw_vsock/af_vsock.c:2144 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0x21c/0x270 net/socket.c:729 sock_write_iter+0x258/0x330 net/socket.c:1179 do_iter_readv_writev+0x61c/0x8b0 fs/read_write.c:-1 vfs_writev+0x31a/0x960 fs/read_write.c:1057 do_writev+0x14d/0x2d0 fs/read_write.c:1103 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 5864: 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] kmem_cache_free+0x18f/0x400 mm/slub.c:4782 skb_release_data+0x62d/0x7c0 net/core/skbuff.c:1086 skb_release_all net/core/skbuff.c:1151 [inline] __kfree_skb net/core/skbuff.c:1165 [inline] sk_skb_reason_drop+0x127/0x170 net/core/skbuff.c:1203 kfree_skb_reason include/linux/skbuff.h:1275 [inline] __skb_queue_purge_reason include/linux/skbuff.h:3378 [inline] __skb_queue_purge include/linux/skbuff.h:3383 [inline] virtio_transport_remove_sock net/vmw_vsock/virtio_transport_common.c:1195 [inline] virtio_transport_cancel_close_work+0x1a4/0x2e0 net/vmw_vsock/virtio_transport_common.c:1208 virtio_transport_do_close net/vmw_vsock/virtio_transport_common.c:1226 [inline] virtio_transport_close_timeout+0x23c/0x3a0 net/vmw_vsock/virtio_transport_common.c:1241 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff88802868f740 which belongs to the cache skbuff_small_head of size 704 The buggy address is located 112 bytes to the right of allocated 704-byte region [ffff88802868f740, ffff88802868fa00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2868c head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801e2d9280 ffffea0000ecf400 dead000000000002 raw: 0000000000000000 0000000000130013 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801e2d9280 ffffea0000ecf400 dead000000000002 head: 0000000000000000 0000000000130013 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffea0000a1a301 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xf2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_MEMALLOC|__GFP_COMP|__GFP_NOMEMALLOC), pid 49, tgid 49 (kworker/u8:3), ts 1193060090192, free_ts 1189936944493 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] kmem_cache_alloc_node_noprof+0x280/0x3c0 mm/slub.c:4281 kmalloc_reserve+0xbd/0x290 net/core/skbuff.c:578 __alloc_skb+0x142/0x2d0 net/core/skbuff.c:669 __netdev_alloc_skb+0x108/0x970 net/core/skbuff.c:733 netdev_alloc_skb include/linux/skbuff.h:3437 [inline] dev_alloc_skb include/linux/skbuff.h:3450 [inline] __ieee80211_beacon_get+0xc06/0x1880 net/mac80211/tx.c:5555 ieee80211_beacon_get_tim+0xb4/0x2b0 net/mac80211/tx.c:5677 ieee80211_beacon_get include/net/mac80211.h:5663 [inline] mac80211_hwsim_beacon_tx+0x3ce/0x860 drivers/net/wireless/virtual/mac80211_hwsim.c:2319 __iterate_interfaces+0x2ab/0x590 net/mac80211/util.c:761 ieee80211_iterate_active_interfaces_atomic+0xdb/0x180 net/mac80211/util.c:797 mac80211_hwsim_beacon+0xbb/0x1c0 drivers/net/wireless/virtual/mac80211_hwsim.c:2353 page last free pid 25467 tgid 25462 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] free_unref_folios+0xdbd/0x1520 mm/page_alloc.c:2952 folios_put_refs+0x559/0x640 mm/swap.c:997 folio_batch_release include/linux/pagevec.h:101 [inline] truncate_inode_pages_range+0x346/0xda0 mm/truncate.c:383 kill_bdev block/bdev.c:91 [inline] blkdev_flush_mapping+0x108/0x270 block/bdev.c:712 blkdev_put_whole block/bdev.c:719 [inline] bdev_release+0x417/0x650 block/bdev.c:1144 blkdev_release+0x15/0x20 block/fops.c:699 __fput+0x44c/0xa70 fs/file_table.c:468 task_work_run+0x1d4/0x260 kernel/task_work.c:227 get_signal+0x11ed/0x1340 kernel/signal.c:2807 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 Memory state around the buggy address: ffff88802868f900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88802868f980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88802868fa00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88802868fa80: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88802868fb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================