================================================================== BUG: KASAN: slab-out-of-bounds in xfrm_lookup_with_ifid+0x214d/0x2390 net/xfrm/xfrm_policy.c:3079 Read of size 4 at addr ffff88806be2951c by task syz-executor.0/9651 CPU: 1 PID: 9651 Comm: syz-executor.0 Not tainted 5.5.0-rc5-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+0x197/0x210 lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd4/0x30b mm/kasan/report.c:374 __kasan_report.cold+0x1b/0x41 mm/kasan/report.c:506 kasan_report+0x12/0x20 mm/kasan/common.c:639 __asan_report_load4_noabort+0x14/0x20 mm/kasan/generic_report.c:134 xfrm_lookup_with_ifid+0x214d/0x2390 net/xfrm/xfrm_policy.c:3079 xfrmi_xmit2 net/xfrm/xfrm_interface.c:275 [inline] xfrmi_xmit+0x3ef/0x11a0 net/xfrm/xfrm_interface.c:366 __netdev_start_xmit include/linux/netdevice.h:4447 [inline] netdev_start_xmit include/linux/netdevice.h:4461 [inline] xmit_one net/core/dev.c:3420 [inline] dev_hard_start_xmit+0x1a3/0x9b0 net/core/dev.c:3436 __dev_queue_xmit+0x2b05/0x35c0 net/core/dev.c:4013 dev_queue_xmit+0x18/0x20 net/core/dev.c:4046 neigh_direct_output+0x16/0x20 net/core/neighbour.c:1527 neigh_output include/net/neighbour.h:510 [inline] ip6_finish_output2+0x109a/0x25c0 net/ipv6/ip6_output.c:116 __ip6_finish_output+0x444/0xaa0 net/ipv6/ip6_output.c:142 ip6_finish_output+0x38/0x1f0 net/ipv6/ip6_output.c:152 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip6_output+0x25e/0x880 net/ipv6/ip6_output.c:175 dst_output include/net/dst.h:436 [inline] NF_HOOK include/linux/netfilter.h:307 [inline] ndisc_send_skb+0xf1f/0x1490 net/ipv6/ndisc.c:505 ndisc_send_rs+0x134/0x720 net/ipv6/ndisc.c:699 addrconf_rs_timer+0x30f/0x6e0 net/ipv6/addrconf.c:3879 call_timer_fn+0x1ac/0x780 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers kernel/time/timer.c:1773 [inline] __run_timers kernel/time/timer.c:1740 [inline] run_timer_softirq+0x6c3/0x1790 kernel/time/timer.c:1786 __do_softirq+0x262/0x98c kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x19b/0x1e0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x1a3/0x610 arch/x86/kernel/apic/apic.c:1137 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0010:check_kcov_mode kernel/kcov.c:153 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x14/0x50 kernel/kcov.c:187 Code: 8b 80 98 13 00 00 c3 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 65 48 8b 04 25 c0 1e 02 00 65 8b 15 e4 28 8d 7e <81> e2 00 01 1f 00 48 8b 75 08 75 2b 8b 90 80 13 00 00 83 fa 02 75 RSP: 0018:ffffc90002727f10 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffff888097592080 RBX: 0000000000000057 RCX: ffffffff8100a5e3 RDX: 0000000080000000 RSI: 0000000000000000 RDI: 0000000000000007 RBP: ffffc90002727f10 R08: ffff888097592080 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffc90002727f58 R13: ffffffff899334e8 R14: 0000000000000000 R15: 0000000000000000 do_syscall_64+0xa1/0x790 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45aea7 Code: 00 66 90 b8 58 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 4d b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 2d b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffda17d9a08 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000045aea7 RDX: 00007ffda17d9a20 RSI: 00007ffda17d9a20 RDI: 00007ffda17d9ab0 RBP: 00000000000007fc R08: 0000000000000000 R09: 0000000000000010 R10: 000000000000000a R11: 0000000000000246 R12: 00007ffda17dab40 R13: 00000000029b0940 R14: 0000000000000000 R15: 00007ffda17dab40 The buggy address belongs to the page: page:ffffea0001af8a00 refcount:0 mapcount:-128 mapping:0000000000000000 index:0xffff88806be28000 raw: 00fffe0000000000 ffffea0001a53388 ffffea0001bcf688 0000000000000000 raw: ffff88806be28000 0000000000000001 00000000ffffff7f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88806be29400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806be29480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88806be29500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88806be29580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806be29600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================