From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01E0FC433E7 for ; Fri, 9 Oct 2020 09:22:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 93CB32227E for ; Fri, 9 Oct 2020 09:22:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602235373; bh=9QDbQhMPmGQEhEsMut7dl1bPrUJtCAztPvmny1cCtMA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=zMwfZH0rVr9n8GVlNUHMlRTGC0X2W2R9RB8vJrrTCqaiBO/eALzuESoriINw+Cj+a 2G7ikFPcaSu+k+N2uL7SwOse4v/oz2/MK8UY3rcipPXxrn/2O9cGXnEGL2ayTrimPh cntUuLFL4QLdzZPljP0UOCiXiCJwexSBjR4gNTSk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733077AbgJIJWw (ORCPT ); Fri, 9 Oct 2020 05:22:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:56238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731262AbgJIJWw (ORCPT ); Fri, 9 Oct 2020 05:22:52 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BF27C20782; Fri, 9 Oct 2020 09:22:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602235370; bh=9QDbQhMPmGQEhEsMut7dl1bPrUJtCAztPvmny1cCtMA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AFe+vqsB3QPkMjrCCaRz9Q4xFhFIVVNGBHQDq1oKY3HO0BlgLsTHZG7Kisx9QL9PV Lm8FML7/l5jjyWi8yGKq+SJFyKul92+40Ik9P2sm/Wnzmg3iomhBBcCTwM7eCTnqDG 6EQEOhrtJMvQOpxT8t4HyI6J30/V80gCyLNGFHP8= Date: Fri, 9 Oct 2020 11:23:36 +0200 From: Greg Kroah-Hartman To: Wen Yang Cc: Sasha Levin , "Eric W . Biederman" , stable@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Stable backport request for fixing the issue of not being able to create a new pid_ns Message-ID: <20201009092336.GA415570@kroah.com> References: <20201008130021.79829-1-wenyang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201008130021.79829-1-wenyang@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 08, 2020 at 09:00:21PM +0800, Wen Yang wrote: > 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 How well did you test these backports? I see at least one fix for them that you missed, odds are there might have been more. Please verify that the above list of patches _really_ is what you want to have applied, and that you have tested it properly. thanks, greg k-h