audit: type=1400 audit(1543609774.955:11221): avc: denied { sys_admin } for pid=2107 comm="syz-executor5" capability=21 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 ================================================================== 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:60 [inline] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x269d/0x2920 net/xfrm/xfrm_state.c:807 Read of size 4 at addr ffff8801d538f650 by task syz-executor4/7836 CPU: 1 PID: 7836 Comm: syz-executor4 Not tainted 4.9.141+ #1 ffff8801d538ecc0 ffffffff81b42e79 ffffea000754e3c0 ffff8801d538f650 0000000000000000 ffff8801d538f650 ffff8801c977a670 ffff8801d538ecf8 ffffffff815009b8 ffff8801d538f650 0000000000000004 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_load4_noabort+0x14/0x20 mm/kasan/report.c:432 [] __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:60 [inline] [] xfrm_state_find+0x269d/0x2920 net/xfrm/xfrm_state.c:807 [] xfrm_tmpl_resolve_one+0x1d2/0x7a0 net/xfrm/xfrm_policy.c:1500 [] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:1544 [inline] [] xfrm_resolve_and_create_bundle+0x21f/0x1e70 net/xfrm/xfrm_policy.c:1893 [] xfrm_lookup+0x239/0xc00 net/xfrm/xfrm_policy.c:2254 [] xfrm_lookup_route+0x39/0x140 net/xfrm/xfrm_policy.c:2379 [] ip_route_output_flow+0x90/0xa0 net/ipv4/route.c:2448 [] udp_sendmsg+0x13d9/0x1c60 net/ipv4/udp.c:1025 [] udpv6_sendmsg+0x127d/0x2430 net/ipv6/udp.c:1086 [] 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 [] ___sys_sendmsg+0x47a/0x840 net/socket.c:1982 [] __sys_sendmmsg+0x161/0x3d0 net/socket.c:2072 [] SYSC_sendmmsg net/socket.c:2103 [inline] [] SyS_sendmmsg+0x35/0x60 net/socket.c:2098 [] 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:ffffea000754e3c0 count:0 mapcount:0 mapping: (null) index:0x0 flags: 0x4000000000000000() page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801d538f500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 ffff8801d538f580: f1 f1 f1 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 00 f2 >ffff8801d538f600: f2 f2 f2 00 00 00 00 00 00 00 f2 f2 f2 f2 f2 00 ^ ffff8801d538f680: 00 00 00 00 00 00 00 00 f2 f2 f2 00 00 00 00 00 ffff8801d538f700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================