Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp57443pxy; Wed, 21 Apr 2021 18:24:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGlfbWJu0KTudSoIUm/gU+cVYY656806Mlgr9nhroMJAca3iPHwTlLhne6qziKyqybJfyW X-Received: by 2002:a17:902:e34b:b029:ec:9a57:9cba with SMTP id p11-20020a170902e34bb02900ec9a579cbamr924844plc.56.1619054671764; Wed, 21 Apr 2021 18:24:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619054671; cv=none; d=google.com; s=arc-20160816; b=OPE5j63mfR0b95gfIGJCRFnLNE+PQlS3RdJXahkZiykN0H4Gj3acDOqcvXKn/WjW77 UQGLoO12bjhBkWq8s4D4ioXNQbNLoHo8OctahbRT8ttLshUEaRRYneq7Z8ND4IyOOLWP mXK7TycYXwMlLQ0ntTBmikR1QOTE6CN5MgAO3Mh+4Sp7FSr3oO3CwonLpDrJ1CyrWGnV 3KkNiuwoeUi1KldhzRFyGjeSSXzCYTlRxJu83MNLmrtZ+tmHaD7hBY6T2ujtOeq7OoLD CMoAcL1BSkML+dnsgI+hBuU4CZjuVTmK2IXSebBQvXGwrLcDwBbsM6RsvdwdXw5AvY/J khjw== 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=4tY3QxxosC4mZJ75ypJQhLZ4tEUFiZ28rXa6o6VVjfI=; b=Ddr9Qd/aj2hCdywcAPcQCxDkTo99RaTynZlAp47bAdQcQTPUarnelnGqBUrJDAiVQF vua+vHLb/tMecdEstAtJF7CwuurUPZXb+zZ0xIptnD6T1e6YBhra/JB7vcGaz0pQN0fS 4a1FrBJIyYiZ/56r8BETJoCSyW/UiMUxzFHo48bC2P256g9CQiZeDrdjSa4FbgBDSaoT TFxNvxYSbm0vkXONo5g/ju9HIv6QcnlJle8s1Ryo+ZGIjSpfn22mMyfYyMDfmXrldJNM Ys/QeB958KJnN7rqGXVuo0FhsR8YiX5c816q89zcffoox0u++XUfzSJM+rucd5ZwXHmb DyIg== 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 ca13si4420026pjb.148.2021.04.21.18.24.19; Wed, 21 Apr 2021 18:24: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 S239922AbhDUULY (ORCPT + 99 others); Wed, 21 Apr 2021 16:11:24 -0400 Received: from namei.org ([65.99.196.166]:48288 "EHLO mail.namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235029AbhDUULY (ORCPT ); Wed, 21 Apr 2021 16:11:24 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.namei.org (Postfix) with ESMTPS id 5266E1474; Wed, 21 Apr 2021 20:06:59 +0000 (UTC) Date: Thu, 22 Apr 2021 06:06:59 +1000 (AEST) From: James Morris To: Greg Kroah-Hartman cc: linux-kernel@vger.kernel.org, Wenwen Wang , "David S . Miller" Subject: Re: [PATCH 190/190] Revert "ethtool: fix a potential missing-check bug" In-Reply-To: <20210421130105.1226686-191-gregkh@linuxfoundation.org> Message-ID: References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-191-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 d656fe49e33df48ee6bc19e871f5862f49895c9e. > > 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: David S. Miller > Signed-off-by: Greg Kroah-Hartman The original patch looks valid and fixes a race. Reviewed-by: James Morris > --- > net/ethtool/ioctl.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/net/ethtool/ioctl.c b/net/ethtool/ioctl.c > index 807bc9465add..542f2428014c 100644 > --- a/net/ethtool/ioctl.c > +++ b/net/ethtool/ioctl.c > @@ -869,11 +869,6 @@ static noinline_for_stack int ethtool_get_rxnfc(struct net_device *dev, > info_size = sizeof(info); > if (copy_from_user(&info, useraddr, info_size)) > return -EFAULT; > - /* Since malicious users may modify the original data, > - * we need to check whether FLOW_RSS is still requested. > - */ > - if (!(info.flow_type & FLOW_RSS)) > - return -EINVAL; > } > > if (info.cmd == ETHTOOL_GRXCLSRLALL) { > -- > 2.31.1 > -- James Morris