Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1213438imu; Tue, 20 Nov 2018 13:38:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/U8RHU+M8ajcvl9/GOxfiUOz1b6sxRQtpGJF6G0Rpn4LF6b5/Av9+AP0c/NceYwff4ujqB8 X-Received: by 2002:a63:6cc8:: with SMTP id h191mr3340384pgc.366.1542749907657; Tue, 20 Nov 2018 13:38:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542749907; cv=none; d=google.com; s=arc-20160816; b=RQBd0PkkfAACg5Ms9ZOMsLO7IgayJFc5QWN/6sztCqrawsfe5qU0arBSEU/rpxqp1w J4WHs5j0b43RTj56PH3QW8OqoQAe2/NCx0vK0JbYk3vlyF/KRwnunmPyTz+gXqq99MYD VU7l4LsQuuvDJXJWHiHGDuaicfP2EAmx3ZR8YAqsNWmGBxWv1ruOIe4skwHou7R7vpum F28/wmk+E851txar+L7qvEAn/O6ZgtoKkdnvNTO11XTVFUHC7Mee5A/6PUnMNcgUTo2r 8bkCKBgDKYDLtpg9GtaWS5MTmy9JnlNYpjpRCZxk2jf+USia3wInoMtmhgeeWhr426zd 0OtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=vp6Z0D7r3DXpm/Nwbk3fBmqUeJLYAO2UFvzCZCOObKo=; b=v5itv14MzJuUkZl9/UMFFrHgEfnXuqI3e6RSh1yB3DGjVrTjD1DtTqX+GpTcHOaaCr XSZph8K/oAJc8xzrhxgSDyGkGMYvUHa/nMZWAAAZN5UYuuFWam4krbWiTCy32FhYyJWR 2cxyyhYl+eYJjXS96gBvnqEUS1xbs8Qed7Hy4bFSp5I0l6sL/tQ1xO5s2kAuy5LmSQAe JGxOk/GGxtxHrZIlJ6KIjsRFTKLTRSt9bgaqmW+P3RY7jI3DGwMxdEWLw714lOQnMBzk /4bZUehX9yKL+U03KMMVmE6FdrGy0qDa1tBK2PHRJfvJ8fyoYip10c0RNMIxTGsjf2Z7 mTaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=JHI9YU5G; 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 q70si11259038pgq.526.2018.11.20.13.38.13; Tue, 20 Nov 2018 13:38:27 -0800 (PST) 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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=JHI9YU5G; 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 S1727592AbeKUHd5 (ORCPT + 99 others); Wed, 21 Nov 2018 02:33:57 -0500 Received: from mail-it1-f195.google.com ([209.85.166.195]:52933 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbeKUHd5 (ORCPT ); Wed, 21 Nov 2018 02:33:57 -0500 Received: by mail-it1-f195.google.com with SMTP id i7so5583310iti.2 for ; Tue, 20 Nov 2018 13:02:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=vp6Z0D7r3DXpm/Nwbk3fBmqUeJLYAO2UFvzCZCOObKo=; b=JHI9YU5GhvfPIbVXI4VjY7u7qUvIMeg1MEu42P/NTDvupazXF+I5UWhyTsknuUsGVj ACqbnPGDnjAqdzonrrUgu7yEOx8uFUEPwjWSwG3DlMaMXbgqrRPKrK8dA1nfIlaWUuxo NZcfiBYjrX6gwEkquLyyzzUVfbh77AhiWIcsCSUMto156HERmZZ4Q1IMS7lQgMx3/Lbj XawDJpkdPeEu0rAH+eJPZMSLu6E6J/JCIt4vzfqPHW18TD4yAsvWHG2Lna+YSgPxgCfL ZV5UQjXlMqDDczlXPTP+9J60tcQtXHPi2aQrI/mUkFYvRxWKFq8jUkiD9WK2R/6rU4BL GRxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=vp6Z0D7r3DXpm/Nwbk3fBmqUeJLYAO2UFvzCZCOObKo=; b=fx5MAEl0w/QKrmfw/+A8EwIjEueBxa24trKzMdNRfudCLHvruL1ZgYnh/LJmBCW/7G wgTKIHfglZNsSeEb5ELjZ81tPIlynR1rIEfx+KaoEgNDjtnJmsPlRNWnjKqq2k/0C0TE CBGLKxgKzFBr/+pC3h07Uz90b7rVlSQ1jIRgXHQWNTvZjx4gGVR5KWRDJNzHTUMspHMs 84iHVnC9GGBkdgbMEKbAjclql+87chibs4A/bbrmowqHXQV5J8iqX6cZo322lVDqQ8DD cobCrws16uy4AZ1BsVFwl+15y/bcTcIz2nCRWDgUyxbtbM3AoufOusk1P6xM5vyCR1Jw TzGQ== X-Gm-Message-State: AGRZ1gJ1LvFQ+moSaXxdTzyYi13wg2TXxlA1dQ8VmW/kIUdD86PJbjRg doxSq2cNsZxVdOvjzSk9FlgJsA== X-Received: by 2002:a24:c187:: with SMTP id e129mr3975357itg.68.1542747771629; Tue, 20 Nov 2018 13:02:51 -0800 (PST) Received: from ?IPv6:2600:100e:b040:b126:ec78:48dd:44e2:e165? ([2600:100e:b040:b126:ec78:48dd:44e2:e165]) by smtp.gmail.com with ESMTPSA id p10-v6sm14075913ioh.20.2018.11.20.13.02.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 13:02:50 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: [PATCH -next 1/2] mm/memfd: make F_SEAL_FUTURE_WRITE seal more robust From: Andy Lutomirski X-Mailer: iPhone Mail (16A404) In-Reply-To: <20181120204710.GB22801@google.com> Date: Tue, 20 Nov 2018 14:02:49 -0700 Cc: Stephen Rothwell , Andy Lutomirski , LKML , Andrew Morton , Hugh Dickins , Jann Horn , Khalid Aziz , Linux API , "open list:KERNEL SELFTEST FRAMEWORK" , Linux-MM , marcandre.lureau@redhat.com, Matthew Wilcox , Mike Kravetz , Shuah Khan Content-Transfer-Encoding: quoted-printable Message-Id: References: <20181120052137.74317-1-joel@joelfernandes.org> <20181120183926.GA124387@google.com> <20181121070658.011d576d@canb.auug.org.au> <469B80CB-D982-4802-A81D-95AC493D7E87@amacapital.net> <20181120204710.GB22801@google.com> To: Joel Fernandes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Nov 20, 2018, at 1:47 PM, Joel Fernandes wrote= : >=20 >> On Tue, Nov 20, 2018 at 01:33:18PM -0700, Andy Lutomirski wrote: >>=20 >>> On Nov 20, 2018, at 1:07 PM, Stephen Rothwell wro= te: >>>=20 >>> Hi Joel, >>>=20 >>>>> On Tue, 20 Nov 2018 10:39:26 -0800 Joel Fernandes wrote: >>>>>=20 >>>>> On Tue, Nov 20, 2018 at 07:13:17AM -0800, Andy Lutomirski wrote: >>>>> On Mon, Nov 19, 2018 at 9:21 PM Joel Fernandes (Google) >>>>> wrote: =20 >>>>>>=20 >>>>>> A better way to do F_SEAL_FUTURE_WRITE seal was discussed [1] last we= ek >>>>>> where we don't need to modify core VFS structures to get the same >>>>>> behavior of the seal. This solves several side-effects pointed out by= >>>>>> Andy [2]. >>>>>>=20 >>>>>> [1] https://lore.kernel.org/lkml/20181111173650.GA256781@google.com/ >>>>>> [2] https://lore.kernel.org/lkml/69CE06CC-E47C-4992-848A-66EB23EE6C74= @amacapital.net/ >>>>>>=20 >>>>>> Suggested-by: Andy Lutomirski >>>>>> Fixes: 5e653c2923fd ("mm: Add an F_SEAL_FUTURE_WRITE seal to memfd") = =20 >>>>>=20 >>>>> What tree is that commit in? Can we not just fold this in? =20 >>>>=20 >>>> It is in linux-next. Could we keep both commits so we have the history?= >>>=20 >>> Well, its in Andrew's mmotm, so its up to him. >>>=20 >>>=20 >>=20 >> Unless mmotm is more magical than I think, the commit hash in your fixed >> tag is already nonsense. mmotm gets rebased all the time, and is only >> barely a git tree. >=20 > I wouldn't go so far to call it nonsense. It was a working patch, it just d= id > things differently. Your help with improving the patch is much appreciated= . I=E2=80=99m not saying the patch is nonsense =E2=80=94 I=E2=80=99m saying th= e *hash* may be nonsense. akpm uses a bunch of .patch files and all kinds of= crazy scripts, and the mmotm.git tree is not stable at all. >=20 > I am Ok with whatever Andrew wants to do, if it is better to squash it wit= h > the original, then I can do that and send another patch. >=20 >=20 =46rom experience, Andrew will food in fixups on request :)=