Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp978006imm; Fri, 5 Oct 2018 15:33:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV63BrS8DDObWPvtbVuwQbyl7U8sBjK7HDT6ZADQXQ6TNFUYQA29alIytPnlM23BySobbQFgj X-Received: by 2002:a63:ee13:: with SMTP id e19-v6mr11468647pgi.8.1538778781531; Fri, 05 Oct 2018 15:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538778781; cv=none; d=google.com; s=arc-20160816; b=ntoTbymGeB7u0NrEejWCUBWG/XShmRaXqhj6BJl1OHCqp2UODdOeJ9N33Z2A4OuwV2 IGTQABipmol7V3DiOKZzzAIWBAqhsbyYTCQHZdW6c0XzG+4OQLC8cIj2A0wvlLbVhCCp FcVgUJSIYQbiWwWXBDxQarELu3h60ZqOCEe3TJsSv/qLbmeq0Bw2b0B66qSm1gOn2ma1 8XwqwXA4W/DGReFg9YHoyMkd1zoM5NEN7yj0CV9ZMbWGUQ5qYEg3jCgJdosoy1lBzH9p 3O3XFQDwSwGMYRheiv0GQdsI/abww1Q0yiTX6MgiqdfqlGOe5xmDMQsQetNuZ5YZSbVk Zbow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=C0Jby9YbZbnuj7BQRoCEdaTdqPoB5cU6OZNrEGdr68Q=; b=KIBDY5AZEQs9bBINmq0bQyBTpEOS7H1CQ3PNKWHT39GbaRGd04jwEGsnpfzh2emNgX EeWtgOig6FawjBbA0Kd0gONWrhAPiNnK+4jbhJkW7UlDWY5Aou5OlxAtfrBhRWYzQJ5Q fWcNttsb9G0gBlx5nbCuD4YUU81VPG4JxPu3BH5SKvNTGIX0WAMtM2WILXA3lMn0veoc WzibSJmDtn9lnu100m9LPboKqmzT6t1J9otki8/w41h/hKBhuuQY2Yddn31YGqqZ/sfs H7mnioAkp8lvjVawXWA7/od736/vlRDn2a5xrOGY0ioUjBb+w4gDivVc20t4FysbbIey VNGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=kXVjOgQn; 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 l12-v6si10418722pls.135.2018.10.05.15.32.16; Fri, 05 Oct 2018 15:33:01 -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; dkim=pass header.i=@joelfernandes.org header.s=google header.b=kXVjOgQn; 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 S1729207AbeJFFc2 (ORCPT + 99 others); Sat, 6 Oct 2018 01:32:28 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:35439 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726399AbeJFFc1 (ORCPT ); Sat, 6 Oct 2018 01:32:27 -0400 Received: by mail-lf1-f68.google.com with SMTP id r191-v6so10406720lff.2 for ; Fri, 05 Oct 2018 15:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=C0Jby9YbZbnuj7BQRoCEdaTdqPoB5cU6OZNrEGdr68Q=; b=kXVjOgQnWoIoY8CEdsx4T2uBsMAnCoZgfSQEJhFReNaPNjy86wNrJJ/BRZNKYW/dcE WtRvIWffejxAPb/GNz2BbvO2CIexukvOMKB53Yc1Dkqwtyypi3A94rsuI0WGaBLsyt1p 95mSVYPp1a/Ytv8eBVWhB2C6+oAIO5QTKwiQE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=C0Jby9YbZbnuj7BQRoCEdaTdqPoB5cU6OZNrEGdr68Q=; b=RfL7vBi02t5nDTWmIpmZ/t9vt1XmlP6VmMsysmwO9zrGMt8fh9wzzVVs8+DMugMhlq zGNF50kDnoYODYdlAawYUoP9dcmQnVx8ZbOIQ4D1RDTW8Yr8xAzIeRVJA6jt0psUySLo 9eH1SBuAFvb1j2ZLOlg3YFCo5Q+WfieOh1j5CrsiqHwS9us5FB3j9PipDMZbXmINsqRV M9HWaeHgBcW0TS2snnSWFfxoCl6UI0ezlbHB4AaUIAXsRSygue6oe7TWTrenHyrZh4IV XKIb4qO+x2ahp/j7KlnCKhbUABiT9nfGB2rGNeewZOhnP76H3Fx1/Fy0/XuW74CEdZpM +yXg== X-Gm-Message-State: ABuFfojnJcur63fVxW1cORJnuuVb/MyoESWfAsVonWrz1iLgM+lMklOe MUApNtJMybDtd5z38dd7f2TCKhyuCB6IJ1YZVyDdDQ== X-Received: by 2002:a19:735d:: with SMTP id o90-v6mr8007351lfc.45.1538778698436; Fri, 05 Oct 2018 15:31:38 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:80d6:0:0:0:0:0 with HTTP; Fri, 5 Oct 2018 15:31:37 -0700 (PDT) In-Reply-To: <20181005222820.GB13613@kroah.com> References: <20181005192727.167933-1-joel@joelfernandes.org> <20181005125339.f6febfd3fcfdc69c6f408c50@linux-foundation.org> <20181005211058.GA193964@joelaf.mtv.corp.google.com> <20181005222820.GB13613@kroah.com> From: Joel Fernandes Date: Fri, 5 Oct 2018 15:31:37 -0700 Message-ID: Subject: Re: [PATCH RFC] mm: Add an fs-write seal to memfd To: Greg KH Cc: Andrew Morton , LKML , kernel-team , John Reck , John Stultz , Todd Kjos , Al Viro , "J. Bruce Fields" , Jeff Layton , Khalid Aziz , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Mike Kravetz Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 5, 2018 at 3:28 PM, Greg KH wrote: > 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. Sure, I will do add to those self-tests. thanks, - Joel