================================================================== BUG: KASAN: stack-out-of-bounds in __xfrm6_daddr_saddr_hash net/xfrm/xfrm_hash.h:28 [inline] BUG: KASAN: stack-out-of-bounds in __xfrm_dst_hash net/xfrm/xfrm_hash.h:95 [inline] BUG: KASAN: stack-out-of-bounds in xfrm_dst_hash net/xfrm/xfrm_state.c:46 [inline] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x23f5/0x24c0 net/xfrm/xfrm_state.c:783 Read of size 4 at addr ffff8801b554f710 by task syz-executor.1/18075 CPU: 0 PID: 18075 Comm: syz-executor.1 Not tainted 4.4.174+ #4 0000000000000000 d0aa684650ed476b ffff8801b554eed0 ffffffff81aad1a1 0000000000000000 ffffea0006d553c0 ffff8801b554f710 0000000000000004 0000000000000003 ffff8801b554ef08 ffffffff81490120 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x120 lib/dump_stack.c:51 [] print_address_description+0x6f/0x21b mm/kasan/report.c:252 [] kasan_report_error mm/kasan/report.c:351 [inline] [] kasan_report mm/kasan/report.c:408 [inline] [] kasan_report.cold+0x8c/0x2be mm/kasan/report.c:393 [] __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:428 [] __xfrm6_daddr_saddr_hash net/xfrm/xfrm_hash.h:28 [inline] [] __xfrm_dst_hash net/xfrm/xfrm_hash.h:95 [inline] [] xfrm_dst_hash net/xfrm/xfrm_state.c:46 [inline] [] xfrm_state_find+0x23f5/0x24c0 net/xfrm/xfrm_state.c:783 [] xfrm_tmpl_resolve_one+0x1c7/0x790 net/xfrm/xfrm_policy.c:1455 [] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:1499 [inline] [] xfrm_resolve_and_create_bundle+0x210/0x1df0 net/xfrm/xfrm_policy.c:1847 audit_printk_skb: 3 callbacks suppressed audit: type=1400 audit(1570241736.421:324): avc: denied { setattr } for pid=18069 comm="syz-executor.4" name="comm" dev="proc" ino=66157 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=file permissive=0 [] xfrm_lookup+0x203/0xad0 net/xfrm/xfrm_policy.c:2204 [] xfrm_lookup_route+0x38/0x140 net/xfrm/xfrm_policy.c:2326 audit: type=1400 audit(1570241736.481:325): avc: denied { setattr } for pid=18072 comm="syz-executor.0" name="comm" dev="proc" ino=66162 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=file permissive=0 [] ip_route_output_flow+0x93/0xa0 net/ipv4/route.c:2437 [] udp_sendmsg+0x1537/0x1c60 net/ipv4/udp.c:1040 audit: type=1400 audit(1570241736.541:326): avc: denied { setattr } for pid=18071 comm="syz-executor.5" name="comm" dev="proc" ino=66165 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=file permissive=0 [] udpv6_sendmsg+0x12f2/0x24f0 net/ipv6/udp.c:1173 [] inet_sendmsg+0x202/0x4d0 net/ipv4/af_inet.c:755 [] sock_sendmsg_nosec net/socket.c:638 [inline] [] sock_sendmsg+0xbe/0x110 net/socket.c:648 [] ___sys_sendmsg+0x369/0x890 net/socket.c:1975 [] __sys_sendmmsg+0x130/0x2e0 net/socket.c:2060 [] SYSC_sendmmsg net/socket.c:2090 [inline] [] SyS_sendmmsg+0x35/0x60 net/socket.c:2085 [] entry_SYSCALL_64_fastpath+0x1e/0x9a The buggy address belongs to the page: page:ffffea0006d553c0 count:0 mapcount:0 mapping: (null) index:0x0 flags: 0x4000000000000000() page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801b554f600: 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 ffff8801b554f680: f2 f2 f2 00 00 00 f2 f2 f2 f2 f2 00 00 00 00 00 >ffff8801b554f700: 00 00 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 ^ ffff8801b554f780: f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 ffff8801b554f800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================