==================================================================
BUG: KASAN: slab-out-of-bounds in ip_icmp_error+0x52a/0x5a0 net/ipv4/ip_sockglue.c:404
Read of size 1 at addr ffff8880978dbfff by task swapper/0/0
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.7.0-rc7-next-20200526-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x18f/0x20d lib/dump_stack.c:118
print_address_description.constprop.0.cold+0xd3/0x413 mm/kasan/report.c:383
__kasan_report mm/kasan/report.c:513 [inline]
kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530
ip_icmp_error+0x52a/0x5a0 net/ipv4/ip_sockglue.c:404
tcp_v4_err+0x99e/0x1ce0 net/ipv4/tcp_ipv4.c:576
icmp_socket_deliver+0x1e1/0x360 net/ipv4/icmp.c:803
icmp_unreach+0x33b/0xab0 net/ipv4/icmp.c:920
icmp_rcv+0xee6/0x15f0 net/ipv4/icmp.c:1102
ip_protocol_deliver_rcu+0x57/0x880 net/ipv4/ip_input.c:204
ip_local_deliver_finish+0x220/0x360 net/ipv4/ip_input.c:231
NF_HOOK include/linux/netfilter.h:307 [inline]
NF_HOOK include/linux/netfilter.h:301 [inline]
ip_local_deliver+0x1c8/0x4e0 net/ipv4/ip_input.c:252
dst_input include/net/dst.h:441 [inline]
ip_rcv_finish+0x1da/0x2f0 net/ipv4/ip_input.c:428
NF_HOOK include/linux/netfilter.h:307 [inline]
NF_HOOK include/linux/netfilter.h:301 [inline]
ip_rcv+0xd0/0x3c0 net/ipv4/ip_input.c:539
__netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:5268
__netif_receive_skb+0x27/0x1c0 net/core/dev.c:5382
process_backlog+0x21e/0x7a0 net/core/dev.c:6214
napi_poll net/core/dev.c:6659 [inline]
net_rx_action+0x4e1/0x10d0 net/core/dev.c:6727
__do_softirq+0x268/0x9ee kernel/softirq.c:292
invoke_softirq kernel/softirq.c:373 [inline]
irq_exit+0x192/0x1d0 kernel/softirq.c:413
exiting_irq arch/x86/include/asm/apic.h:546 [inline]
smp_apic_timer_interrupt+0x19e/0x600 arch/x86/kernel/apic/apic.c:1107
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:1030
RIP: 0010:native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:61
Code: cc cc cc cc cc cc cc cc cc cc cc cc e9 07 00 00 00 0f 00 2d 44 b9 4a 00 f4 c3 66 90 e9 07 00 00 00 0f 00 2d 34 b9 4a 00 fb f4 cc 41 56 41 55 41 54 55 53 e8 b3 eb 82 f9 e8 5e 66 fd ff 0f 1f
RSP: 0018:ffffffff89807c50 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13
RAX: ffffffff89886580 RBX: 0000000000000000 RCX: 1ffffffff1519a2e
RDX: 0000000000000000 RSI: ffffffff87ddf958 RDI: ffffffff89886e08
RBP: ffff88821a881064 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88821a881064
R13: 1ffffffff1300f95 R14: ffff88821a881065 R15: 0000000000000001
arch_safe_halt arch/x86/include/asm/paravirt.h:150 [inline]
acpi_safe_halt drivers/acpi/processor_idle.c:111 [inline]
acpi_safe_halt+0x8d/0x110 drivers/acpi/processor_idle.c:108
acpi_idle_do_entry+0xa9/0xe0 drivers/acpi/processor_idle.c:525
acpi_idle_enter+0x437/0xb20 drivers/acpi/processor_idle.c:651
cpuidle_enter_state+0xdb/0xd50 drivers/cpuidle/cpuidle.c:234
cpuidle_enter+0x4a/0xa0 drivers/cpuidle/cpuidle.c:345
call_cpuidle kernel/sched/idle.c:117 [inline]
cpuidle_idle_call kernel/sched/idle.c:207 [inline]
do_idle+0x42f/0x690 kernel/sched/idle.c:269
cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:361
start_kernel+0x9be/0x9fb init/main.c:1043
secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:242
Allocated by task 6496:
save_stack+0x1b/0x40 mm/kasan/common.c:48
set_track mm/kasan/common.c:56 [inline]
__kasan_kmalloc mm/kasan/common.c:494 [inline]
__kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:467
slab_post_alloc_hook mm/slab.h:586 [inline]
slab_alloc mm/slab.c:3320 [inline]
kmem_cache_alloc+0x11b/0x740 mm/slab.c:3484
anon_vma_alloc mm/rmap.c:89 [inline]
__anon_vma_prepare+0x19b/0x3a0 mm/rmap.c:197
anon_vma_prepare include/linux/rmap.h:153 [inline]
do_cow_fault mm/memory.c:3849 [inline]
do_fault mm/memory.c:3963 [inline]
handle_pte_fault mm/memory.c:4201 [inline]
__handle_mm_fault mm/memory.c:4331 [inline]
handle_mm_fault+0x344f/0x3c70 mm/memory.c:4368
do_user_addr_fault arch/x86/mm/fault.c:1303 [inline]
do_page_fault+0x56a/0x142b arch/x86/mm/fault.c:1392
page_fault+0x2f/0x40 arch/x86/entry/entry_64.S:1068
Freed by task 0:
(stack is not available)
The buggy address belongs to the object at ffff8880978dbf00
which belongs to the cache anon_vma of size 192
The buggy address is located 63 bytes to the right of
192-byte region [ffff8880978dbf00, ffff8880978dbfc0)
The buggy address belongs to the page:
page:ffffea00025e36c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888097c217c0
flags: 0xfffe0000000200(slab)
raw: 00fffe0000000200 ffffea00025eff88 ffffea00022d4688 ffff8880aa1ecc40
raw: ffff888097c217c0 ffff8880978db000 0000000100000005 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff8880978dbe80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
ffff8880978dbf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8880978dbf80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
^
ffff8880978dc000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff8880978dc080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================