Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp408439imm; Wed, 13 Jun 2018 02:22:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKY1560TT4jAJF7AizqjBGqzPSrTYuUwU8VK7pNhev8wumtSs4K6N/83zC7WeKOM4Ltb2RA X-Received: by 2002:aa7:8589:: with SMTP id w9-v6mr4122841pfn.119.1528881740935; Wed, 13 Jun 2018 02:22:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528881740; cv=none; d=google.com; s=arc-20160816; b=q8doysYCxLIKVg0XHGuzH6bgW7weg1vOx2NWrw//6MpbUz6q2bVOvaBRqPfTYigJhn e7AkmcYUCNXMDFQhXkPPKyvobV9e6BYDDuZ7dNMnaPlCj+UFOSeMYiKkoNCTHHPHGgE0 3yq8qHl07QiPdhCHWo+7ABBGHTqQsr588BfhSKJZOCxOau3V6ETQPz3gY7fWZzlemDHE LTOuOzaRuqs5KhwvymKEYJ4L+aZjwLs1FeLrrP/CE8BRFZFWZHDQYexdFEhav5qHZ7db 0FAaOs8wN+VxdJ44P5PBTZ5TYCM0ZGM589hAI0WJv207s1MKgkTcDFj869S0veZxeojH FS1A== 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 :arc-authentication-results; bh=9CN2g1jd/+sD/yB1G7/vdyAMX/msJKlWeMJq3zF/z44=; b=IxBb5wdfKIRUgv6dbzbEVvx+5/0RFTDX74/RXvHmV6Gs/miemFiZGc7Mm3R/Y5G6dG WWvqbINwr8vRyE6abEkgSzmlau3n6gVKwaDEK7KiYD9inKP01kGjwyy11P/2odVVBGH8 9/4hEJpUiIcUBBfuoxsfsAGE5ZMeerCdP3SLc3tHwp9JZ3xGpWU9ri0dPFKv+OhY/lRl +D1lF9D1/ya2cdo3Vni8pPDtHsv0ErZq9s5BZCCc/flO63DIMrw7LQ0S21lNnrUa/P4E 04VGW6wYkwCqGzKzTH57QE+hsa5C0u9FxyN7A9efEgQe5y+YOgiMVE28sbPLBmYOUNCl FnCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=NXRMswSB; 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 w13-v6si2352567plp.51.2018.06.13.02.22.06; Wed, 13 Jun 2018 02:22:20 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=NXRMswSB; 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 S1754543AbeFMJVd (ORCPT + 99 others); Wed, 13 Jun 2018 05:21:33 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:38356 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754479AbeFMJVb (ORCPT ); Wed, 13 Jun 2018 05:21:31 -0400 Received: by mail-ot0-f196.google.com with SMTP id p95-v6so2172009ota.5 for ; Wed, 13 Jun 2018 02:21:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9CN2g1jd/+sD/yB1G7/vdyAMX/msJKlWeMJq3zF/z44=; b=NXRMswSBTNBSYfbI1yWwOFrxbDsygs60xxOXKQgZ7ZNuMwmZCumOnykLOQHLYcT2PH QPqKAMaaUrSp0VHjQSdvpZ1GgU42XsBRrbKNuNVXIn2s/TE4ET9EpNU8PKO9pWZEJnSq zyWrxCV5KkyPmchpKGxov6JGRcIi+teybM3gU= 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=9CN2g1jd/+sD/yB1G7/vdyAMX/msJKlWeMJq3zF/z44=; b=ZRwp4Rjtls1TyIc6HTcA7PDl7mwl5hS8Zk1ubpyQ8ZuYaE0Pw2qF0ETHquZCDlx1m9 Tc4AHTINUVIkgJFW8oTxsriFKh+Lc7FwLrvCklbjTvrSB9WEJYu3i2WCI65k9l8MkCMF kY4tzeCld8ddPgQXn4bEfReO8yCSVn1p+/3zkfju4Pwn5gyzkjm///QwIM5X//PpxEjb a5z+K6sQ9Aqmpzwm8OKRltt6bjdCAq6hTVo9YEF7Q0rF7p3l+qvh4td+EHzver83b9HB wodD3lElExsXHUSeHAd5Ohw0DA/JcRRPqIml6hgXPYQUjqd5jIh7qxMEtgOSs9RIcACK +a+w== X-Gm-Message-State: APt69E2t5QO8yDwzUgSXlr80iFyWiXFh8UjdJ3nr+hnZ0o/qUUZ3HBZL qI9POk2eBARXqIN/abL7O228afgxyoJ8OJAq2i5WoA== X-Received: by 2002:a9d:1531:: with SMTP id u46-v6mr2801813otf.197.1528881690831; Wed, 13 Jun 2018 02:21:30 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1123:0:0:0:0:0 with HTTP; Wed, 13 Jun 2018 02:21:30 -0700 (PDT) X-Originating-IP: [176.63.54.97] In-Reply-To: <20180612183123.GB30522@ZenIV.linux.org.uk> References: <20180529144339.16538-1-mszeredi@redhat.com> <20180529144339.16538-15-mszeredi@redhat.com> <20180610041243.GJ30522@ZenIV.linux.org.uk> <20180612022926.GY30522@ZenIV.linux.org.uk> <20180612024029.GZ30522@ZenIV.linux.org.uk> <20180612182423.GA30522@ZenIV.linux.org.uk> <20180612183123.GB30522@ZenIV.linux.org.uk> From: Miklos Szeredi Date: Wed, 13 Jun 2018 11:21:30 +0200 Message-ID: Subject: Re: [PATCH 14/39] ovl: stack file ops To: Al Viro Cc: Miklos Szeredi , overlayfs , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Torvalds 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 Tue, Jun 12, 2018 at 8:31 PM, Al Viro wrote: > On Tue, Jun 12, 2018 at 07:24:23PM +0100, Al Viro wrote: >> I hate it, but... consider path_open() objections withdrawn for now. Is that an ACK for the pull if I follow up with fixes for mmap botch, etc? >> Uses of ->vm_file (and rules for those) are too convoluted to untangle >> at the moment. I still would love to get that straightened out, but >> it's not this cycle fodder, more's the pity... Looked at some other options... What coda mmap does looks very dubious. It only sets f_mapping, not vm_file. That's going to get into all sorts of trouble when underlying fs tries to look at file_inode() or worse, ->private_data. Looks like that should be converted to what overlayfs does, to have a remote chance of actually not crashing on most filesystems. Does anybody actually use coda still? > PS: conversion of ->f_path.dentry is easy and that can probably go this > cycle - it's a fairly trivial change, with no functional changes unless > overlayfs is used with , fixing really bad shit if it ever > gets used thus. I'm not asking to put that into overlayfs pull *and* > it's independent from the "want to kill that fucking kludge" stuff. > The latter is too hard for this cycle, unfortunately. So this is about adding a file_dentry_check() (or whatever we want to call it) helper to be used by all filesystems when dereferecing f_path.dentry, right? Thanks, Miklos