On Mon, May 20, 2019 at 03:01:56PM +0530, Anirudh Gupta wrote: > > diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c > index eb8d14389601..fc2a8c08091b 100644 > --- a/net/xfrm/xfrm_user.c > +++ b/net/xfrm/xfrm_user.c > @@ -149,7 +149,7 @@ static int verify_newsa_info(struct xfrm_usersa_info *p, > int err; > > err = -EINVAL; > - switch (p->family) { > + switch (p->sel.family) { > case AF_INET: > if (p->sel.prefixlen_d > 32 || p->sel.prefixlen_s > 32) > goto out;
You just removed the only verification of p->family... -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt