[PATCH 4.4 006/114] xfrm: validate template mode