Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1164462imu; Tue, 20 Nov 2018 12:48:07 -0800 (PST) X-Google-Smtp-Source: AJdET5fwJy9ives0blgMO+lbYAOsleHq+58d/4PXbLlF5jliqHvpbCSGMMD3QPcQi1kkXXmkuTpK X-Received: by 2002:a62:cf02:: with SMTP id b2mr3879707pfg.183.1542746887493; Tue, 20 Nov 2018 12:48:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542746887; cv=none; d=google.com; s=arc-20160816; b=RQVnbsM8NHT4atdGNYGZ1J2oXEDrQ1elC+nY1SEm8IoUV9rZoZOFohF66pv7xX1332 j7hll6fxzoalITXCcw0Nt0JZSlzyWrP2qm/pf0VZ3Dl49uE6KMmnPKJ28ndCR0mxig2x 1x7qHAQto6zj9z5+1ihigBZuDWu+LxAk+cY5jBHmg5pKyKgzdugn/yMAAbxHouNpKevH /ZqhDNK9pbBoRpiyPeQlmML5outZIcmhG9E54T/FSZnwd48BODZLR3CkYDgsoZc7TOM3 BtXhnzBdp2gZaUQ88/6Dzk9a4ih+Vaiaxg8zec0ObIOl7iSJZXEZub0S+p+qgcpGkV5M ptfQ== 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:dkim-signature; bh=t0XJn4BkWlFoPkgggIK5gqWzE8c0ylZ8sdGW0a2MCuc=; b=mGztLluY8l/5Y4qd1lzFPiYRSmJgnLl6gF+exI7JIeh6GwoTPb04nbJnG8nfXOdRmM mRro4zlM7xE9/O/mMqxl9NLx8WNMvWcx57/ssiaX2iF2GwvHiHVC7APhN0ASYvi0CN+G KOjlautI7Nr4RpHX7NJ972GDiytXZ+njELBu4j4n4WbfkebYity5gcS3nDj6GX4F/vHI wlHc2luKjxpQ/H2bDnyHsMYkpT5hrpITd+KB28m4Dxb7OgcLJzhiCcthv77HetgNEFwT vxAFQ1lsfPhmeXfGYEd7DNWra+tLnqQRj+i/F2qbUBhHNFiNYsDNjTwoaa4bCwomIzHC 9VKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=HUvEt6l7; 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 o12-v6si36066994plg.114.2018.11.20.12.47.51; Tue, 20 Nov 2018 12:48:07 -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=@joelfernandes.org header.s=google header.b=HUvEt6l7; 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 S1726699AbeKUHSO (ORCPT + 99 others); Wed, 21 Nov 2018 02:18:14 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39506 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbeKUHSO (ORCPT ); Wed, 21 Nov 2018 02:18:14 -0500 Received: by mail-pl1-f195.google.com with SMTP id b5-v6so2015220pla.6 for ; Tue, 20 Nov 2018 12:47:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=t0XJn4BkWlFoPkgggIK5gqWzE8c0ylZ8sdGW0a2MCuc=; b=HUvEt6l7Wycvm0rNnZTJ0fXxAkgWRDkahlrOP6l3V2uwGbM5AYXJ+vO0JKUOG3Iin2 9efyqrsXtZ80aQ67TlIKKxpB9YVm89YsFrC9oGkNrfrcMHnVKYauGyhJd7ZxTnXjMTEc enXqlm3Mn61oVInEaGV/+VtV520IJsD3TU3Sg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=t0XJn4BkWlFoPkgggIK5gqWzE8c0ylZ8sdGW0a2MCuc=; b=s4wZBj7vnZY4xGrCDoRMn9cOOEdEAWAawqYtZa3XvLCzQxEwimKG10sbkL9N0ESHW8 AGctqMt7oCPQfq0gHSQoRu0sXyM8/RBLH7AnktnDA0cr76cn0nkyn1l065KwxobHT4pM NwvVfZNXolc2iH7Y83LLPbXSzyJhK0/DuNlf36LDxVkYwPRb+ItRESHBV6Ff22Ez9u/n xerL08yXu4G3zKZCySoxNExlyniNzH1Rh7aoD48mGS+/87ElT9MftV+sTK7cRg8FzfsL c13GnpQdMXmEvkyH8QFb25wwArkabytfxF70eNaT1CiPHwhz/2epiB0mC/Y0bR2HTigf Lupg== X-Gm-Message-State: AGRZ1gInWhyKYD3GIIvbZ+eYbmqhQpgbzaAYeXdnb1s/yHv3IJASt1nJ EiSoHF3GMKkw39RiU8ksJCbO3Q== X-Received: by 2002:a62:dec3:: with SMTP id h186mr3897625pfg.158.1542746832170; Tue, 20 Nov 2018 12:47:12 -0800 (PST) Received: from localhost ([2620:0:1000:1601:3aef:314f:b9ea:889f]) by smtp.gmail.com with ESMTPSA id f64sm94576467pfh.0.2018.11.20.12.47.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Nov 2018 12:47:11 -0800 (PST) Date: Tue, 20 Nov 2018 12:47:10 -0800 From: Joel Fernandes To: Andy Lutomirski 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 Subject: Re: [PATCH -next 1/2] mm/memfd: make F_SEAL_FUTURE_WRITE seal more robust Message-ID: <20181120204710.GB22801@google.com> References: <20181120052137.74317-1-joel@joelfernandes.org> <20181120183926.GA124387@google.com> <20181121070658.011d576d@canb.auug.org.au> <469B80CB-D982-4802-A81D-95AC493D7E87@amacapital.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <469B80CB-D982-4802-A81D-95AC493D7E87@amacapital.net> 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 Tue, Nov 20, 2018 at 01:33:18PM -0700, Andy Lutomirski wrote: > > > On Nov 20, 2018, at 1:07 PM, Stephen Rothwell wrote: > > > > Hi Joel, > > > >> On Tue, 20 Nov 2018 10:39:26 -0800 Joel Fernandes wrote: > >> > >>> 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: > >>>> > >>>> A better way to do F_SEAL_FUTURE_WRITE seal was discussed [1] last week > >>>> 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]. > >>>> > >>>> [1] https://lore.kernel.org/lkml/20181111173650.GA256781@google.com/ > >>>> [2] https://lore.kernel.org/lkml/69CE06CC-E47C-4992-848A-66EB23EE6C74@amacapital.net/ > >>>> > >>>> Suggested-by: Andy Lutomirski > >>>> Fixes: 5e653c2923fd ("mm: Add an F_SEAL_FUTURE_WRITE seal to memfd") > >>> > >>> What tree is that commit in? Can we not just fold this in? > >> > >> It is in linux-next. Could we keep both commits so we have the history? > > > > Well, its in Andrew's mmotm, so its up to him. > > > > > > 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. I wouldn't go so far to call it nonsense. It was a working patch, it just did things differently. Your help with improving the patch is much appreciated. I am Ok with whatever Andrew wants to do, if it is better to squash it with the original, then I can do that and send another patch. - Joel