From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Date: Tue, 11 Nov 2014 13:17:11 +0000 Subject: Re: [patch -mainline] netfilter: ipset: small potential read beyond the end of buffer Message-Id: <20141111131702.GA8287@salvia> List-Id: References: <20141107062140.GA10905@mwanda> <20141110142446.GA29586@salvia> <20141110161121.GA7398@salvia> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Jozsef Kadlecsik Cc: Dan Carpenter , Patrick McHardy , "David S. Miller" , Sergey Popovich , Masanari Iida , Anton Danilov , stephen hemminger , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernddel.org, kernel-janitors@vger.kernel.org On Mon, Nov 10, 2014 at 10:00:20PM +0100, Jozsef Kadlecsik wrote: > On Mon, 10 Nov 2014, Pablo Neira Ayuso wrote: > > > On Mon, Nov 10, 2014 at 03:27:51PM +0100, Jozsef Kadlecsik wrote: > > > On Mon, 10 Nov 2014, Pablo Neira Ayuso wrote: > > > > >From other similar code in that location, I can see Jozsef is using > > > > this pattern: > > > > > > > > if (*len != sizeof(struct ip_set_req_version)) { > > > > ret = -EINVAL; > > > > goto done; > > > > } > > > > > > > > I think it would be good to stick to that for consistency. Thanks. > > > > > > Absolutely, yes. > > > > > > Acked-by: Jozsef Kadlecsik > > > > OK, then does this look fine to you? I took over Dan's patch and gave > > it another spin. See it attached, thanks. > > Yes, it's better this way, thanks! Applied, thanks Dan and Jozsef.