From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9B67C433DB for ; Mon, 8 Mar 2021 00:29:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 77C8964F6A for ; Mon, 8 Mar 2021 00:29:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233369AbhCHA2e (ORCPT ); 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-fsdevel@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.