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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19DCBC77B72 for ; Thu, 20 Apr 2023 19:18:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232040AbjDTTSk (ORCPT ); Thu, 20 Apr 2023 15:18:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231972AbjDTTS1 (ORCPT ); Thu, 20 Apr 2023 15:18:27 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 246813C27 for ; Thu, 20 Apr 2023 12:18:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=UXWoPplg6fSqmEcLz6yYPJoYhlqN+hzIgoCxz5ZOmqg=; b=T8FHT16rGh+NUyf/N4U3ERW0Ws SL+ClK2K1rEg3zs1+CaAo0QGdmjyGx2W1nsF7drejdegvpR8rFGILTde+NKVJSsDnVXKt+I/FUzVD WxaDoQ1a3zyDseOw5n1R5anZ2YdZobdc0cx3SvfG835AJ2AfjyU8SBFT+/ttIZuycOwOU/evADoDi B7IFwuRQxXdr2rGGXpVxcaabrj5n7TF2MiqjXWrz6pXI2BpPrLn5ZZMZHzC6Kd+V/QxiLHGGjDkui MvCeiI6grOr3CoWkU6+AdWEezxSNx6lGLoFTt/UNRRPl2/9XX81m12e4saDnaNo+KN2CtAk24C4yZ SyV1zHXQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1ppZnF-008qZm-0u; Thu, 20 Apr 2023 19:18:09 +0000 Date: Thu, 20 Apr 2023 12:18:09 -0700 From: Luis Chamberlain To: Christian Brauner Cc: Hugh Dickins , akpm@linux-foundation.org, willy@infradead.org, linux-mm@kvack.org, p.raghav@samsung.com, da.gomez@samsung.com, a.manzanares@samsung.com, dave@stgolabs.net, yosryahmed@google.com, keescook@chromium.org, patches@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] shmem: restrict noswap option to initial user namespace Message-ID: References: <20230420-faxen-advokat-40abb4c1a152@brauner> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230420-faxen-advokat-40abb4c1a152@brauner> Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 20, 2023 at 10:57:43AM +0200, Christian Brauner wrote: > Prevent tmpfs instances mounted in an unprivileged namespaces from > evading accounting of locked memory by using the "noswap" mount option. > > Cc: Luis Chamberlain > Reported-by: Hugh Dickins > Link: https://lore.kernel.org/lkml/79eae9fe-7818-a65c-89c6-138b55d609a@google.com > Signed-off-by: Christian Brauner Reviewed-by: Luis Chamberlain Luis