Message ID | 20190112203816.85534-1-joel@joelfernandes.org (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4E5F71390 for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 12 Jan 2019 20:38:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 41BFD28FD4 for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 12 Jan 2019 20:38:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3537C29030; Sat, 12 Jan 2019 20:38:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF35528FD4 for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 12 Jan 2019 20:38:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A86C48E0003; Sat, 12 Jan 2019 15:38:33 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A37638E0002; Sat, 12 Jan 2019 15:38:33 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9262C8E0003; Sat, 12 Jan 2019 15:38:33 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by kanga.kvack.org (Postfix) with ESMTP id 67F398E0002 for <linux-mm@kvack.org>; Sat, 12 Jan 2019 15:38:33 -0500 (EST) Received: by mail-qt1-f199.google.com with SMTP id z6so20373987qtj.21 for <linux-mm@kvack.org>; Sat, 12 Jan 2019 12:38:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:mime-version:content-transfer-encoding; bh=iDfQAm97H4o7dVA5ibXAUXRtADRsDfZK0W4lOHvCcyE=; b=DCYUXZy2phWrX81uOZKGg9zvixxVpIhNw+BrnvoTZMs35xKFVrUoignpDDKva5b0L6 qsnDmQeAEhtP1WWkvM3TBBiD/pYpMx0HD5/zkwHiLhQiSs7gYNtJ1mzPl5e9RD8l+Dq1 wmouGWijzYovirnA0ourgyg7m92WxelofFHewIu9jn9C4h0yVg9gRRlFs28iMCcxU3FQ /xSeDMkJHtFm8/lTyMrbvjYwgkietAmlijBjxu6N06fUDkS+kJEm0h12FwT791cLR7Kk 1CQVDfXFG14Ih7pC99PIV0TKTVjzJGiW1F1alpEVj0Z1iT2Bbepk7H3q+Bza9IBw/1/n QUjg== X-Gm-Message-State: AJcUukebhitKFDsUXF1K+6GRG9xTORJ378nD2nQCcCRBYhxMZJfD0ho9 U7bF/JccAHa5trZn6RkUYSJ4IYaoMJPOoV5qToA5I09dU9qCDVFJ+OPFZ1ovg2LxlkMJ0PNEUMV bvl2HhRcIttaz1FR1gOTQAk0fl8YAwtTBhUwN/1nXEAljG1ZB8iDoQEhEYJbtIBQHbSEkt+5jLM wzMBTFodgQ7uLhsp/MCPa5nPDo9UtQM/R0/31/5ekynDMiwQjtkym4Wj8GZkM8Gw1MEwsHAk+k7 q0XzxGTVX8sdmRNJpzYGoQYws01TUb9arj95F6qQVSB3R7U5Uvn1mkO2oYa89ZGeW4rZ0t5SF4G hdAvBXVjI1RpuMrhDH9nvOMOepWZNsBvNuMTJ9Ftllzw5p9J8j/ihA+I3mWjbC4zaySzupV0036 r X-Received: by 2002:a05:620a:149c:: with SMTP id w28mr16516001qkj.321.1547325513069; Sat, 12 Jan 2019 12:38:33 -0800 (PST) X-Received: by 2002:a05:620a:149c:: with SMTP id w28mr16515984qkj.321.1547325512448; Sat, 12 Jan 2019 12:38:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547325512; cv=none; d=google.com; s=arc-20160816; b=t0+V9JLLKJlfxVtJ/D5Kw8VSu16o2LC3fLDUihRrqPK+exTwMmqx+tUKwljQ8ycz7o tKfbYk/R6/1usjzWESQquUbZOBuPww9t174E1KrkWJC1wSycDwrXVVcgYEIFXaqmIk/d qo8Y9ECroCe5CS4Pp+mc5bTlxDIugnVCiEBJWD3GgCNXfE2UFGUe9AXp5pj+WLXYIbuy uocioUwSUGzsv0LAV3fKKbjVNMiO7M7WsxRPInaUHzX4nQI7c88vITdENtkDn3dnYTi+ u9q3407BIZc5p2P/95/qM0+H5TAoq7pLQXvVUwQKr+zGS/1PDHZ9rgdVsJWUVJSk4wSX EJgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=iDfQAm97H4o7dVA5ibXAUXRtADRsDfZK0W4lOHvCcyE=; b=S8v1InQ0qGrlkaHtD8Hq+0TcJ95ioNjk2bOUARcPLcRGReljjCzgTObNS15HaPXbZw T8obONCmo7qWl2gRYaf5N3FVxqdAzm4MEA7EWXgzUCI/0NS2cvAl872l8e2VkjJ0UndF Koo2uZgGi8FPufE8FE2rJ0lQZCOkQIkCFcZxaYIGawsIxcxQRREn8Rn+47lYwwDtgLF7 BmFA6XM/uKWwll15slStzE+6kIpirjqEjrxKDcSi6T0a04PvwzympmUnMjrGx2q6p+37 WT3ufeyiWZyncmam9HfLe8qL+XLXlqN25le2L7GCCKXmhd9fKSlzZhika8VxNarLM/J8 5zhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=E8mhyDNE; spf=pass (google.com: domain of joel@joelfernandes.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=joel@joelfernandes.org Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id v19sor79019101qth.12.2019.01.12.12.38.32 for <linux-mm@kvack.org> (Google Transport Security); Sat, 12 Jan 2019 12:38:32 -0800 (PST) Received-SPF: pass (google.com: domain of joel@joelfernandes.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=E8mhyDNE; spf=pass (google.com: domain of joel@joelfernandes.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=joel@joelfernandes.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iDfQAm97H4o7dVA5ibXAUXRtADRsDfZK0W4lOHvCcyE=; b=E8mhyDNEc/DZK512mhs6N+jydr1x5ATsXKDHMHrN1k0N6w+JULc8c09ZB/9D8DG6H0 /Kmxsnf3ed5QaJnpY4Naw6hSllSj9hACDJTKOVQFNhdZELtZ5ZsMgEVaBFD4c+KvS3S9 Kmo/0G02HbyHxLnG/CGRM/iB3XUP5IHyN1GOA= X-Google-Smtp-Source: ALg8bN4E7rn9pHV+7ZlfIT/KIoyJGYP8hJ85YnG6ffaAiQtLgKGsihB8TYFh6+nRMYpYS3uJtEbPqg== X-Received: by 2002:ac8:6151:: with SMTP id d17mr18325188qtm.194.1547325511908; Sat, 12 Jan 2019 12:38:31 -0800 (PST) Received: from joelaf.cam.corp.google.com ([2620:0:1004:1100:cfd0:d2ee:d54d:ab6d]) by smtp.gmail.com with ESMTPSA id c12sm55883402qka.42.2019.01.12.12.38.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 12 Jan 2019 12:38:30 -0800 (PST) From: Joel Fernandes <joel@joelfernandes.org> To: linux-kernel@vger.kernel.org Cc: "Joel Fernandes (Google)" <joel@joelfernandes.org>, Al Viro <viro@zeniv.linux.org.uk>, Andrew Morton <akpm@linux-foundation.org>, Andy Lutomirski <luto@kernel.org>, dancol@google.com, Hugh Dickins <hughd@google.com>, Jann Horn <jannh@google.com>, "J. Bruce Fields" <bfields@fieldses.org>, Jeff Layton <jlayton@kernel.org>, John Stultz <john.stultz@linaro.org>, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>, Matthew Wilcox <willy@infradead.org>, Mike Kravetz <mike.kravetz@oracle.com>, minchan@kernel.org, Shuah Khan <shuah@kernel.org> Subject: [PATCH v4 0/2] Add a future write seal to memfd Date: Sat, 12 Jan 2019 15:38:14 -0500 Message-Id: <20190112203816.85534-1-joel@joelfernandes.org> X-Mailer: git-send-email 2.20.1.97.g81188d93c3-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Add a future write seal to memfd
|
expand
|
From: "Joel Fernandes (Google)" <joel@joelfernandes.org> This is just a resend of the previous series at https://lore.kernel.org/patchwork/patch/1014892/ with a small if block refactor as Andy suggested: https://lore.kernel.org/patchwork/comment/1198679/ All, Could you please provide your Reviewed-by / Acked-by tags? I will also resend the manpage changes shortly. Joel Fernandes (Google) (2): mm/memfd: Add an F_SEAL_FUTURE_WRITE seal to memfd selftests/memfd: Add tests for F_SEAL_FUTURE_WRITE seal fs/hugetlbfs/inode.c | 2 +- include/uapi/linux/fcntl.h | 1 + mm/memfd.c | 3 +- mm/shmem.c | 25 +++++++- tools/testing/selftests/memfd/memfd_test.c | 74 ++++++++++++++++++++++ 5 files changed, 100 insertions(+), 5 deletions(-) -- 2.20.1.97.g81188d93c3-goog