================================================================== BUG: KASAN: use-after-free in memcpy include/linux/string.h:447 [inline] BUG: KASAN: use-after-free in skb_copy_from_linear_data_offset include/linux/skbuff.h:3676 [inline] BUG: KASAN: use-after-free in skb_segment+0x14ba/0x37a0 net/core/skbuff.c:3996 Read of size 10228 at addr ffff88806f98d934 by task syz-executor.2/29501 CPU: 1 PID: 29501 Comm: syz-executor.2 Not tainted 5.11.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5b/0x2f8 mm/kasan/report.c:230 __kasan_report mm/kasan/report.c:396 [inline] kasan_report.cold+0x79/0xd5 mm/kasan/report.c:413 check_memory_region_inline mm/kasan/generic.c:179 [inline] check_memory_region+0x13d/0x180 mm/kasan/generic.c:185 memcpy+0x20/0x60 mm/kasan/shadow.c:64 memcpy include/linux/string.h:447 [inline] skb_copy_from_linear_data_offset include/linux/skbuff.h:3676 [inline] skb_segment+0x14ba/0x37a0 net/core/skbuff.c:3996 tcp_gso_segment+0x33d/0x17e0 net/ipv4/tcp_offload.c:98 tcp4_gso_segment net/ipv4/tcp_offload.c:51 [inline] tcp4_gso_segment+0x194/0x3a0 net/ipv4/tcp_offload.c:29 inet_gso_segment+0x502/0x1110 net/ipv4/af_inet.c:1378 skb_mac_gso_segment+0x26e/0x530 net/core/dev.c:3326 __skb_gso_segment+0x330/0x6e0 net/core/dev.c:3399 skb_gso_segment include/linux/netdevice.h:4712 [inline] cake_enqueue+0x2808/0x39f0 net/sched/sch_cake.c:1742 __dev_xmit_skb net/core/dev.c:3807 [inline] __dev_queue_xmit+0x1913/0x2dd0 net/core/dev.c:4119 neigh_hh_output include/net/neighbour.h:499 [inline] neigh_output include/net/neighbour.h:508 [inline] ip_finish_output2+0xeb6/0x21b0 net/ipv4/ip_output.c:230 __ip_finish_output net/ipv4/ip_output.c:308 [inline] __ip_finish_output+0x396/0x640 net/ipv4/ip_output.c:290 ip_finish_output+0x35/0x200 net/ipv4/ip_output.c:318 NF_HOOK_COND include/linux/netfilter.h:290 [inline] ip_output+0x196/0x310 net/ipv4/ip_output.c:432 dst_output include/net/dst.h:441 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] __ip_queue_xmit+0x8e9/0x1a00 net/ipv4/ip_output.c:532 __tcp_transmit_skb+0x188c/0x38f0 net/ipv4/tcp_output.c:1405 tcp_transmit_skb net/ipv4/tcp_output.c:1423 [inline] tcp_write_xmit+0xde7/0x6140 net/ipv4/tcp_output.c:2689 do_tcp_sendpages+0xb92/0xdb0 net/ipv4/tcp.c:1087 tcp_sendpage_locked net/ipv4/tcp.c:1132 [inline] tcp_sendpage_locked net/ipv4/tcp.c:1124 [inline] tcp_sendpage+0x80/0xd0 net/ipv4/tcp.c:1142 inet_sendpage+0xd0/0x140 net/ipv4/af_inet.c:831 kernel_sendpage.part.0+0x1ab/0x350 net/socket.c:3636 kernel_sendpage net/socket.c:3633 [inline] sock_sendpage+0xe5/0x140 net/socket.c:945 pipe_to_sendpage+0x2ad/0x380 fs/splice.c:364 splice_from_pipe_feed fs/splice.c:418 [inline] __splice_from_pipe+0x439/0x8a0 fs/splice.c:562 splice_from_pipe fs/splice.c:597 [inline] generic_splice_sendpage+0xd4/0x140 fs/splice.c:743 do_splice_from fs/splice.c:764 [inline] do_splice+0xba4/0x1a90 fs/splice.c:1059 __do_splice+0x134/0x250 fs/splice.c:1137 __do_sys_splice fs/splice.c:1343 [inline] __se_sys_splice fs/splice.c:1325 [inline] __x64_sys_splice+0x198/0x250 fs/splice.c:1325 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45e219 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fed0a8e3c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 000000000045e219 RDX: 0000000000000009 RSI: 0000000000000000 RDI: 0000000000000007 RBP: 000000000119bfd8 R08: 0000000000119403 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c R13: 00007ffe90a287cf R14: 00007fed0a8e49c0 R15: 000000000119bf8c The buggy address belongs to the page: page:000000009c9637d9 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6f98d flags: 0xfff00000000000() raw: 00fff00000000000 dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88806f98d800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806f98d880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88806f98d900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88806f98d980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806f98da00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================