From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from wolverine01.qualcomm.com ([199.106.114.254]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1asXsu-0001oN-A0 for ath10k@lists.infradead.org; Tue, 19 Apr 2016 15:48:17 +0000 From: "Valo, Kalle" Subject: Re: [patch v2] ath10k: add some sanity checks Date: Tue, 19 Apr 2016 15:47:53 +0000 Message-ID: <87vb3diore.fsf@kamboji.qca.qualcomm.com> References: <20160411081520.GA17911@mwanda> In-Reply-To: <20160411081520.GA17911@mwanda> (Dan Carpenter's message of "Mon, 11 Apr 2016 11:15:20 +0300") Content-Language: en-US Content-ID: MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ath10k" Errors-To: ath10k-bounces+kvalo=adurom.com@lists.infradead.org To: Dan Carpenter Cc: "linux-wireless@vger.kernel.org" , "kernel-janitors@vger.kernel.org" , "michal.kazior@tieto.com" , "ath10k@lists.infradead.org" Dan Carpenter writes: > Smatch complains that since "ev->peer_id" comes from skb->data that > means we can't trust it and have to do a bounds check on it to prevent > an array overflow. > > Fixes: 6942726f7f7b ('ath10k: add fast peer_map lookup') > Signed-off-by: Dan Carpenter Applied, thanks. -- Kalle Valo _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Valo, Kalle" Date: Tue, 19 Apr 2016 15:47:53 +0000 Subject: Re: [patch v2] ath10k: add some sanity checks Message-Id: <87vb3diore.fsf@kamboji.qca.qualcomm.com> List-Id: References: <20160411081520.GA17911@mwanda> In-Reply-To: <20160411081520.GA17911@mwanda> (Dan Carpenter's message of "Mon, 11 Apr 2016 11:15:20 +0300") MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter Cc: "linux-wireless@vger.kernel.org" , "kernel-janitors@vger.kernel.org" , "michal.kazior@tieto.com" , "ath10k@lists.infradead.org" Dan Carpenter writes: > Smatch complains that since "ev->peer_id" comes from skb->data that > means we can't trust it and have to do a bounds check on it to prevent > an array overflow. > > Fixes: 6942726f7f7b ('ath10k: add fast peer_map lookup') > Signed-off-by: Dan Carpenter Applied, thanks. -- Kalle Valo From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from wolverine02.qualcomm.com ([199.106.114.251]:7069 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932598AbcDSPr4 convert rfc822-to-8bit (ORCPT ); Tue, 19 Apr 2016 11:47:56 -0400 From: "Valo, Kalle" To: Dan Carpenter CC: "michal.kazior@tieto.com" , "kernel-janitors@vger.kernel.org" , "linux-wireless@vger.kernel.org" , "ath10k@lists.infradead.org" Subject: Re: [patch v2] ath10k: add some sanity checks Date: Tue, 19 Apr 2016 15:47:53 +0000 Message-ID: <87vb3diore.fsf@kamboji.qca.qualcomm.com> (sfid-20160419_174807_245123_1BA32C07) References: <20160411081520.GA17911@mwanda> In-Reply-To: <20160411081520.GA17911@mwanda> (Dan Carpenter's message of "Mon, 11 Apr 2016 11:15:20 +0300") Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: Dan Carpenter writes: > Smatch complains that since "ev->peer_id" comes from skb->data that > means we can't trust it and have to do a bounds check on it to prevent > an array overflow. > > Fixes: 6942726f7f7b ('ath10k: add fast peer_map lookup') > Signed-off-by: Dan Carpenter Applied, thanks. -- Kalle Valo