Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4527719pxy; Tue, 27 Apr 2021 07:08:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZZP7apX10P7g9upIHuiloSvB++8fszt790n6+D9EgB2tmAzg2PX8WG3ovUjjnG6xrghrX X-Received: by 2002:a17:906:4153:: with SMTP id l19mr23339489ejk.109.1619532521664; Tue, 27 Apr 2021 07:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619532521; cv=none; d=google.com; s=arc-20160816; b=oSseMHYNB6iUgc0g5pbm6KRr9o9kKIW8grBaYYohtHBMmyARitWqiAW3DMDTboxdYy IYpHvcqKKaYhgevNcVrmlpP/D8f1JPlZF8e21Me/xXyypu9QPkbUBtkbFkxeSYX/FWPO zFkOzCQV6JqJwo+sZbPH9Uz+DmEdiaZWMdlfGR1Z22WPQftbOljkut5Xw9hGdQjqJNQE NvIekVbNP0D8obxhW8DznCk55Ogm90vmnCWSCPCCB8rg0eckjPGSkWBvMGFHO431Nfdi VzbWZRbmqthrv2gP9TykfRQkzVZeVL/cxrA4NrBeIE547wfMpbD9AjExKN2BbrU/vTYR hBsQ== 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=1Q27aMhSqu4Yw2KNleUrD3zyPao/U/YOLOjiB3GvS7o=; b=z81MB9w3dOT/7hqRktc7EhjI5UsQxChEr4lnls2fja/S7VcteZc0ROG+a3UBKyzxKn 2oDJBbYlzDB5HcYPNmbm91JrWBJbLfoY2RTR0SBJzBJFXO1D9mNoyK3kOKbgEPi6PlP0 fRtji4ToHIOZx/ZfYq4qRnrLY9XBsOdx3BqnK+UYl8k1Fk6MO1DwjylftTUcgUBtFSEi KWKRriiiFEhpYMZB8YZmWHci09BDHLzdkYLLdF9ZD6hedBclGDWezVhY1Ol+2ToOwe+s /qB1cRCNJF3BHX3pLmcwzyhpllZfIMfPDm1bBT6XxmwlgYWh1qV6GhtUCyXhREuiWYiQ iEwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R3cTz0NN; 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 cw10si2417341edb.406.2021.04.27.07.08.16; Tue, 27 Apr 2021 07:08:41 -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=R3cTz0NN; 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 S238246AbhD0OFw (ORCPT + 99 others); Tue, 27 Apr 2021 10:05:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:54240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236074AbhD0OFs (ORCPT ); Tue, 27 Apr 2021 10:05:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4844361002; Tue, 27 Apr 2021 14:05:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619532304; bh=HMi6HrRXHk8bHy6djyZb8hW7KqmxFiXxGNi0XpqtCUA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R3cTz0NNNnEHLSW9VtITwepbDizI18pC+N/eeST530vw39cEeQ4H8Nc4qHewXJiu2 VNy98QYW5wBrXaaXVUuGqA/dP0ui40NK/uGX5TmJmb4pHPVCtj6hpbNXBgEOe+7RzO g1po3hqdheX135rdTqcJVKLP4j5L6LlKCXyky0eE= Date: Tue, 27 Apr 2021 16:05:02 +0200 From: Greg Kroah-Hartman To: Stefan Schmidt Cc: linux-kernel@vger.kernel.org, Kangjie Lu , Mukesh Ojha Subject: Re: [PATCH 084/190] Revert "net: ieee802154: fix missing checks for regmap_update_bits" Message-ID: References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-85-gregkh@linuxfoundation.org> <4e9dad99-8a88-a617-33be-0cb17824bc62@datenfreihafen.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 Tue, Apr 27, 2021 at 03:46:27PM +0200, Stefan Schmidt wrote: > Hello Greg. > > On 27.04.21 15:39, Greg Kroah-Hartman wrote: > > On Wed, Apr 21, 2021 at 03:23:06PM +0200, Stefan Schmidt wrote: > > > Hello. > > > > > > On 21.04.21 14:59, Greg Kroah-Hartman wrote: > > > > This reverts commit 22e8860cf8f777fbf6a83f2fb7127f682a8e9de4. > > > > > > > > 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: Mukesh Ojha > > > > Cc: Stefan Schmidt > > > > Signed-off-by: Greg Kroah-Hartman > > > > --- > > > > drivers/net/ieee802154/mcr20a.c | 6 ------ > > > > 1 file changed, 6 deletions(-) > > > > > > > > diff --git a/drivers/net/ieee802154/mcr20a.c b/drivers/net/ieee802154/mcr20a.c > > > > index 8dc04e2590b1..2ce5b41983f8 100644 > > > > --- a/drivers/net/ieee802154/mcr20a.c > > > > +++ b/drivers/net/ieee802154/mcr20a.c > > > > @@ -524,8 +524,6 @@ mcr20a_start(struct ieee802154_hw *hw) > > > > dev_dbg(printdev(lp), "no slotted operation\n"); > > > > ret = regmap_update_bits(lp->regmap_dar, DAR_PHY_CTRL1, > > > > DAR_PHY_CTRL1_SLOTTED, 0x0); > > > > - if (ret < 0) > > > > - return ret; > > > > /* enable irq */ > > > > enable_irq(lp->spi->irq); > > > > @@ -533,15 +531,11 @@ mcr20a_start(struct ieee802154_hw *hw) > > > > /* Unmask SEQ interrupt */ > > > > ret = regmap_update_bits(lp->regmap_dar, DAR_PHY_CTRL2, > > > > DAR_PHY_CTRL2_SEQMSK, 0x0); > > > > - if (ret < 0) > > > > - return ret; > > > > /* Start the RX sequence */ > > > > dev_dbg(printdev(lp), "start the RX sequence\n"); > > > > ret = regmap_update_bits(lp->regmap_dar, DAR_PHY_CTRL1, > > > > DAR_PHY_CTRL1_XCVSEQ_MASK, MCR20A_XCVSEQ_RX); > > > > - if (ret < 0) > > > > - return ret; > > > > return 0; > > > > } > > > > > > > > > > > > > Acked-by: Stefan Schmidt > > > > Thanks for the review, but in re-reviewing this, I'll drop the revert as > > it looks correct to me. > > It is correct. We missed the return checking when the driver came in > initially. > > My Acked-by was really not about if the reverted patch was a security risk, > but about the fact that you wanted to sort them out individually due to the > Hypocrite Commits paper before getting them back in. > > If you are happy to change the approach to only revert patches you are in > doubt (this one is really not one of them) I am happy to keep this patch in. My first step was "revert them all so we know what to review", and now I'm going back and reviewing them all (and taking the review comments from everyone else who was nice enough to help out)" So it's easy for me to drop this from the series now, thanks! greg k-h