Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1574865pxb; Mon, 8 Mar 2021 00:32:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPXpQmkvOn4xKzskpTAX9NniZhjvpFHuw3ZbOqj1HaE0sryTDkAAKEydoU3RiKNeCrBKEE X-Received: by 2002:a05:6402:888:: with SMTP id e8mr20541312edy.51.1615192374689; Mon, 08 Mar 2021 00:32:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615192374; cv=none; d=google.com; s=arc-20160816; b=CWQLaoV7mauelpz/f3qHl9adz8LSiIdqO72o4mFUkqnoSvzB5C2pkpXT8TWw2zD+tk Ya541XN2V/wKdII1sGpX7ct2UxF6+fACNAKcLnZyun6HmNm18izQvnWa6VF2C1UNSNPG 1NK7d421wOs/31pkW1yYFzBAGmNJzMdIybvhxKIg+RW4qi+WJ+znFvcVRJK5ZJk+0yQl e05WnNIpH7eCuIB6SV8F0YZhWD9fhQCacBMx1r1jrq3scKLHyEM0gzsZpZQ0ablkYG6V KgsRQq815LNP3ZVu72P1YhrQHDB1fHgvFhDZsnckmprhKVJqSHKBjXduD5SCgMi/SRtq t03A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=3SugIkF2Iok8Yeda2Uk1IFyeHt+fncQe/h3fDDzYwWc=; b=sIbVbB9gCYAETgaXLQNj3Y/36wpCcVL/lyQkC33cBBWh5TiVi+gRf5WuCtS0aaO4+L B14mwMorat3/wSn/sY+9xspNIxrYztvwYOX1GiYQkVO04f/z8A8cbtcpB04M5S/pZQEf uqp2B7PYcXW8pPzxdK8HqNqyG4qGDw5KyzCFN2rcp4+hhoMPWZVe63+WlnsfKONFTg17 xpnLZ9qIAdUdP7Mq+PU5UxzAjFR7TVviF4Ky4W/A86Uov9ukRTlQu0wEBspEgKPr8Ddr 5jC5XftMOAJN8kkyhNhcNQ2J066lDZ46CkBB6wo4JKKlk2oZ4sMK2rWt45YcrBBCyizb AelA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qk3si6611283ejb.638.2021.03.08.00.32.32; Mon, 08 Mar 2021 00:32:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233370AbhCHA2e (ORCPT + 99 others); Sun, 7 Mar 2021 19:28:34 -0500 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:34924 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233353AbhCHA2X (ORCPT ); Sun, 7 Mar 2021 19:28:23 -0500 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94 #2 (Red Hat Linux)) id 1lJ3ks-003qhK-6S; Mon, 08 Mar 2021 00:28:14 +0000 Date: Mon, 8 Mar 2021 00:28:14 +0000 From: Al Viro To: Alexander Mikhalitsyn Cc: Ian Kent , Matthew Wilcox , Pavel Tikhomirov , Kirill Tkhai , autofs@vger.kernel.org, linux-kernel@vger.kernel.org, Miklos Szeredi , Christian Brauner , Ross Zwisler , Aleksa Sarai , Eric Biggers , Mattias Nissler , linux-fsdevel@vger.kernel.org, alexander@mihalicyn.com Subject: Re: [RFC PATCH] autofs: find_autofs_mount overmounted parent support Message-ID: References: <20210303152931.771996-1-alexander.mikhalitsyn@virtuozzo.com> <832c1a384dc0b71b2902accf3091ea84381acc10.camel@themaw.net> <20210304131133.0ad93dee12a17f41f4052bcb@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 08, 2021 at 12:12:22AM +0000, Al Viro wrote: > Wait, so you have /proc overmounted, without anything autofs-related on > /proc/sys/fs/binfmt_misc and still want to have the pathname resolved, just > because it would've resolved with that overmount of /proc removed? > > I hope I'm misreading you; in case I'm not, the ABI is extremely > tasteless and until you manage to document the exact semantics you want > for param->path, consider it NAKed. BTW, if that thing would be made to work, what's to stop somebody from doing ...at() syscalls with the resulting fd as a starting point and pathnames starting with ".."? "/foo is overmounted, but we can get to anything under /foo/bar/ in the underlying tree since there's an autofs mount somewhere in /foo/bar/splat/puke/*"? IOW, the real question (aside of "WTF?") is what are you using the resulting descriptor for and what do you need to be able to do with it. Details, please.