[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20190521024936.ou7gkfhb6hvhbi7j@gondor.apana.org.au>
Date: Tue, 21 May 2019 10:49:36 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Anirudh Gupta <anirudhrudr@...il.com>
Cc: Steffen Klassert <steffen.klassert@...unet.com>,
Anirudh Gupta <anirudh.gupta@...hos.com>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net] xfrm: Fix xfrm sel prefix length validation
On Mon, May 20, 2019 at 10:30:29PM +0530, Anirudh Gupta wrote:
> Yes, I notice that is the only verification of p->family from userspace.
> However, the underlying conditions added in commit '07bf7908950a',
> validates the selector src/dest prefix len.
You need to check both p->family and p->sel.family.
Cheers,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists