==================================================================
BUG: KASAN: slab-out-of-bounds in icmpv6_xrlim_allow+0x409/0x440 net/ipv6/icmp.c:216
Read of size 8 at addr ffff888092773bbf by task syz-executor.3/31037
CPU: 1 PID: 31037 Comm: syz-executor.3 Not tainted 5.2.0-rc2+ #20
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+0x172/0x1f0 lib/dump_stack.c:113
print_address_description.cold+0x7c/0x20d mm/kasan/report.c:188
__kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317
kasan_report+0x12/0x20 mm/kasan/common.c:614
__asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:132
icmpv6_xrlim_allow+0x409/0x440 net/ipv6/icmp.c:216
icmp6_send+0x1107/0x1e50 net/ipv6/icmp.c:540
icmpv6_send+0xec/0x230 net/ipv6/ip6_icmp.c:43
ip6_link_failure+0x2b/0x530 net/ipv6/route.c:2367
dst_link_failure include/net/dst.h:416 [inline]
ndisc_error_report+0xce/0x1c0 net/ipv6/ndisc.c:712
neigh_invalidate+0x245/0x570 net/core/neighbour.c:1000
neigh_timer_handler+0xc33/0xf30 net/core/neighbour.c:1086
call_timer_fn+0x193/0x720 kernel/time/timer.c:1322
expire_timers kernel/time/timer.c:1366 [inline]
__run_timers kernel/time/timer.c:1685 [inline]
__run_timers kernel/time/timer.c:1653 [inline]
run_timer_softirq+0x66f/0x1740 kernel/time/timer.c:1698
__do_softirq+0x25c/0x94c kernel/softirq.c:293
invoke_softirq kernel/softirq.c:374 [inline]
irq_exit+0x180/0x1d0 kernel/softirq.c:414
exiting_irq arch/x86/include/asm/apic.h:536 [inline]
smp_apic_timer_interrupt+0x13b/0x550 arch/x86/kernel/apic/apic.c:1068
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:806
RIP: 0010:zap_pte_range mm/memory.c:1084 [inline]
RIP: 0010:zap_pmd_range mm/memory.c:1195 [inline]
RIP: 0010:zap_pud_range mm/memory.c:1224 [inline]
RIP: 0010:zap_p4d_range mm/memory.c:1245 [inline]
RIP: 0010:unmap_page_range+0xae1/0x22f0 mm/memory.c:1266
Code: 0f 85 a9 00 00 00 e8 ee 69 d6 ff 31 ff 49 bd ff 0f 00 00 00 00 f0 ff 4c 23 ad d8 fe ff ff 44 89 ee 83 e6 40 89 b5 e0 fe ff ff 4a 6b d6 ff 8b b5 e0 fe ff ff 85 f6 0f 85 7c 0a 00 00 e8 b7 69
RSP: 0018:ffff88807bf57720 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: ffff888067d4e140 RBX: 00007f34f5eee000 RCX: ffffffff819a3bc4
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88807bf57880 R08: ffff888067d4e140 R09: fffff9400049fed7
R10: fffff9400049fed6 R11: ffffea00024ff6b3 R12: ffffea00024ff6c0
R13: 8000000000000007 R14: ffffea00024ff6c8 R15: dffffc0000000000
unmap_single_vma+0x19d/0x300 mm/memory.c:1311
unmap_vmas+0x135/0x280 mm/memory.c:1343
exit_mmap+0x2ad/0x510 mm/mmap.c:3145
__mmput kernel/fork.c:1059 [inline]
mmput+0x15f/0x4c0 kernel/fork.c:1080
exit_mm kernel/exit.c:547 [inline]
do_exit+0x816/0x2fa0 kernel/exit.c:864
do_group_exit+0x135/0x370 kernel/exit.c:981
get_signal+0x41e/0x2240 kernel/signal.c:2638
do_signal+0x87/0x1900 arch/x86/kernel/signal.c:815
exit_to_usermode_loop+0x244/0x2c0 arch/x86/entry/common.c:164
prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
syscall_return_slowpath arch/x86/entry/common.c:279 [inline]
do_syscall_64+0x58e/0x680 arch/x86/entry/common.c:304
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x459279
Code: fd b7 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f34f5663cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 000000000075bfc8 RCX: 0000000000459279
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000075bfc8
RBP: 000000000075bfc0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000075bfcc
R13: 00007ffd0f818cef R14: 00007f34f56649c0 R15: 000000000075bfcc
Allocated by task 30629:
save_stack+0x23/0x90 mm/kasan/common.c:71
set_track mm/kasan/common.c:79 [inline]
__kasan_kmalloc mm/kasan/common.c:489 [inline]
__kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:462
kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:497
slab_post_alloc_hook mm/slab.h:437 [inline]
slab_alloc mm/slab.c:3326 [inline]
kmem_cache_alloc+0x11a/0x6f0 mm/slab.c:3488
dst_alloc+0x10e/0x200 net/core/dst.c:93
ip6_dst_alloc+0x34/0xa0 net/ipv6/route.c:356
icmp6_dst_alloc+0x1a9/0x660 net/ipv6/route.c:2806
ndisc_send_skb+0xfc1/0x14a0 net/ipv6/ndisc.c:488
ndisc_send_rs+0x134/0x6d0 net/ipv6/ndisc.c:702
addrconf_rs_timer+0x30f/0x680 net/ipv6/addrconf.c:3880
call_timer_fn+0x193/0x720 kernel/time/timer.c:1322
expire_timers kernel/time/timer.c:1366 [inline]
__run_timers kernel/time/timer.c:1685 [inline]
__run_timers kernel/time/timer.c:1653 [inline]
run_timer_softirq+0x66f/0x1740 kernel/time/timer.c:1698
__do_softirq+0x25c/0x94c kernel/softirq.c:293
Freed by task 16:
save_stack+0x23/0x90 mm/kasan/common.c:71
set_track mm/kasan/common.c:79 [inline]
__kasan_slab_free+0x102/0x150 mm/kasan/common.c:451
kasan_slab_free+0xe/0x10 mm/kasan/common.c:459
__cache_free mm/slab.c:3432 [inline]
kmem_cache_free+0x86/0x260 mm/slab.c:3698
dst_destroy+0x29e/0x3c0 net/core/dst.c:129
dst_destroy_rcu+0x16/0x19 net/core/dst.c:142
__rcu_reclaim kernel/rcu/rcu.h:222 [inline]
rcu_do_batch kernel/rcu/tree.c:2092 [inline]
invoke_rcu_callbacks kernel/rcu/tree.c:2310 [inline]
rcu_core+0xba5/0x1500 kernel/rcu/tree.c:2291
__do_softirq+0x25c/0x94c kernel/softirq.c:293
The buggy address belongs to the object at ffff888092773a80
which belongs to the cache ip6_dst_cache of size 224
The buggy address is located 95 bytes to the right of
224-byte region [ffff888092773a80, ffff888092773b60)
The buggy address belongs to the page:
page:ffffea000249dcc0 refcount:1 mapcount:0 mapping:ffff888216979c80 index:0x0
flags: 0x1fffc0000000200(slab)
raw: 01fffc0000000200 ffffea00028d52c8 ffffea0002658588 ffff888216979c80
raw: 0000000000000000 ffff888092773080 000000010000000c 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff888092773a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888092773b00: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
>ffff888092773b80: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00
^
ffff888092773c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff888092773c80: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================