================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/fortify-string.h:191 [inline] BUG: KASAN: slab-out-of-bounds in skb_copy_from_linear_data_offset include/linux/skbuff.h:3676 [inline] BUG: KASAN: slab-out-of-bounds in skb_segment+0x14ba/0x37a0 net/core/skbuff.c:4000 Read of size 104 at addr ffff8880125403b0 by task syz-executor.3/17718 CPU: 0 PID: 17718 Comm: syz-executor.3 Not tainted 5.11.0-rc4-next-20210120-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:397 [inline] kasan_report.cold+0x79/0xd5 mm/kasan/report.c:414 check_region_inline mm/kasan/generic.c:180 [inline] kasan_check_range+0x13d/0x180 mm/kasan/generic.c:186 memcpy+0x20/0x60 mm/kasan/shadow.c:65 memcpy include/linux/fortify-string.h:191 [inline] skb_copy_from_linear_data_offset include/linux/skbuff.h:3676 [inline] skb_segment+0x14ba/0x37a0 net/core/skbuff.c:4000 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 tcp_tsq_write net/ipv4/tcp_output.c:1022 [inline] tcp_tsq_write+0x20c/0x360 net/ipv4/tcp_output.c:1009 tcp_tsq_handler+0x8e/0x200 net/ipv4/tcp_output.c:1031 tcp_pace_kick+0x29/0xc0 net/ipv4/tcp_output.c:1193 __run_hrtimer kernel/time/hrtimer.c:1519 [inline] __hrtimer_run_queues+0x609/0xe40 kernel/time/hrtimer.c:1583 hrtimer_run_softirq+0x17b/0x360 kernel/time/hrtimer.c:1600 __do_softirq+0x2bc/0xa29 kernel/softirq.c:343 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0xaa/0xd0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:226 [inline] __irq_exit_rcu kernel/softirq.c:420 [inline] irq_exit_rcu+0x134/0x200 kernel/softirq.c:432 sysvec_apic_timer_interrupt+0x4d/0x100 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:628 RIP: 0033:0x412bd7 Code: 00 00 00 49 8b 14 24 49 89 3c 24 48 89 56 f8 4d 8b 44 24 08 49 8b 0c 24 48 89 df 48 89 f0 0f 1f 44 00 00 48 8d 6f f8 4c 39 c1 <49> 89 ee 77 2c 48 83 e8 08 48 39 ca 76 0f 0f 1f 00 48 83 e8 08 48 RSP: 002b:00007ffcbf2dd380 EFLAGS: 00000246 RAX: 00007fc6ab8d5940 RBX: 00007fc6ab8d4958 RCX: ffffffff86f36b79 RDX: ffffffff86f35267 RSI: 00007fc6ab8d5e70 RDI: 00007fc6ab8d54f0 RBP: 00007fc6ab8d54e8 R08: ffffffff86f36b79 R09: 00000000366348ac R10: 00007ffcbf2dd670 R11: 0000000000000000 R12: 00007fc6ab8d4948 R13: 0000000000000011 R14: 00007fc6ab8d54e0 R15: ffffffff8178f32e Allocated by task 17718: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:403 [inline] ____kasan_kmalloc mm/kasan/common.c:434 [inline] ____kasan_kmalloc.constprop.0+0xa0/0xd0 mm/kasan/common.c:406 kasan_slab_alloc include/linux/kasan.h:208 [inline] slab_post_alloc_hook mm/slab.h:518 [inline] slab_alloc_node mm/slub.c:2910 [inline] __kmalloc_node_track_caller+0x191/0x320 mm/slub.c:4584 __kmalloc_reserve net/core/skbuff.c:142 [inline] __alloc_skb+0xae/0x5a0 net/core/skbuff.c:210 alloc_skb_fclone include/linux/skbuff.h:1150 [inline] sk_stream_alloc_skb+0x109/0xc30 net/ipv4/tcp.c:888 tso_fragment net/ipv4/tcp_output.c:2125 [inline] tcp_write_xmit+0x1d2b/0x6140 net/ipv4/tcp_output.c:2675 tcp_tsq_write net/ipv4/tcp_output.c:1022 [inline] tcp_tsq_write+0x20c/0x360 net/ipv4/tcp_output.c:1009 tcp_tsq_handler+0x8e/0x200 net/ipv4/tcp_output.c:1031 tcp_pace_kick+0x29/0xc0 net/ipv4/tcp_output.c:1193 __run_hrtimer kernel/time/hrtimer.c:1519 [inline] __hrtimer_run_queues+0x609/0xe40 kernel/time/hrtimer.c:1583 hrtimer_run_softirq+0x17b/0x360 kernel/time/hrtimer.c:1600 __do_softirq+0x2bc/0xa29 kernel/softirq.c:343 The buggy address belongs to the object at ffff888012540000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 944 bytes inside of 1024-byte region [ffff888012540000, ffff888012540400) The buggy address belongs to the page: page:0000000093d6a52c refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12540 head:0000000093d6a52c order:2 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head) raw: 00fff00000010200 ffffea0000be4600 0000000900000002 ffff888010041dc0 raw: 0000000000000000 0000000000080008 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888012540300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888012540380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888012540400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888012540480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888012540500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================