================================================================== BUG: KASAN: stack-out-of-bounds in memcmp+0x126/0x160 lib/string.c:768 Read of size 1 at addr ffff8801a2e0fab0 by task syz-executor1/7906 CPU: 0 PID: 7906 Comm: syz-executor1 Not tainted 4.9.131+ #50 ffff8801a2e0f388 ffffffff81b37029 ffffea00068b83c0 ffff8801a2e0fab0 0000000000000000 ffff8801a2e0fab0 ffff8801a2e0fa98 ffff8801a2e0f3c0 ffffffff81500aed ffff8801a2e0fab0 0000000000000001 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] print_address_description+0x6c/0x234 mm/kasan/report.c:256 [] kasan_report_error mm/kasan/report.c:355 [inline] [] kasan_report.cold.6+0x242/0x2fe mm/kasan/report.c:412 [] __asan_report_load1_noabort+0x14/0x20 mm/kasan/report.c:430 [] memcmp+0x126/0x160 lib/string.c:768 [] addr_match include/net/xfrm.h:833 [inline] [] __xfrm6_selector_match net/xfrm/xfrm_policy.c:87 [inline] [] xfrm_selector_match+0x6a0/0xe40 net/xfrm/xfrm_policy.c:101 [] xfrm_sk_policy_lookup+0x143/0x3c0 net/xfrm/xfrm_policy.c:1268 [] xfrm_lookup+0x1bd/0xb70 net/xfrm/xfrm_policy.c:2220 [] xfrm_lookup_route+0x39/0x140 net/xfrm/xfrm_policy.c:2354 [] ip6_dst_lookup_flow+0x17b/0x210 net/ipv6/ip6_output.c:1096 [] rawv6_sendmsg+0x9b5/0x2810 net/ipv6/raw.c:900 [] inet_sendmsg+0x203/0x4d0 net/ipv4/af_inet.c:770 [] sock_sendmsg_nosec net/socket.c:648 [inline] [] sock_sendmsg+0xbb/0x110 net/socket.c:658 [] sock_write_iter+0x223/0x3b0 net/socket.c:856 [] new_sync_write fs/read_write.c:496 [inline] [] __vfs_write+0x3d7/0x580 fs/read_write.c:509 [] vfs_write+0x187/0x520 fs/read_write.c:557 [] SYSC_write fs/read_write.c:604 [inline] [] SyS_write+0xd9/0x1c0 fs/read_write.c:596 [] do_syscall_64+0x19f/0x550 arch/x86/entry/common.c:285 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb The buggy address belongs to the page: page:ffffea00068b83c0 count:0 mapcount:0 mapping: (null) index:0x0 flags: 0x4000000000000000() page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801a2e0f980: 00 00 00 00 00 00 00 00 f2 f2 f2 f2 00 00 f2 f2 ffff8801a2e0fa00: f2 f2 f2 f2 00 00 f2 f2 f2 f2 f2 f2 00 00 00 00 >ffff8801a2e0fa80: 00 00 00 00 00 00 f2 f2 00 00 00 00 00 00 00 00 ^ ffff8801a2e0fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801a2e0fb80: 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 ==================================================================