Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4734699pxy; Tue, 27 Apr 2021 11:21:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwS4dMTILphfLrYfnOBDhHpz5Xlrk6sInko2yDs75kIdRB4fSZlNGyM6n5VkNMLKKUYy0Vd X-Received: by 2002:a50:eb82:: with SMTP id y2mr6101080edr.190.1619547660323; Tue, 27 Apr 2021 11:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619547660; cv=none; d=google.com; s=arc-20160816; b=VFcuX0ELQVKXq+3lGBqyGkVMLFXeb0jSMObtNAAMt0dGH0FnBHeVXycFC+IoD6f/LP AmFtjZegkiWroDldtoRSsvOPRgyG8QgpYllrDFIGiwV/zo+ZrsNarUhNS2NjOYtzOEj/ KaA1WtoPu8/331vencEIbFBfzR23U4sWvj621HMytUV2cmB2ZJiDnDfBcS+GAeTCGqXu ETYkuRmW2Bv1fa2gOu3uwlIGzRHVypLDc1mR4IGq3RAWVjRtb3fHbYvM8hGjtGBM8NFT v2+tW/yXdYmI/+T1cQurBNtQxPx6+eXrvczfSKAGQnk3P8wInk4VpuQxG4MpmlNDHhyO mE+Q== 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=Y39BdXhoyPkEbDYBTFTdXWQWpX0GorMXOhQVbSV6Hig=; b=fZF/EoWajfk8H4ORHyAvZnTa9FCGBwbOGYs3tdti8U67AQ5G8gRuiR6xYxWHnUOMW7 Xtmaj1uuq6x5g/ZsW5cOLbIIFKzHd8JSj4KhFmUPvhFdl0W/0DGQKWIuOqfQt39gcVRl ImdalZkhEbmmc9570m+n2MBJ4ublyW4wzRdC+GC68nrEhXa7mxra8X4YTH/1UTwsRJ91 lW6P1T6CE82ARY8RwooREPfij2WpTlCV2jFZKwtb0U9efPu7Jmq/0N5cTK6ufLzU4nHW JGjF2NNyknC9rsK7tJ9MXDUedID7DQVniJPExtb/fNaQJ1VZI58kvgdwEB5EIucQmRLd V66w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="v/wSnG0x"; 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 l8si1446709edb.75.2021.04.27.11.20.36; Tue, 27 Apr 2021 11:21:00 -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="v/wSnG0x"; 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 S236651AbhD0SRr (ORCPT + 99 others); Tue, 27 Apr 2021 14:17:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:40922 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235647AbhD0SRq (ORCPT ); Tue, 27 Apr 2021 14:17:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 140D6610A5; Tue, 27 Apr 2021 18:17:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619547422; bh=LumwNqHLJauMnAldWDWcGSi2oYMHXUaUXCIN5hjti64=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=v/wSnG0xJn1BzLKxXYxy7mB4j6BsRFPM+BU0Iz48tD/EayfBVX3zfAY2p0+aEwAMr VMQxTj/0B/cr60KFc/cAHLiexBUfYj0pckTx4glIKwCvixzJKIieQsNHeTW2Dm7Mxk TiuiHbB848zC9w/px/cLMA0TFrkZ4Six56HNWPkk= Date: Tue, 27 Apr 2021 20:17:00 +0200 From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Aditya Pakki Subject: Re: [PATCH 144/190] Revert "misc/ics932s401: Add a missing check to i2c_smbus_read_word_data" Message-ID: References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-145-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210421130105.1226686-145-gregkh@linuxfoundation.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 21, 2021 at 03:00:19PM +0200, Greg Kroah-Hartman wrote: > This reverts commit b05ae01fdb8966afff5b153e7a7ee24684745e2d. > > 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: Aditya Pakki > Cc: Greg Kroah-Hartman > Signed-off-by: Greg Kroah-Hartman > --- > drivers/misc/ics932s401.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/misc/ics932s401.c b/drivers/misc/ics932s401.c > index 2bdf560ee681..733e5c2b57ce 100644 > --- a/drivers/misc/ics932s401.c > +++ b/drivers/misc/ics932s401.c > @@ -133,8 +133,6 @@ static struct ics932s401_data *ics932s401_update_device(struct device *dev) > */ > for (i = 0; i < NUM_MIRRORED_REGS; i++) { > temp = i2c_smbus_read_word_data(client, regs_to_copy[i]); > - if (temp < 0) > - data->regs[regs_to_copy[i]] = 0; > data->regs[regs_to_copy[i]] = temp >> 8; > } > > -- > 2.31.1 > While ackward, the original looks good enough for now, so I'll drop this revert. greg k-h