Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1328506pxu; Thu, 8 Oct 2020 08:52:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvSyDwhM/E5lqjKzME6zKLie6BUjho4a3//lwouX4ITT9AU4S95TpOPjgBHBHAtdCzUPMO X-Received: by 2002:a50:8fa3:: with SMTP id y32mr10025348edy.78.1602172342023; Thu, 08 Oct 2020 08:52:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602172342; cv=none; d=google.com; s=arc-20160816; b=yfbP0NiDwttDOuHxo7jE/D5lCAWY7H/CQuhUnCpcplhojoH8iqSxLic33hk9+ijDtX v0RxQTTqakksXqrJGsI0oombc2p7NhH06IXig76DlrzI/c5CxGXYhF1L/6BkMYlT1wmV zl4cvcJas0ODNM0SgNuwB0ciuFvkifMmCRGf4doa8+xXjakBi5UXSRGDetqLF8uexjxR FMZau+VzJHGH1Fp+5qEI49v+Pjx7h7g2ZWGKX5o8ogt9/i+jadg11HAIxyi7yNcXMNan VSxLfb7+Jx4QiMki+DG/BwtpiklzW+D6G6Ep8goGBD0Prcl9WeJYkUD16LaP1026u4uu yYTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=2Tv5DwuGxcGSal74Z/tp70gUqzls0yVBJftcWl0IkS0=; b=EqZMZGHq1U7dmbF83m8hUVX5+Lb/MXke6oqb9WpgHJOuTO21aXrC5QPT51qwwevjU/ xXX89GoV29h0CO+DmoNxRQn3EESSJybvrGEMNqHUHZo66Le14aozf83eLqTtowgt/kdl LrQs1sMURgzXKSkgp+Dv/yi2Hwo2B4GF/QMxj03egJ2XgIdbq4os06117GYOl4k8dVm4 Jh473UFFJ9uqRDOhpJWUPyK8iCFnSqdZ88oFF514cQmHHDB4+F+ypWSRhtKOI9ken2nR neTOdFrZg95PwZ1P33uu7ORK+nm5h044Py2FIg61yVwzdothk4eF8xBgkOU5ySU3K+Oi 3A3w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a23si4449943ejg.50.2020.10.08.08.51.58; Thu, 08 Oct 2020 08:52:22 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730193AbgJHNAe (ORCPT + 99 others); Thu, 8 Oct 2020 09:00:34 -0400 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:42187 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730173AbgJHNAd (ORCPT ); Thu, 8 Oct 2020 09:00:33 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=wenyang@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0UBIzwIH_1602162022; Received: from localhost(mailfrom:wenyang@linux.alibaba.com fp:SMTPD_---0UBIzwIH_1602162022) by smtp.aliyun-inc.com(127.0.0.1); Thu, 08 Oct 2020 21:00:28 +0800 From: Wen Yang To: Greg Kroah-Hartman , Sasha Levin Cc: Wen Yang , "Eric W . Biederman" , stable@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Stable backport request for fixing the issue of not being able to create a new pid_ns Date: Thu, 8 Oct 2020 21:00:21 +0800 Message-Id: <20201008130021.79829-1-wenyang@linux.alibaba.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After the process exits, the following three dentries still refer to the pid: /proc/ /proc//ns /proc//ns/pid https://bugzilla.kernel.org/show_bug.cgi?id=208613 According to the commit f333c700c610 ("pidns: Add a limit on the number of pid namespaces"), if the pid cannot be released, it may result in the inability to create a new pid_ns. Please backport the following patches to the kernel stable trees (from 4.9.y to 5.6.y): 7bc3e6e55acf ("proc: Use a list of inodes to flush from proc") 26dbc60f385f ("proc: Generalize proc_sys_prune_dcache into proc_prune_siblings_dcache") f90f3cafe8d5 ("proc: Use d_invalidate in proc_prune_siblings_dcache") Signed-off-by: Wen Yang Cc: Eric W. Biederman Cc: stable@vger.kernel.org Cc: linux-kernel@vger.kernel.org