Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp975234imm; Fri, 5 Oct 2018 15:29:31 -0700 (PDT) X-Google-Smtp-Source: ACcGV61WJhdtyNW62TmCRObVC+5kg4E2MIJ+zVR5P34VjgSdLUReCTO0wEPOT9bsZZ7tuz8DfDU0 X-Received: by 2002:a63:7419:: with SMTP id p25-v6mr11890745pgc.395.1538778571282; Fri, 05 Oct 2018 15:29:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538778571; cv=none; d=google.com; s=arc-20160816; b=JrEvDfIozGuMrfbCMMAK1ys0Os/fiTWDZu1osrLlA8my39+EwBvNiOFxiuZvp6tqdO SpaifOEZB5F3E4nNPbPePcY5pOlRL3K0BVdSFJz3p+gz5ljYc99AzFIvSzSaMt1lhFSb YfNkeA5aBgXiWZJJQSCSk9GnSNIHF0FRXxXHxfdO2GnAGwWxXPfpXA4+7ylQQH1Ojq8/ Yez7Q3EnHTfQaZkVTiMy8At0HFHfPjJnKxOYCfx4vt2elC6wepLZJioyLCUc0tNjlcqe 596XvcD1mEFuCqHeKtw/2NsWu+Y9aq/fzswbCXpkOxzcxy4/CFZHjcgRxyLyMpjhiwmz qADg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=wTxBBmtVmdhk2kmUiNCaNrtRyMtqUVBiU6EnFUzKh8U=; b=nXWEukErQ1ip5/BscsCPkFkxuyjA04f9MKTreDFrkfUMuUOyw5TJT3wew37//mkzBG auKtsmONeuHSU/a3ZNbPYKHYWug/GFaxuEXySuWg3iWbFulK2erOBThnaJESIN6p2XfV UnWWuzYpklG6lnkQ16v0z5jkk3mNIGtltB4amkpno8ibnlJWnMcIYiLBk5vWNwobNn8m mEHqplWwMqAcKuoQVW/mizf53Pl/y0/BjgDIvQVZAV99IGYmFDeg7yVdW3QXzbXe4AGw hHmw/5JlHMzkmCF4LonC+OybKqjfEqY7+EP4TmULEskzVtJWTSGzDRdUgLzKgLZ8i0Zi pEDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7-v6si10337984plb.167.2018.10.05.15.29.15; Fri, 05 Oct 2018 15:29:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729136AbeJFF3W (ORCPT + 99 others); Sat, 6 Oct 2018 01:29:22 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:50626 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726577AbeJFF3W (ORCPT ); Sat, 6 Oct 2018 01:29:22 -0400 Received: from localhost (unknown [104.153.224.168]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 779CA116D; Fri, 5 Oct 2018 22:28:34 +0000 (UTC) Date: Fri, 5 Oct 2018 15:28:20 -0700 From: Greg KH To: Joel Fernandes Cc: Andrew Morton , linux-kernel@vger.kernel.org, kernel-team@android.com, jreck@google.com, john.stultz@linaro.org, tkjos@google.com, Al Viro , "J. Bruce Fields" , Jeff Layton , Khalid Aziz , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Mike Kravetz Subject: Re: [PATCH RFC] mm: Add an fs-write seal to memfd Message-ID: <20181005222820.GB13613@kroah.com> References: <20181005192727.167933-1-joel@joelfernandes.org> <20181005125339.f6febfd3fcfdc69c6f408c50@linux-foundation.org> <20181005211058.GA193964@joelaf.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181005211058.GA193964@joelaf.mtv.corp.google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 05, 2018 at 02:10:58PM -0700, Joel Fernandes wrote: > On Fri, Oct 05, 2018 at 12:53:39PM -0700, Andrew Morton wrote: > > On Fri, 5 Oct 2018 12:27:27 -0700 "Joel Fernandes (Google)" wrote: > > > > > To support the usecase, this patch adds a new F_SEAL_FS_WRITE seal which > > > prevents any future mmap and write syscalls from succeeding while > > > keeping the existing mmap active. The following program shows the seal > > > working in action: > > > > Please be prepared to create a manpage patch for this one. > > Sure, I will do that. thanks, And a test case to the in-kernel memfd tests would be appreciated. thanks, greg k-h