Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2400899ybi; Mon, 1 Jul 2019 11:21:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQER1yU1XtWgBC6bpc+m6UpJN5663SaSW5/2KFd+ahmmDO87JZHR6/+JhPegbrQUMViDL9 X-Received: by 2002:a63:5147:: with SMTP id r7mr8830224pgl.320.1562005286583; Mon, 01 Jul 2019 11:21:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562005286; cv=none; d=google.com; s=arc-20160816; b=awP4OmDQ+tLYtGrV2sNMPPmFxJVG4yRFej69tXXveKrgHl0pu/20NVK56tHo15COcL KMWf1MPQQS6khmZQBaceDBLvfgJtF07rLT8SbZZUVULpf2rCJudpz6Fp5RNhzhGt8P5S ZPfsvEnYGWZrq2m/psLfq1sfYzV7ptrJ8z4OkgKvsT2rrQIwcPg+frRlea3mk59dYDbA W1ny1GycJU5ntKkvvLhLsYXygfqET2GhNv4qyQC6CLdSJcJufYcVN/Iuf2XSGth1/+26 TVS0MhupGnO0Ny7RzMdeXnbUPD210vTtXfO9KWge2h48fcUliDRI4RrqTXyzV1bSHSmV d4pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mGEUyjhxGasJJ16qVnjmo8pPTLTXux15QTtcrLp3Wi4=; b=d0vMDOxegpEF2VQioaQlr1OfTzxOlFKw/X2RUf/Bkes91hceaNnQ3ZySUUCL9UhSsh 4e2rzfs5M7kTF/7e7hXB5OQgDlZ2RsdhuHc5T5/J7teUncYZEcBtlt6E0GH/bzAELSRk XPa8BccsuuYV+spjIEHlDULEsLR1Bi2cg/5xnCpV7+oC8C5T7KOkGXiZ5nlzOfd2wZuf 6lblFf7K22PMfYxV4/PqRaCPxX92OZ0UmbSwjNdT3UE1/bi+ND6NcNGnsWkYqv6Gkzhk Ds6by5dAi1xkqMzetRBN3kzlVoNqzYx0oxvkiqmUiizCrmX0P5bGQusItOg0rOKqibEr yu0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0HMsdmwt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a190si4844829pge.4.2019.07.01.11.21.09; Mon, 01 Jul 2019 11:21:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0HMsdmwt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730103AbfGARwp (ORCPT + 99 others); Mon, 1 Jul 2019 13:52:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:56964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727270AbfGARwo (ORCPT ); Mon, 1 Jul 2019 13:52:44 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5D6C4206A3; Mon, 1 Jul 2019 17:52:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562003563; bh=ZGO7O3XCk7XjU6iuHr6MppSLXCp8g8SbuyRHmjaN+OY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0HMsdmwt132VKBe2H6UUL8Ts2vVnkNW+07F5NQvGJ/DkSDzonMdeUCqZT/2Aupfnr CL3gY0yacb348ueLMwT/VR1ye2tD7NpLLHUZP3PQAKjxpyN8Yzl/b4JEEBGDexuGVp 6D636eOM8rrousg5uMIm6vB5t5xdFtyPdqk6FdKY= Date: Mon, 1 Jul 2019 19:52:41 +0200 From: Greg Kroah-Hartman To: Matteo Croce Cc: Josh Elsasser , Sasha Levin , stable@vger.kernel.org, netdev , LKML , David Miller Subject: Re: net: check before dereferencing netdev_ops during busy poll Message-ID: <20190701175241.GB9081@kroah.com> References: <20190628225533.GJ11506@sasha-vm> <1560226F-F2C0-440D-9C58-D664DE3C7322@appneta.com> <20190629074553.GA28708@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 29, 2019 at 09:39:39PM +0200, Matteo Croce wrote: > On Sat, Jun 29, 2019 at 9:45 AM Greg Kroah-Hartman > wrote: > > > > On Fri, Jun 28, 2019 at 07:03:01PM -0700, Josh Elsasser wrote: > > > On Jun 28, 2019, at 3:55 PM, Sasha Levin wrote: > > > > > > > What's the upstream commit id? > > > > > > The commit wasn't needed upstream, as I only sent the original patch after > > > 79e7fff47b7b ("net: remove support for per driver ndo_busy_poll()") had > > > made the fix unnecessary in Linus' tree. > > > > > > May've gotten lost in the shuffle due to my poor Fixes tags. The patch in > > > question applied only on top of the 4.9 stable release at the time, but the > > > actual NPE had been around in some form since 3.11 / 0602129286705 ("net: add > > > low latency socket poll"). > > > > Ok, can people then resend this and be very explicit as to why this is > > needed only in a stable kernel tree and get reviews from people agreeing > > that this really is the correct fix? > > > > thanks, > > > > greg k-h > > Hi Greg, > > I think that David alredy reviewed the patch here: > > https://lore.kernel.org/netdev/20180313.105115.682846171057663636.davem@davemloft.net/ > > Anyway, I tested the patch and it fixes the panic, at least on my > iwlwifi card, so: > > Tested-by: Matteo Croce Ok, but what can I do with this? I need a real patch, in mail form, that I can apply. Not a web link to an email archive. You have read the stable kernel rules, right? :) greg k-h