Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp56679pxy; Wed, 21 Apr 2021 18:22:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzR0PTqrQmj4YZVYGBFasMRvXjS2LwcAthqcM/781WLNb3mXXCmzEu0A18jPfE4GxSs+YTG X-Received: by 2002:a17:902:7847:b029:ea:c45a:29fc with SMTP id e7-20020a1709027847b02900eac45a29fcmr1027994pln.46.1619054572659; Wed, 21 Apr 2021 18:22:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619054572; cv=none; d=google.com; s=arc-20160816; b=XPDeTTrZtrpoVjbdnH0AwZn9ESRMPD+qydqenElW3APmV431v0mPXfkvAF2GKiU9G0 oBoeenfPJGTXkslT8a7xsMmkMtjW0aEZgbWRqtK5J3OZdhbnKTg3l6qAk8YC00bSp0hb 6rLzaUvhQ2N4XUEWnnTR/JgwinfkYAafUcHZA5ZWHeLdF/N4q7EKdoraKb12vcWPWPIg u0VG61hUkQjlKcT6ib4zeVV+u1vBeWHpzoNGhtauiCnm3VcnN61WgI6pWEkbUXbsOm55 pvl5bqSToL1Mppx1hVfU59YkNMhHPyzZq5U1WM3eXNauoSRQ6yI/UPEQoWogJCwPxegU 2Vmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date; bh=/7iKcD0JtRSj0DRyoDxnC69yLsic8w73uZKBSBL9AjE=; b=QLdPAtwKlBwWHS+cSPfrUY7KSDXPY0UkB2O7fjgllG+tjqyaH1NUZRLS9LHte7Kf18 6qMi/DNikmKFObIXWQ3pOoQ0sGasL6IJ1ElBi3VMcTlklnxDKkeaDZODgZEs0gQLo3QQ lA4VInbcuksyOdSUDDFZhLBE8jWMlbSLpE1ZOT+Afm6NcaFRBppjKPvFCFP2i7GiL81A pWAfHigJsyZWcIG0cXcHRTIfs3VVhl4P26hRCydEcqSNv1TB4g2EETo8K11LfvPAFv9N 2twk+Q3C6Rk9QTHgyeozAF0sH2kqa8ol0jSQGYCGXR4ivnz5IwFr56idylh8Ezjg7bMB kkvg== 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 g14si1277682pgk.131.2021.04.21.18.22.40; Wed, 21 Apr 2021 18:22:52 -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 S242801AbhDUT77 (ORCPT + 99 others); Wed, 21 Apr 2021 15:59:59 -0400 Received: from namei.org ([65.99.196.166]:48254 "EHLO mail.namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236274AbhDUT76 (ORCPT ); Wed, 21 Apr 2021 15:59:58 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.namei.org (Postfix) with ESMTPS id 59035C6B; Wed, 21 Apr 2021 19:55:33 +0000 (UTC) Date: Thu, 22 Apr 2021 05:55:33 +1000 (AEST) From: James Morris To: Greg Kroah-Hartman cc: linux-kernel@vger.kernel.org, Wenwen Wang , Adam Radford , "Martin K . Petersen" Subject: Re: [PATCH 189/190] Revert "scsi: 3w-9xxx: fix a missing-check bug" In-Reply-To: <20210421130105.1226686-190-gregkh@linuxfoundation.org> Message-ID: References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-190-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Apr 2021, Greg Kroah-Hartman wrote: > This reverts commit c9318a3e0218bc9dacc25be46b9eec363259536f. > > 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: Wenwen Wang > Cc: Adam Radford > Cc: Martin K. Petersen > Signed-off-by: Greg Kroah-Hartman The original patch here looks valid and necessary. Please un-revert. Reviewed-by: James Morris > --- > drivers/scsi/3w-9xxx.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/drivers/scsi/3w-9xxx.c b/drivers/scsi/3w-9xxx.c > index b96e82de4237..4c5d4ea8a592 100644 > --- a/drivers/scsi/3w-9xxx.c > +++ b/drivers/scsi/3w-9xxx.c > @@ -886,11 +886,6 @@ static int twa_chrdev_open(struct inode *inode, struct file *file) > unsigned int minor_number; > int retval = TW_IOCTL_ERROR_OS_ENODEV; > > - if (!capable(CAP_SYS_ADMIN)) { > - retval = -EACCES; > - goto out; > - } > - > minor_number = iminor(inode); > if (minor_number >= twa_device_extension_count) > goto out; > -- > 2.31.1 > -- James Morris