Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp91053pxy; Tue, 27 Apr 2021 23:39:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywgwQatDfpPOlNgQjfyIwdmG9J30uVCmfoGrh5aD6Fa9rYV0le5Kem0ruMoDCfulnbTcEG X-Received: by 2002:a17:90a:e384:: with SMTP id b4mr2414528pjz.157.1619591941638; Tue, 27 Apr 2021 23:39:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619591941; cv=none; d=google.com; s=arc-20160816; b=tMSFFMGUZ17nCm+x6gKhstFc2r4U513EpYsKncEXQcl8O6BCSQpVXGwjFXkayZJDOV UWWVq0OpVv0QeQCAw0Rktz8GnE30SaufBem9YR3oCEgK8DJqZQipeCFVcNlubhV7660k AMVVaB0bhCnITRbQOrWL6ozEo5evS/OBSH8YFS39MUCYUMcX7HC+7mM+2u20lmBqw6qs la6LhzG7Oj4rGB++Hy0xBIF9JOSSiEyP62iynK0fbkW+Obzt4G/yj9Ud5B3mZhBg0vPG v6bHJXZBIF3585neBJlGpCJIdCiEbojEi3Zuac5hwIpXV2HcNro3uHBfLItDYUHjC1Fj vfZQ== 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:dkim-signature; bh=QZu2FfDcIme/wgqVcjW8xrxtM5sMAoSgeQJL5TTCYFg=; b=Cx2H7Pi3qutM206FOZchXmHEEnB+ISiiDG/2YjqS85FAxKw5hzlou0PZouUBVAsPgB O99SAzm/5vZlzy7tEtPivm5weuzX1bzK809x13z7eMAm5ltv6OAUqdoR4pthx3m+Y3xc 51xdSeqwxtnruYpFWhsztCEQCJ6xaeDCVxPTuY93L460kEg3UQmwLz82bbzu39rAhTsj gMa7q56fIWmV78FO2dz94HittLKz+j+86NPGzPXH6JCyu+PBPxrT+Tj28kDHxErtKRJh sdcE77Vx1yj2r5X/c+shm+yFcG1DpmJlsyBUZGTJNstSi1E6qb131RESUAwknkpjoRup adcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1ErRCEMW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v7si5754939pjg.8.2021.04.27.23.38.49; Tue, 27 Apr 2021 23:39:01 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1ErRCEMW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232966AbhD1Gi5 (ORCPT + 99 others); Wed, 28 Apr 2021 02:38:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:42452 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230490AbhD1Ghr (ORCPT ); Wed, 28 Apr 2021 02:37:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4286B6140C; Wed, 28 Apr 2021 06:37:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619591822; bh=CMcJmIK9jMCtaqxya88iQ+ik9bFi5aA7bIUCxMFrTwY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1ErRCEMW/F8PZRxrkPe3rnR8LEWXLKYa0UHjoPA661+MR2lT8BV82E38WUbyfD54q hHQvcX0OPnVFWafbZI1efZSLVjGFl47Vx0mbPyeRdLZh0neDQowiHOlZDjQcHyBj0T IVbsHhHi+OivaTNQ8AlE7TwBpuCEoKnzx0wStBQI= Date: Wed, 28 Apr 2021 08:36:55 +0200 From: Greg Kroah-Hartman To: Dominik Brodowski 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 On Wed, Apr 28, 2021 at 07:54:34AM +0200, Dominik Brodowski wrote: > 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. Ah, missed that, thanks! I'll keep the revert and then submit a fix for this properly. Many thanks for the re-review. greg k-h