Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp68515pxy; Tue, 27 Apr 2021 23:03:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxy4Y/OCCugdxzQa2YdhWZ2upf5oByYLIJHUMDAOUZmRX6A+KWkr+122jr8ZQ6H6fSvAV9c X-Received: by 2002:a17:906:2b8c:: with SMTP id m12mr20502978ejg.22.1619589811951; Tue, 27 Apr 2021 23:03:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619589811; cv=none; d=google.com; s=arc-20160816; b=X7O1n/uNYFcBE56Zm/y+NpUfH/9Ezo65oWciBiwnW88VCy9ilRWwnBnna50iFdQWOU vrQZZD71qmZghzT8/za6dXREAprq0/940XvdRx4kp6KvrIAPJIEzADcC6o83HmlyCj+G Uq7XXYFZyFHXaeXhcICSD1l85Jkv5kYxdDWpsy8yO5m9JqqjWyXSFS1A7QZPs0K5vlD1 XcmOsFUV+9LVRSfqklnZjKqLAk9lc22zbjYW959+MYl/gA6W9iIL4uuIgysz+Xh3tBSA LLrKwuRZaOxgRm1tV/EyhajDNi4J0Jps5TocRdQahWkDEKVfA3S4EPJ0XT7wRZSpoZbv j9eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=8V93hKqWYu+5R24sWVEqG/vX4HwbmJY2B+GOwh5PVww=; b=BqtfVdhpODb4UClMU70joY+b1PCJd6Sm83YmlZFB3rdSfV6etclbWD+y2hRdwaPp7A 4yjmLm0oLnSe2xC5kVeQGAU0pZdayIKoLs46ooBOcjSckjSa+hGflMnGiZmaJGpwibtZ 5I1Qwe61/ac9tYVEXT+PXkXNSix1yxIMBocrfqbMRgwH5uPf10o3zxf/ak2GfC42u0im W/Ah9JZwUo9BBSQIwghGNlz10wBAsuqicjE0jYsr/MIAJD93sJHRXvtj6AXMFZcZ06IP hGjBBl2Xt3TOt/KfqaLwMJMLcVZV4tqp+T+Tumi2vFfPJXmrATwuZTbBA0ENRYPwhKmr t8Og== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x18si2307109ejd.75.2021.04.27.23.03.08; Tue, 27 Apr 2021 23:03:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235851AbhD1GBH (ORCPT + 99 others); Wed, 28 Apr 2021 02:01:07 -0400 Received: from isilmar-4.linta.de ([136.243.71.142]:55520 "EHLO isilmar-4.linta.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbhD1GBH (ORCPT ); Wed, 28 Apr 2021 02:01:07 -0400 X-Greylist: delayed 310 seconds by postgrey-1.27 at vger.kernel.org; Wed, 28 Apr 2021 02:01:07 EDT X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES Received: from light.dominikbrodowski.net (brodo.linta [10.2.0.102]) by isilmar-4.linta.de (Postfix) with ESMTPSA id AA752200CCC; Wed, 28 Apr 2021 05:54:45 +0000 (UTC) Received: by light.dominikbrodowski.net (Postfix, from userid 1000) id D95B0209C5; Wed, 28 Apr 2021 07:54:34 +0200 (CEST) Date: Wed, 28 Apr 2021 07:54:34 +0200 From: Dominik Brodowski To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Kangjie Lu , "David S . Miller" Subject: Re: [PATCH 132/190] Revert "net: fujitsu: fix a potential NULL pointer dereference" Message-ID: References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-133-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Wed, Apr 28, 2021 at 07:40:49AM +0200 schrieb Greg Kroah-Hartman: > On Wed, Apr 21, 2021 at 03:00:07PM +0200, Greg Kroah-Hartman wrote: > > This reverts commit 9f4d6358e11bbc7b839f9419636188e4151fb6e4. > > > > Commits from @umn.edu addresses have been found to be submitted in "bad > > faith" to try to test the kernel community's ability to review "known > > malicious" changes. The result of these submissions can be found in a > > paper published at the 42nd IEEE Symposium on Security and Privacy > > entitled, "Open Source Insecurity: Stealthily Introducing > > Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University > > of Minnesota) and Kangjie Lu (University of Minnesota). > > > > Because of this, all submissions from this group must be reverted from > > the kernel tree and will need to be re-reviewed again to determine if > > they actually are a valid fix. Until that work is complete, remove this > > change to ensure that no problems are being introduced into the > > codebase. > > > > Cc: Kangjie Lu > > Cc: David S. Miller > > Signed-off-by: Greg Kroah-Hartman > > --- > > drivers/net/ethernet/fujitsu/fmvj18x_cs.c | 5 ----- > > 1 file changed, 5 deletions(-) > > > > diff --git a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c > > index a7b7a4aace79..dc90c61fc827 100644 > > --- a/drivers/net/ethernet/fujitsu/fmvj18x_cs.c > > +++ b/drivers/net/ethernet/fujitsu/fmvj18x_cs.c > > @@ -547,11 +547,6 @@ static int fmvj18x_get_hwinfo(struct pcmcia_device *link, u_char *node_id) > > return -1; > > > > base = ioremap(link->resource[2]->start, resource_size(link->resource[2])); > > - if (!base) { > > - pcmcia_release_window(link, link->resource[2]); > > - return -ENOMEM; > > - } > > - > > pcmcia_map_mem_page(link, link->resource[2], 0); > > > > /* > > -- > > 2.31.1 > > > > Original commit looks correct here, I'll drop the revert. NAK. The only caller of that function checks only for "== -1" as error condition, so this error is not handled correctly. So this patch was/is obviously broken. Thanks, Dominik