================================================================== BUG: KASAN: slab-out-of-bounds in do_csum lib/checksum.c:73 [inline] BUG: KASAN: slab-out-of-bounds in csum_partial+0x16e/0x2b0 lib/checksum.c:128 Read of size 4 at addr ffff8880394e3e80 by task syz-executor.1/13108 CPU: 1 PID: 13108 Comm: syz-executor.1 Not tainted 6.5.0-rc2-syzkaller-00322-g725d444db6b0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x163/0x540 mm/kasan/report.c:475 kasan_report+0x175/0x1b0 mm/kasan/report.c:588 do_csum lib/checksum.c:73 [inline] csum_partial+0x16e/0x2b0 lib/checksum.c:128 gso_make_checksum include/net/gso.h:74 [inline] __skb_udp_tunnel_segment net/ipv4/udp_offload.c:140 [inline] skb_udp_tunnel_segment+0x111d/0x2160 net/ipv4/udp_offload.c:182 udp6_ufo_fragment+0x1a6/0xf00 net/ipv6/udp_offload.c:35 ipv6_gso_segment+0x7f6/0x1e70 net/ipv6/ip6_offload.c:120 skb_mac_gso_segment+0x34b/0x6a0 net/core/gso.c:53 __skb_gso_segment+0x327/0x4c0 net/core/gso.c:124 skb_gso_segment include/net/gso.h:83 [inline] ip6_finish_output_gso_slowpath_drop net/ipv6/ip6_output.c:153 [inline] __ip6_finish_output net/ipv6/ip6_output.c:189 [inline] ip6_finish_output+0x5a4/0xa80 net/ipv6/ip6_output.c:207 ip6tunnel_xmit include/net/ip6_tunnel.h:161 [inline] udp_tunnel6_xmit_skb+0x587/0x9e0 net/ipv6/ip6_udp_tunnel.c:109 geneve6_xmit_skb drivers/net/geneve.c:1071 [inline] geneve_xmit+0x27cd/0x3ac0 drivers/net/geneve.c:1100 __netdev_start_xmit include/linux/netdevice.h:4910 [inline] netdev_start_xmit include/linux/netdevice.h:4924 [inline] xmit_one net/core/dev.c:3537 [inline] dev_hard_start_xmit+0x241/0x750 net/core/dev.c:3553 __dev_queue_xmit+0x19b9/0x38b0 net/core/dev.c:4203 packet_snd net/packet/af_packet.c:3081 [inline] packet_sendmsg+0x4647/0x6150 net/packet/af_packet.c:3113 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg net/socket.c:748 [inline] __sys_sendto+0x484/0x640 net/socket.c:2134 __do_sys_sendto net/socket.c:2146 [inline] __se_sys_sendto net/socket.c:2142 [inline] __x64_sys_sendto+0xde/0xf0 net/socket.c:2142 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f6d4487cb29 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6d4569a0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f6d4499bf80 RCX: 00007f6d4487cb29 RDX: 000000000000fc13 RSI: 0000000020000280 RDI: 0000000000000003 RBP: 00007f6d448c847a R08: 0000000000000000 R09: 000000000000002f R10: 0000000000000800 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f6d4499bf80 R15: 00007fffa6037608 Allocated by task 13108: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x66/0x70 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook+0x6c/0x3b0 mm/slab.h:762 slab_alloc_node mm/slub.c:3470 [inline] kmem_cache_alloc_node+0x149/0x330 mm/slub.c:3515 kmalloc_reserve+0x8a/0x240 net/core/skbuff.c:559 __alloc_skb+0x1b1/0x420 net/core/skbuff.c:644 skb_segment+0xe23/0x4260 net/core/skbuff.c:4512 __udp_gso_segment+0x3fc/0x22d0 net/ipv4/udp_offload.c:298 inet_gso_segment+0x64a/0x1530 net/ipv4/af_inet.c:1398 skb_mac_gso_segment+0x34b/0x6a0 net/core/gso.c:53 __skb_udp_tunnel_segment net/ipv4/udp_offload.c:87 [inline] skb_udp_tunnel_segment+0xa07/0x2160 net/ipv4/udp_offload.c:182 udp6_ufo_fragment+0x1a6/0xf00 net/ipv6/udp_offload.c:35 ipv6_gso_segment+0x7f6/0x1e70 net/ipv6/ip6_offload.c:120 skb_mac_gso_segment+0x34b/0x6a0 net/core/gso.c:53 __skb_gso_segment+0x327/0x4c0 net/core/gso.c:124 skb_gso_segment include/net/gso.h:83 [inline] ip6_finish_output_gso_slowpath_drop net/ipv6/ip6_output.c:153 [inline] __ip6_finish_output net/ipv6/ip6_output.c:189 [inline] ip6_finish_output+0x5a4/0xa80 net/ipv6/ip6_output.c:207 ip6tunnel_xmit include/net/ip6_tunnel.h:161 [inline] udp_tunnel6_xmit_skb+0x587/0x9e0 net/ipv6/ip6_udp_tunnel.c:109 geneve6_xmit_skb drivers/net/geneve.c:1071 [inline] geneve_xmit+0x27cd/0x3ac0 drivers/net/geneve.c:1100 __netdev_start_xmit include/linux/netdevice.h:4910 [inline] netdev_start_xmit include/linux/netdevice.h:4924 [inline] xmit_one net/core/dev.c:3537 [inline] dev_hard_start_xmit+0x241/0x750 net/core/dev.c:3553 __dev_queue_xmit+0x19b9/0x38b0 net/core/dev.c:4203 packet_snd net/packet/af_packet.c:3081 [inline] packet_sendmsg+0x4647/0x6150 net/packet/af_packet.c:3113 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg net/socket.c:748 [inline] __sys_sendto+0x484/0x640 net/socket.c:2134 __do_sys_sendto net/socket.c:2146 [inline] __se_sys_sendto net/socket.c:2142 [inline] __x64_sys_sendto+0xde/0xf0 net/socket.c:2142 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff8880394e3c00 which belongs to the cache skbuff_small_head of size 640 The buggy address is located 0 bytes to the right of allocated 640-byte region [ffff8880394e3c00, ffff8880394e3e80) The buggy address belongs to the physical page: page:ffffea0000e53800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x394e0 head:ffffea0000e53800 order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000010200 ffff88814326c780 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000150015 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x1d2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 5138, tgid 5138 (kworker/u4:6), ts 328339281052, free_ts 316412656146 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1570 prep_new_page mm/page_alloc.c:1577 [inline] get_page_from_freelist+0x31e8/0x3370 mm/page_alloc.c:3221 __alloc_pages+0x255/0x670 mm/page_alloc.c:4477 alloc_slab_page+0x6a/0x160 mm/slub.c:1862 allocate_slab mm/slub.c:2009 [inline] new_slab+0x84/0x2f0 mm/slub.c:2062 ___slab_alloc+0xade/0x1100 mm/slub.c:3215 __slab_alloc mm/slub.c:3314 [inline] __slab_alloc_node mm/slub.c:3367 [inline] slab_alloc_node mm/slub.c:3460 [inline] kmem_cache_alloc_node+0x1e2/0x330 mm/slub.c:3515 kmalloc_reserve+0x8a/0x240 net/core/skbuff.c:559 __alloc_skb+0x1b1/0x420 net/core/skbuff.c:644 skb_copy+0xef/0x760 net/core/skbuff.c:1925 mac80211_hwsim_tx_frame_no_nl+0x1063/0x18c0 drivers/net/wireless/virtual/mac80211_hwsim.c:1836 mac80211_hwsim_tx_frame+0x1cc/0x220 drivers/net/wireless/virtual/mac80211_hwsim.c:2172 mac80211_hwsim_beacon_tx+0x3a5/0x750 drivers/net/wireless/virtual/mac80211_hwsim.c:2265 __iterate_interfaces+0x21e/0x4b0 net/mac80211/util.c:766 ieee80211_iterate_active_interfaces_atomic+0xb3/0x140 net/mac80211/util.c:802 mac80211_hwsim_beacon+0xd4/0x1e0 drivers/net/wireless/virtual/mac80211_hwsim.c:2291 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1161 [inline] free_unref_page_prepare+0x903/0xa30 mm/page_alloc.c:2348 free_unref_page+0x37/0x3f0 mm/page_alloc.c:2443 __slab_free+0x2f6/0x390 mm/slub.c:3707 qlist_free_all+0x22/0x60 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x14b/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x23/0x70 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook+0x6c/0x3b0 mm/slab.h:762 slab_alloc_node mm/slub.c:3470 [inline] kmem_cache_alloc_node+0x149/0x330 mm/slub.c:3515 __alloc_skb+0x181/0x420 net/core/skbuff.c:634 alloc_skb include/linux/skbuff.h:1289 [inline] netlink_alloc_large_skb net/netlink/af_netlink.c:1211 [inline] netlink_sendmsg+0x6fc/0xd60 net/netlink/af_netlink.c:1889 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg net/socket.c:748 [inline] ____sys_sendmsg+0x592/0x890 net/socket.c:2494 ___sys_sendmsg net/socket.c:2548 [inline] __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2577 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff8880394e3d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880394e3e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880394e3e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880394e3f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880394e3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================