Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp364456ybi; Sat, 29 Jun 2019 12:40:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+6/jnI+xrYhBaA2n5nKJl2m8mxF4kmnyYBjr+IAaesaS/jlsfDiis7MT8RmzYk7wrrOwe X-Received: by 2002:a17:90a:3225:: with SMTP id k34mr20774764pjb.31.1561837239969; Sat, 29 Jun 2019 12:40:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561837239; cv=none; d=google.com; s=arc-20160816; b=yP/1PkMNfdHHrH0lRNlBnYXyEd+R/IHuRAyeujCYdQ0ec12KEbqpEKp6UXAR41lPsW rQJASuy9Wa+VVhw5Db6F2J5BgilhAA89ziVOdZTukpIip0TxepSnzWLEy7z4yRN/6UMD LPw3eGoTzVmRtyBlFZQ+uVqGw1B0PCLbm8jkS4ikhr2hdfqgUSAOGCx8TnmDWVtGz3PG +R9dUAclcvP4Dmplo+AT9afae/hR6JOOz2CzlrArvWH95XTd+POx6L7/cNP1M8ckmSwV jdnY7bJGZy94OL65AKrc3Ufci1CfCipUe2XGlJtpNVnjdQ3OsCeICv9iBiixfyE8Sdvk HI2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=mS7NbHPTU5zxr4PB5iLA0AQQQ8J8KIDuDHXph6+7nRY=; b=kbSdUS6OrL8/x3Cq26YDYBx/88uh8CvP2xQziFBHe2RRQIr9f76Xlh8Crjdhi8stPt KXR1VCH09SS5KbuFp/UEr8s+14QMezcGZByyUYMXqRIWLMKsFfeH4AG541tE7/FPfFXC 9HrjQ4FbVq+eGGkfujCsLtjcC/FNjvh5JnryFj3OLxFbPJ413Bi4aNRsl7vk6NADNP9n B8MLBwPlI+Vay506J0FwrMvEsuXha9yZC3lXmM4cqpktE1YdzuvOu//LRGrod8nz3zwI OsLk3Y1wkRS+xkFa+rSmXgwnYtauFonExWad+rkSm5mP2GRccax+eR+jdfKWZsaAFqHF 8RUA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9si5488555pll.347.2019.06.29.12.40.23; Sat, 29 Jun 2019 12:40:39 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726942AbfF2TkR (ORCPT + 99 others); Sat, 29 Jun 2019 15:40:17 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:32939 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726891AbfF2TkR (ORCPT ); Sat, 29 Jun 2019 15:40:17 -0400 Received: by mail-lj1-f194.google.com with SMTP id h10so9176198ljg.0 for ; Sat, 29 Jun 2019 12:40:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mS7NbHPTU5zxr4PB5iLA0AQQQ8J8KIDuDHXph6+7nRY=; b=ZPs20tTt2vyTRMC1PiHdzjH3uQwO/Xg4Hgq4ZYrOOxtnmfZ4yjPehrUj26sY3FmyOc IVDDioRhPkxG1fomdgtiABLvGbXjggbe10SlQrovcX8lo4jz33G1vIrQ1YOxiuajR1cj J8bhSWVWCU0WzabCjgVzHfkIZUP/Z2hUhCtksH2hS6SiA3IJY62K9srH7/e20/f3dJrN Gx1QD3iGDxL1ZhMFaeprFY5AdD0kQL3WqxtWn24YD772hCDNBg+oBk6yIo90K3uoV5EI D+W8++IIdTPfNmTi5SXgdHzsKmWXwEpn3S477wd6ks2F1TEWeBwJsk/YMiwEcjXc8tsT OPcw== X-Gm-Message-State: APjAAAUV2E0KuR1uaEmFiqOxM1aBXlJ/GHE1TT30/ftGWsOnt9trlMFU NLZwVlRDYNve2Qug2BYY/tqkI8W2NL+79jaXSyO54DKERQI= X-Received: by 2002:a2e:3013:: with SMTP id w19mr9626540ljw.73.1561837215301; Sat, 29 Jun 2019 12:40:15 -0700 (PDT) MIME-Version: 1.0 References: <20190628225533.GJ11506@sasha-vm> <1560226F-F2C0-440D-9C58-D664DE3C7322@appneta.com> <20190629074553.GA28708@kroah.com> In-Reply-To: <20190629074553.GA28708@kroah.com> From: Matteo Croce Date: Sat, 29 Jun 2019 21:39:39 +0200 Message-ID: Subject: Re: net: check before dereferencing netdev_ops during busy poll To: Greg Kroah-Hartman Cc: Josh Elsasser , Sasha Levin , stable@vger.kernel.org, netdev , LKML , David Miller Content-Type: text/plain; charset="UTF-8" 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 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 Regards, -- Matteo Croce per aspera ad upstream