audit: type=1400 audit(1571834451.304:559): avc: denied { create } for pid=17312 comm="syz-executor.4" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=0 ================================================================== 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 ffff8800ba107710 by task syz-executor.2/17351 CPU: 0 PID: 17351 Comm: syz-executor.2 Not tainted 4.4.174+ #4 0000000000000000 d818b349fe67eef7 ffff8800ba106ed0 ffffffff81aad1a1 0000000000000000 ffffea0002e841c0 ffff8800ba107710 0000000000000004 0000000000000002 ffff8800ba106f08 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 [] xfrm_lookup+0x203/0xad0 net/xfrm/xfrm_policy.c:2204 [] xfrm_lookup_route+0x38/0x140 net/xfrm/xfrm_policy.c:2326 [] ip_route_output_flow+0x93/0xa0 net/ipv4/route.c:2437 [] udp_sendmsg+0x1537/0x1c60 net/ipv4/udp.c:1040 [] 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:ffffea0002e841c0 count:0 mapcount:0 mapping: (null) index:0x0 flags: 0x0() page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8800ba107600: 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 ffff8800ba107680: f2 f2 f2 00 00 00 f2 f2 f2 f2 f2 00 00 00 00 00 >ffff8800ba107700: 00 00 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 ^ ffff8800ba107780: f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 ffff8800ba107800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================