==================================================================
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 106 at addr ffff888013146bbc by task syz-executor.3/8472
CPU: 1 PID: 8472 Comm: syz-executor.3 Not tainted 5.11.0-rc4-next-20210119-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:4708 [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_push_pending_frames+0xaa/0x390 net/ipv4/tcp_output.c:2869
tcp_push_pending_frames include/net/tcp.h:1867 [inline]
tcp_data_snd_check net/ipv4/tcp_input.c:5393 [inline]
tcp_rcv_established+0x8c9/0x1eb0 net/ipv4/tcp_input.c:5888
tcp_v4_do_rcv+0x5d1/0x870 net/ipv4/tcp_ipv4.c:1676
tcp_v4_rcv+0x2d36/0x3780 net/ipv4/tcp_ipv4.c:2058
ip_protocol_deliver_rcu+0x5c/0x8a0 net/ipv4/ip_input.c:204
ip_local_deliver_finish+0x20a/0x370 net/ipv4/ip_input.c:231
NF_HOOK include/linux/netfilter.h:301 [inline]
NF_HOOK include/linux/netfilter.h:295 [inline]
ip_local_deliver+0x1b3/0x200 net/ipv4/ip_input.c:252
dst_input include/net/dst.h:447 [inline]
ip_rcv_finish+0x1da/0x2f0 net/ipv4/ip_input.c:428
NF_HOOK include/linux/netfilter.h:301 [inline]
NF_HOOK include/linux/netfilter.h:295 [inline]
ip_rcv+0xaa/0xd0 net/ipv4/ip_input.c:539
deliver_skb net/core/dev.c:2260 [inline]
deliver_ptype_list_skb net/core/dev.c:2275 [inline]
__netif_receive_skb_core+0x11e8/0x37d0 net/core/dev.c:5275
__netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:5317
__netif_receive_skb+0x27/0x1c0 net/core/dev.c:5433
process_backlog+0x232/0x6c0 net/core/dev.c:6312
napi_poll net/core/dev.c:6790 [inline]
net_rx_action+0x461/0xe10 net/core/dev.c:6873
__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: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x25/0x50 kernel/locking/spinlock.c:191
Code: f8 5d c3 66 90 55 48 89 fd 48 83 c7 18 53 48 89 f3 48 8b 74 24 10 e8 ca 73 5a f8 48 89 ef e8 22 29 5b f8 f6 c7 02 75 1a 53 9d 01 00 00 00 e8 e1 2f 4f f8 65 8b 05 6a 98 03 77 85 c0 74 0a 5b
RSP: 0018:ffffc9000175fc38 EFLAGS: 00000246
RAX: 0000000000262b15 RBX: 0000000000000246 RCX: 1ffffffff1a07b81
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffff888022052da0 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff8178e118 R11: 0000000000000000 R12: ffffc9000175fd20
R13: 00007ffcd2091c10 R14: 0000000000000004 R15: 0000000000000000
do_wait+0x19d/0xa00 kernel/exit.c:1451
kernel_wait4+0x14c/0x260 kernel/exit.c:1630
__do_sys_wait4+0x13f/0x150 kernel/exit.c:1658
do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x417e0b
Code: 54 55 41 89 d4 53 48 89 f5 89 fb 48 83 ec 10 e8 7b f9 ff ff 45 31 d2 41 89 c0 49 63 d4 48 89 ee 48 63 fb b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 19 44 89 c7 89 44 24 0c e8 b1 f9 ff ff 8b 44
RSP: 002b:00007ffcd2091b90 EFLAGS: 00000246 ORIG_RAX: 000000000000003d
RAX: ffffffffffffffda RBX: 00000000ffffffff RCX: 0000000000417e0b
RDX: 0000000040000001 RSI: 00007ffcd2091c10 RDI: ffffffffffffffff
RBP: 00007ffcd2091c10 R08: 0000000000000000 R09: 0000000002d91940
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000040000001
R13: 0000000000000004 R14: 0000000000000032 R15: 000000000005164c
Allocated by task 4871:
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:209 [inline]
slab_post_alloc_hook mm/slab.h:518 [inline]
slab_alloc_node mm/slub.c:2903 [inline]
__kmalloc_node_track_caller+0x191/0x320 mm/slub.c:4569
__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_push_pending_frames+0xaa/0x390 net/ipv4/tcp_output.c:2869
tcp_push_pending_frames include/net/tcp.h:1867 [inline]
tcp_data_snd_check net/ipv4/tcp_input.c:5393 [inline]
tcp_rcv_established+0x8c9/0x1eb0 net/ipv4/tcp_input.c:5888
tcp_v4_do_rcv+0x5d1/0x870 net/ipv4/tcp_ipv4.c:1676
tcp_v4_rcv+0x2d36/0x3780 net/ipv4/tcp_ipv4.c:2058
ip_protocol_deliver_rcu+0x5c/0x8a0 net/ipv4/ip_input.c:204
ip_local_deliver_finish+0x20a/0x370 net/ipv4/ip_input.c:231
NF_HOOK include/linux/netfilter.h:301 [inline]
NF_HOOK include/linux/netfilter.h:295 [inline]
ip_local_deliver+0x1b3/0x200 net/ipv4/ip_input.c:252
dst_input include/net/dst.h:447 [inline]
ip_rcv_finish+0x1da/0x2f0 net/ipv4/ip_input.c:428
NF_HOOK include/linux/netfilter.h:301 [inline]
NF_HOOK include/linux/netfilter.h:295 [inline]
ip_rcv+0xaa/0xd0 net/ipv4/ip_input.c:539
deliver_skb net/core/dev.c:2260 [inline]
deliver_ptype_list_skb net/core/dev.c:2275 [inline]
__netif_receive_skb_core+0x11e8/0x37d0 net/core/dev.c:5275
__netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:5317
__netif_receive_skb+0x27/0x1c0 net/core/dev.c:5433
process_backlog+0x232/0x6c0 net/core/dev.c:6312
napi_poll net/core/dev.c:6790 [inline]
net_rx_action+0x461/0xe10 net/core/dev.c:6873
__do_softirq+0x2bc/0xa29 kernel/softirq.c:343
The buggy address belongs to the object at ffff888013146800
which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 956 bytes inside of
1024-byte region [ffff888013146800, ffff888013146c00)
The buggy address belongs to the page:
page:000000006935454a refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x13144
head:000000006935454a order:2 compound_mapcount:0 compound_pincount:0
flags: 0xfff00000010200(slab|head)
raw: 00fff00000010200 dead000000000100 dead000000000122 ffff888010041140
raw: 0000000000000000 0000000000080008 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff888013146b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff888013146b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888013146c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff888013146c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff888013146d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================