From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934526AbdCVNFI (ORCPT ); Wed, 22 Mar 2017 09:05:08 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:54706 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751630AbdCVNE7 (ORCPT ); Wed, 22 Mar 2017 09:04:59 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 4FBF160D09 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Johan Hovold Cc: QCA ath9k Development , Daniel Drake , Ulrich Kunitz , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [2/2] zd1211rw: fix NULL-deref at probe References: <20170313124421.28587-2-johan@kernel.org> <20170322090415.BE414609FF@smtp.codeaurora.org> <20170322124548.GC10130@localhost> Date: Wed, 22 Mar 2017 15:02:12 +0200 In-Reply-To: <20170322124548.GC10130@localhost> (Johan Hovold's message of "Wed, 22 Mar 2017 13:45:48 +0100") Message-ID: <87r31p31nv.fsf@kamboji.qca.qualcomm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Johan Hovold writes: > On Wed, Mar 22, 2017 at 09:04:15AM +0000, Kalle Valo wrote: >> Johan Hovold wrote: >> > Make sure to check the number of endpoints to avoid dereferencing a >> > NULL-pointer or accessing memory beyond the endpoint array should a >> > malicious device lack the expected endpoints. >> > >> > Fixes: a1030e92c150 ("[PATCH] zd1211rw: Convert installer CDROM >> > device into WLAN device") >> > Cc: Daniel Drake >> > Signed-off-by: Johan Hovold >> >> Patch applied to wireless-drivers-next.git, thanks. >> >> ca260ece6a57 zd1211rw: fix NULL-deref at probe > > What about patch 1/2 which fixes the same bug (literally copied from the > zd1211rw driver)? I will apply that to my separate ath.git tree, just didn't get to your patch yet. > And as these fixes should be backported to stable (I left out the tag > for networking drivers) Actually for wireless drivers you should add the stable tag. > why only apply to -next? I didn't see that the fix was important enough for 4.11. -- Kalle Valo