Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4666073pxy; Tue, 27 Apr 2021 09:54:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwR677Xp6cuxs3ur+G2lvweS9b01cKDwmhBrOEKFF5YV8Xk4N2slv4vMqlCYHgUW8S1IhkS X-Received: by 2002:aa7:87d3:0:b029:259:ff63:3500 with SMTP id i19-20020aa787d30000b0290259ff633500mr23129031pfo.35.1619542457358; Tue, 27 Apr 2021 09:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619542457; cv=none; d=google.com; s=arc-20160816; b=KFk5aPzEwsaGZ5NlKjigoAuKvJ1wzlqPj3jlLdd0+YpP18GB5fdL0QFfh25ua0AB9Q mM4TWRziNCQarhu4vjEFN0N2ywmkEW0RWKyWvXwZyxJaKE7t1ts+/x4Mm4KmKywjceag FMC0Fo/7A6jQxZLJ9sNAGA3bsQBXLxPWOJPfBO2OpJ7wtcAJ46eCUY5hl4R1TLaz7rjZ ORvWYREDGRMaZsyRlja2pAiBEAneNhazmQFpzQkEKNOWJivkzV0oe/nG0AqwUNmEeJ76 YMLgqVJnJZxOSTjfW3ob3TrUcCY5oL4u75oosPHLep3JTSc7IefjuhjRypYfCUfYzzfs Fsvg== 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=a0wiZhqZNfmki+aqR6y2L/Q+jHj3kg70DVd4ceonwag=; b=Ls70CTUU1QUGt9GtsLXvI3kiadMkARtosptP43QD+2Jr+9bhlZbgUqR1qusaIQYgHw Uy75FkcaromLfMZ4N1ESL0x4k1BVVC8GctXPxlHUZpBMiVFsbLkGv30KJbNu7kRI1kNm 4BHgwuv8XQG8kkvoNx7fnkofRt4YmV2p/p1jSsaI9phiyZStky0OcwB9WKMvIys8HwkM Xu5ONFJr+FWOQR45xgtFW1ycr2IDnGWqOrZcJdOL5SBrR5/LXtuWSk3HHipqS4hbkCom S7ZuZlT25gf9qSaDBKFZq6EyCaH5XxZ3gU4CK9P7cbYsNjN+Rx9AfjMsQA+WUUznpCG6 Q0lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nyM3bcPs; 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 m21si390020pgj.213.2021.04.27.09.54.03; Tue, 27 Apr 2021 09:54:17 -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=nyM3bcPs; 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 S236320AbhD0Qwl (ORCPT + 99 others); Tue, 27 Apr 2021 12:52:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:40280 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236169AbhD0Qwi (ORCPT ); Tue, 27 Apr 2021 12:52:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B7286613B0; Tue, 27 Apr 2021 16:51:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619542315; bh=Gb6j6D802U5onjtS/Hv4Fxx78OSEhrKvCt23km/J5CA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nyM3bcPsdA/6BZHVvtIuaxb7r8GIkjyzOOT2LkrPwiG9m3i385YQVC8QoJsSNebhF 8BZehLYSovB20oxf/45r3ZEHYp/53Nn2J5pLVevWx++eL9UzjJx609b8GyyFz4z+Mp cc7NTRGgEQTMyEc/AfHi9T4dyolxFq0M5WYT9RVk= Date: Tue, 27 Apr 2021 18:51:53 +0200 From: Greg Kroah-Hartman To: Kirill Tkhai Cc: linux-kernel@vger.kernel.org, Aditya Pakki , "David S . Miller" Subject: Re: [PATCH 176/190] Revert "net/net_namespace: Check the return value of register_pernet_subsys()" Message-ID: References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-177-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 21, 2021 at 11:45:26PM +0300, Kirill Tkhai wrote: > On 21.04.2021 16:00, Greg Kroah-Hartman wrote: > > This reverts commit 0eb987c874dc93f9c9d85a6465dbde20fdd3884c. > > > > 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: Kirill Tkhai > > Cc: David S. Miller > > Signed-off-by: Greg Kroah-Hartman > > --- > > net/core/net_namespace.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c > > index 43b6ac4c4439..9ae0b275238e 100644 > > --- a/net/core/net_namespace.c > > +++ b/net/core/net_namespace.c > > @@ -1101,8 +1101,7 @@ static int __init net_ns_init(void) > > init_net_initialized = true; > > up_write(&pernet_ops_rwsem); > > > > - if (register_pernet_subsys(&net_ns_ops)) > > - panic("Could not register network namespace subsystems"); > > + register_pernet_subsys(&net_ns_ops); > > Nacked-by: Kirill Tkhai > > This patch does not have any problem, since it has been already carefully reviewed. > Kernel panics here only, if we can't allocate ns_common::inum for init_net. > This can be only a result of a critical deficiency of memory during boot. Odd, ok, I'll drop this but this feels strange... greg k-h