[PATCH AUTOSEL 4.14 13/61] xfrm: validate template mode