From patchwork Sat Jan 12 20:38:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Fernandes X-Patchwork-Id: 10761077 Return-Path: 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 382801390 for ; Sat, 12 Jan 2019 20:38:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C39228FD4 for ; Sat, 12 Jan 2019 20:38:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0F29429030; Sat, 12 Jan 2019 20:38:34 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8055728FD4 for ; Sat, 12 Jan 2019 20:38:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726572AbfALUic (ORCPT ); Sat, 12 Jan 2019 15:38:32 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:45347 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726561AbfALUic (ORCPT ); Sat, 12 Jan 2019 15:38:32 -0500 Received: by mail-qt1-f196.google.com with SMTP id e5so22587599qtr.12 for ; Sat, 12 Jan 2019 12:38:32 -0800 (PST) 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-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iDfQAm97H4o7dVA5ibXAUXRtADRsDfZK0W4lOHvCcyE=; b=snjNAig6y1bD2vwuFsb+1tE0ohPFOpuv23A1fPcB/bMS91WxqZ4BU/iZ34GIiAuDKs FYivUZ46t17U1hanA4CIJkLTRNbBmyXZTzzFrUSuYwJmyTcrgqhLDk0OHx2NztZ73Y24 4+D0ieLpHGx7nkyM/8FC8RYQYl8QWrEFW3Omrpcq8AnY8ZcbaczLfJRic9wcj91Qtl4z CkW2WPzGrKAHc7OdMmZJFZxcDKDujvFlyoijtyYBY7eD4jbOM2bTYX1LpSIrptg5OqKP EQ6r3zsZa+ioOBHnnHosQAx3dRaXQeAZL4mTI4hShZGx0ArC9hvragIgJt3vwBRcvIy5 FKSQ== X-Gm-Message-State: AJcUukfI0bWL9NMPnFrwHC1djc2x27mHnZKLi5gfV2bEdjud7uMPilO1 iARvMqWEXJn9RqpGCKqheGRu5A== 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 To: linux-kernel@vger.kernel.org Cc: "Joel Fernandes (Google)" , Al Viro , Andrew Morton , Andy Lutomirski , dancol@google.com, Hugh Dickins , Jann Horn , "J. Bruce Fields" , Jeff Layton , John Stultz , 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?= , Matthew Wilcox , Mike Kravetz , minchan@kernel.org, Shuah Khan 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 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Joel Fernandes (Google)" 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