================================================================== BUG: KASAN: slab-out-of-bounds in do_csum+0x2cd/0x2e0 lib/checksum.c:73 Read of size 4 at addr ffff888078548580 by task syz-executor.5/17415 CPU: 0 PID: 17415 Comm: syz-executor.5 Not tainted 6.5.0-rc5-syzkaller-00021-ga027b2eca0b7 #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+0xd9/0x1b0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xc4/0x620 mm/kasan/report.c:475 kasan_report+0xda/0x110 mm/kasan/report.c:588 do_csum+0x2cd/0x2e0 lib/checksum.c:73 csum_partial+0x23/0x50 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+0x126d/0x2000 net/ipv4/udp_offload.c:182 udp6_ufo_fragment+0x9f1/0xd50 net/ipv6/udp_offload.c:35 ipv6_gso_segment+0x5c4/0x17b0 net/ipv6/ip6_offload.c:120 skb_mac_gso_segment+0x292/0x610 net/core/gso.c:53 __skb_gso_segment+0x339/0x710 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+0xea2/0x11d0 net/ipv6/ip6_output.c:207 NF_HOOK_COND include/linux/netfilter.h:292 [inline] ip6_output+0x243/0x890 net/ipv6/ip6_output.c:228 dst_output include/net/dst.h:458 [inline] ip6_local_out+0xaf/0x190 net/ipv6/output_core.c:155 ip6tunnel_xmit include/net/ip6_tunnel.h:161 [inline] udp_tunnel6_xmit_skb+0x741/0xbd0 net/ipv6/ip6_udp_tunnel.c:109 geneve6_xmit_skb drivers/net/geneve.c:1071 [inline] geneve_xmit+0x1ba9/0x4aa0 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+0x13d/0x6c0 net/core/dev.c:3553 __dev_queue_xmit+0xa55/0x3f20 net/core/dev.c:4203 dev_queue_xmit include/linux/netdevice.h:3088 [inline] packet_xmit+0x257/0x380 net/packet/af_packet.c:276 packet_snd net/packet/af_packet.c:3081 [inline] packet_sendmsg+0x249c/0x54e0 net/packet/af_packet.c:3113 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg+0xd9/0x180 net/socket.c:748 __sys_sendto+0x255/0x340 net/socket.c:2134 __do_sys_sendto net/socket.c:2146 [inline] __se_sys_sendto net/socket.c:2142 [inline] __x64_sys_sendto+0xe0/0x1b0 net/socket.c:2142 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f517d07cae9 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:00007f517dd250c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f517d19bf80 RCX: 00007f517d07cae9 RDX: 000000000000fc13 RSI: 0000000020000280 RDI: 0000000000000003 RBP: 00007f517d0c847a R08: 0000000000000000 R09: 000000000000002f R10: 0000000000000800 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f517d19bf80 R15: 00007ffd2ed02188 Allocated by task 17415: kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 __kasan_slab_alloc+0x81/0x90 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook mm/slab.h:762 [inline] slab_alloc_node mm/slab.c:3237 [inline] kmem_cache_alloc_node+0x179/0x540 mm/slab.c:3509 kmalloc_reserve+0x167/0x270 net/core/skbuff.c:559 __alloc_skb+0x12b/0x330 net/core/skbuff.c:644 skb_segment+0x87c/0x3ef0 net/core/skbuff.c:4512 __udp_gso_segment+0x1496/0x1bf0 net/ipv4/udp_offload.c:298 udp4_ufo_fragment+0x510/0x700 net/ipv4/udp_offload.c:399 inet_gso_segment+0x548/0x12d0 net/ipv4/af_inet.c:1398 skb_mac_gso_segment+0x292/0x610 net/core/gso.c:53 __skb_udp_tunnel_segment net/ipv4/udp_offload.c:87 [inline] skb_udp_tunnel_segment+0x8e9/0x2000 net/ipv4/udp_offload.c:182 udp6_ufo_fragment+0x9f1/0xd50 net/ipv6/udp_offload.c:35 ipv6_gso_segment+0x5c4/0x17b0 net/ipv6/ip6_offload.c:120 skb_mac_gso_segment+0x292/0x610 net/core/gso.c:53 __skb_gso_segment+0x339/0x710 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+0xea2/0x11d0 net/ipv6/ip6_output.c:207 NF_HOOK_COND include/linux/netfilter.h:292 [inline] ip6_output+0x243/0x890 net/ipv6/ip6_output.c:228 dst_output include/net/dst.h:458 [inline] ip6_local_out+0xaf/0x190 net/ipv6/output_core.c:155 ip6tunnel_xmit include/net/ip6_tunnel.h:161 [inline] udp_tunnel6_xmit_skb+0x741/0xbd0 net/ipv6/ip6_udp_tunnel.c:109 geneve6_xmit_skb drivers/net/geneve.c:1071 [inline] geneve_xmit+0x1ba9/0x4aa0 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+0x13d/0x6c0 net/core/dev.c:3553 __dev_queue_xmit+0xa55/0x3f20 net/core/dev.c:4203 dev_queue_xmit include/linux/netdevice.h:3088 [inline] packet_xmit+0x257/0x380 net/packet/af_packet.c:276 packet_snd net/packet/af_packet.c:3081 [inline] packet_sendmsg+0x249c/0x54e0 net/packet/af_packet.c:3113 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg+0xd9/0x180 net/socket.c:748 __sys_sendto+0x255/0x340 net/socket.c:2134 __do_sys_sendto net/socket.c:2146 [inline] __se_sys_sendto net/socket.c:2142 [inline] __x64_sys_sendto+0xe0/0x1b0 net/socket.c:2142 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff888078548300 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 [ffff888078548300, ffff888078548580) The buggy address belongs to the physical page: page:ffffea0001e15200 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888078548000 pfn:0x78548 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0x2() raw: 00fff00000000200 ffff888013686b00 ffffea0000eeb110 ffffea0000afa250 raw: ffff888078548000 ffff888078548000 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x3e2020(__GFP_HIGH|__GFP_NOWARN|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_MEMALLOC|__GFP_HARDWALL|__GFP_THISNODE), pid 0, tgid 0 (swapper/1), ts 1275434197436, free_ts 1274948000496 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570 prep_new_page mm/page_alloc.c:1577 [inline] get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221 __alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477 __alloc_pages_node include/linux/gfp.h:237 [inline] kmem_getpages mm/slab.c:1356 [inline] cache_grow_begin+0x99/0x3a0 mm/slab.c:2550 cache_alloc_refill+0x294/0x3a0 mm/slab.c:2923 ____cache_alloc mm/slab.c:2999 [inline] ____cache_alloc mm/slab.c:2982 [inline] __do_cache_alloc mm/slab.c:3182 [inline] slab_alloc_node mm/slab.c:3230 [inline] kmem_cache_alloc_node+0x487/0x540 mm/slab.c:3509 kmalloc_reserve+0x167/0x270 net/core/skbuff.c:559 __alloc_skb+0x12b/0x330 net/core/skbuff.c:644 __netdev_alloc_skb+0x72/0x3f0 net/core/skbuff.c:708 netdev_alloc_skb include/linux/skbuff.h:3212 [inline] dev_alloc_skb include/linux/skbuff.h:3225 [inline] __ieee80211_beacon_get+0xc2f/0x16e0 net/mac80211/tx.c:5425 ieee80211_beacon_get_tim+0xa5/0x570 net/mac80211/tx.c:5547 ieee80211_beacon_get include/net/mac80211.h:5418 [inline] mac80211_hwsim_beacon_tx+0x3f6/0x730 drivers/net/wireless/virtual/mac80211_hwsim.c:2261 __iterate_interfaces+0x2d2/0x580 net/mac80211/util.c:766 ieee80211_iterate_active_interfaces_atomic+0x73/0x1c0 net/mac80211/util.c:802 mac80211_hwsim_beacon+0x101/0x200 drivers/net/wireless/virtual/mac80211_hwsim.c:2291 __run_hrtimer kernel/time/hrtimer.c:1688 [inline] __hrtimer_run_queues+0x203/0xc10 kernel/time/hrtimer.c:1752 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+0x508/0xb90 mm/page_alloc.c:2348 free_unref_page_list+0xe6/0xb30 mm/page_alloc.c:2489 release_pages+0x32a/0x14e0 mm/swap.c:1042 tlb_batch_pages_flush+0x9a/0x190 mm/mmu_gather.c:97 tlb_flush_mmu_free mm/mmu_gather.c:292 [inline] tlb_flush_mmu mm/mmu_gather.c:299 [inline] tlb_finish_mmu+0x14b/0x7e0 mm/mmu_gather.c:391 exit_mmap+0x2db/0x960 mm/mmap.c:3215 __mmput+0x12a/0x4d0 kernel/fork.c:1348 mmput+0x62/0x70 kernel/fork.c:1370 exit_mm kernel/exit.c:567 [inline] do_exit+0x9b4/0x2a20 kernel/exit.c:861 __do_sys_exit kernel/exit.c:991 [inline] __se_sys_exit kernel/exit.c:989 [inline] __x64_sys_exit+0x42/0x50 kernel/exit.c:989 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff888078548480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888078548500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888078548580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888078548600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888078548680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================