================================================================== BUG: KASAN: slab-out-of-bounds in do_csum+0x2cd/0x2e0 lib/checksum.c:73 Read of size 4 at addr ffff888043792380 by task syz-executor.5/20342 CPU: 0 PID: 20342 Comm: syz-executor.5 Not tainted 6.6.0-rc2-syzkaller-00649-g5a1b322cb0b7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/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+0x126b/0x1ff0 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+0x290/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+0xf1f/0x1250 net/ipv6/ip6_output.c:207 NF_HOOK_COND include/linux/netfilter.h:293 [inline] ip6_output+0x1e2/0x530 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/0xb70 net/ipv6/ip6_udp_tunnel.c:109 geneve6_xmit_skb drivers/net/geneve.c:1071 [inline] geneve_xmit+0x1b91/0x4aa0 drivers/net/geneve.c:1100 __netdev_start_xmit include/linux/netdevice.h:4911 [inline] netdev_start_xmit include/linux/netdevice.h:4925 [inline] xmit_one net/core/dev.c:3544 [inline] dev_hard_start_xmit+0x13d/0x6c0 net/core/dev.c:3560 __dev_queue_xmit+0x9b4/0x3d60 net/core/dev.c:4340 dev_queue_xmit include/linux/netdevice.h:3092 [inline] packet_xmit+0x257/0x380 net/packet/af_packet.c:276 packet_snd net/packet/af_packet.c:3087 [inline] packet_sendmsg+0x24d9/0x5580 net/packet/af_packet.c:3119 sock_sendmsg_nosec net/socket.c:730 [inline] sock_sendmsg+0xd9/0x180 net/socket.c:753 __sys_sendto+0x255/0x340 net/socket.c:2177 __do_sys_sendto net/socket.c:2189 [inline] __se_sys_sendto net/socket.c:2185 [inline] __x64_sys_sendto+0xe0/0x1b0 net/socket.c:2185 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:0x7fd8fac7cae9 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:00007fd8fba7c0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007fd8fad9bf80 RCX: 00007fd8fac7cae9 RDX: 000000000000fc13 RSI: 0000000020000280 RDI: 0000000000000003 RBP: 00007fd8facc847a R08: 0000000000000000 R09: 000000000000002f R10: 0000000000000800 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fd8fad9bf80 R15: 00007fff39c03be8 Allocated by task 20342: 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:188 [inline] slab_post_alloc_hook mm/slab.h:762 [inline] slab_alloc_node mm/slub.c:3478 [inline] kmem_cache_alloc_node+0x180/0x3f0 mm/slub.c:3523 kmalloc_reserve+0x166/0x260 net/core/skbuff.c:559 __alloc_skb+0x12b/0x330 net/core/skbuff.c:650 skb_segment+0x99c/0x4300 net/core/skbuff.c:4597 __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:1408 skb_mac_gso_segment+0x290/0x610 net/core/gso.c:53 __skb_udp_tunnel_segment net/ipv4/udp_offload.c:87 [inline] skb_udp_tunnel_segment+0x8e7/0x1ff0 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+0x290/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+0xf1f/0x1250 net/ipv6/ip6_output.c:207 NF_HOOK_COND include/linux/netfilter.h:293 [inline] ip6_output+0x1e2/0x530 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/0xb70 net/ipv6/ip6_udp_tunnel.c:109 geneve6_xmit_skb drivers/net/geneve.c:1071 [inline] geneve_xmit+0x1b91/0x4aa0 drivers/net/geneve.c:1100 __netdev_start_xmit include/linux/netdevice.h:4911 [inline] netdev_start_xmit include/linux/netdevice.h:4925 [inline] xmit_one net/core/dev.c:3544 [inline] dev_hard_start_xmit+0x13d/0x6c0 net/core/dev.c:3560 __dev_queue_xmit+0x9b4/0x3d60 net/core/dev.c:4340 dev_queue_xmit include/linux/netdevice.h:3092 [inline] packet_xmit+0x257/0x380 net/packet/af_packet.c:276 packet_snd net/packet/af_packet.c:3087 [inline] packet_sendmsg+0x24d9/0x5580 net/packet/af_packet.c:3119 sock_sendmsg_nosec net/socket.c:730 [inline] sock_sendmsg+0xd9/0x180 net/socket.c:753 __sys_sendto+0x255/0x340 net/socket.c:2177 __do_sys_sendto net/socket.c:2189 [inline] __se_sys_sendto net/socket.c:2185 [inline] __x64_sys_sendto+0xe0/0x1b0 net/socket.c:2185 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 ffff888043792100 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 [ffff888043792100, ffff888043792380) The buggy address belongs to the physical page: page:ffffea00010de400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x43790 head:ffffea00010de400 order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff88814224d8c0 dead000000000100 dead000000000122 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 5079, tgid 5079 (syz-executor.1), ts 348255738054, free_ts 324531506965 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536 prep_new_page mm/page_alloc.c:1543 [inline] get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170 __alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426 alloc_pages+0x1a9/0x270 mm/mempolicy.c:2298 alloc_slab_page mm/slub.c:1870 [inline] allocate_slab+0x251/0x380 mm/slub.c:2017 new_slab mm/slub.c:2070 [inline] ___slab_alloc+0x8c7/0x1580 mm/slub.c:3223 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3322 __slab_alloc_node mm/slub.c:3375 [inline] slab_alloc_node mm/slub.c:3468 [inline] kmem_cache_alloc_node+0x132/0x3f0 mm/slub.c:3523 kmalloc_reserve+0x166/0x260 net/core/skbuff.c:559 __alloc_skb+0x12b/0x330 net/core/skbuff.c:650 alloc_skb include/linux/skbuff.h:1286 [inline] ndisc_alloc_skb+0x136/0x330 net/ipv6/ndisc.c:422 ndisc_send_rs+0x379/0x690 net/ipv6/ndisc.c:703 addrconf_rs_timer+0x412/0x840 net/ipv6/addrconf.c:3973 call_timer_fn+0x19e/0x580 kernel/time/timer.c:1700 expire_timers kernel/time/timer.c:1751 [inline] __run_timers+0x764/0xb10 kernel/time/timer.c:2022 run_timer_softirq+0x58/0xd0 kernel/time/timer.c:2035 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1136 [inline] free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312 free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405 __unfreeze_partials+0x21d/0x240 mm/slub.c:2655 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook mm/slab.h:762 [inline] slab_alloc_node mm/slub.c:3478 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc_lru+0x221/0x680 mm/slub.c:3509 alloc_inode_sb include/linux/fs.h:2868 [inline] sock_alloc_inode+0x25/0x1c0 net/socket.c:308 alloc_inode+0x5d/0x220 fs/inode.c:259 new_inode_pseudo+0x16/0x80 fs/inode.c:1004 sock_alloc+0x40/0x270 net/socket.c:634 __sock_create+0xbc/0x800 net/socket.c:1516 sock_create net/socket.c:1603 [inline] __sys_socket_create net/socket.c:1640 [inline] __sys_socket+0x14c/0x260 net/socket.c:1691 __do_sys_socket net/socket.c:1705 [inline] __se_sys_socket net/socket.c:1703 [inline] __x64_sys_socket+0x72/0xb0 net/socket.c:1703 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: ffff888043792280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888043792300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888043792380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888043792400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888043792480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================