Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2654318imm; Sat, 9 Jun 2018 22:00:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKID1DVJA/fOWhqMNettDB3adqrjr6zZwUp7dVMia+e9RkmWis14+m4dUeSkYtayI0uSVfUG X-Received: by 2002:a63:6e44:: with SMTP id j65-v6mr10778219pgc.14.1528606856078; Sat, 09 Jun 2018 22:00:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528606856; cv=none; d=google.com; s=arc-20160816; b=tB5yzavUTTsP2o8jcrkV3oNiYFzvGOryBfqLdvySMYnqGysO0XCZxTfBdO77Fop4Pi iwB64Kxzl80J4J3xxJlB/Xxyo99iXbHO8fo9pa9gh3NM3StUf79KfsNauu/JBv5CbPVq YKe4ckrHcuZmFIy9BxgENdZ1knSB5MspdoHFYvX5eqI6LiBGBSGFLnOt9Cx2wP6VwOUW lNU9q1Rr7uIAgJ7BR4ud2Pdegwtbf3v1qoPyUQUkG75L5DUiwSDdsPyJlcQPiqV5+Le1 pA+yzpw4Umh7wDJNa40xmOLfrBr+Dh0ODbJJmtNaHNQN/+z4eIw/Gi6GxosxghjGbzdh Qlcw== 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:arc-authentication-results; bh=ANFXY0dHDwKjK4gjNKItBqX7AYxpWBLVCgdDj5wi5kc=; b=nN6P7XRc1rGbZKKimK1rS7YWQM2IkfflluXFI0vLIOsNJNdBHYOIELelcMrJtABOw5 7/sXiNO6vDFCCgwrP2I0OeW7vsiIlyqete0LgD5A8iBZvOg1rjdlgA+DMU6VD4k5JoVa gTAmSyO1xkH/stp/JyOlF1JAcRAfwp1U3nwFBUKng/Knfet0X0V96WCIxFYp3Cy/aBlr 4HxHy+xPoHVMtZlgx4oxaaIyKIukTcutFC4uLWVyYRgRVL9LI3qBUqSHvom/atLggN5A 5IP4L1PQvCjdlvFHphtyB5FI9qOrfBsUw9JZhIbFMLvVivkM/AVCLsar/ST2+26MWPDi pq9Q== ARC-Authentication-Results: i=1; mx.google.com; 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 b7-v6si17237294pgs.135.2018.06.09.22.00.29; Sat, 09 Jun 2018 22:00:56 -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; 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 S1753662AbeFJE6E (ORCPT + 99 others); Sun, 10 Jun 2018 00:58:04 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:53784 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753459AbeFJE6C (ORCPT ); Sun, 10 Jun 2018 00:58:02 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1fRsPY-0002ql-IZ; Sun, 10 Jun 2018 04:57:17 +0000 Date: Sun, 10 Jun 2018 05:57:04 +0100 From: Al Viro To: Christoph Hellwig Cc: Miklos Szeredi , linux-unionfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 07/39] vfs: export vfs_ioctl() to modules Message-ID: <20180610045657.GM30522@ZenIV.linux.org.uk> References: <20180529144339.16538-1-mszeredi@redhat.com> <20180529144339.16538-8-mszeredi@redhat.com> <20180604084904.GF11333@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180604084904.GF11333@infradead.org> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 04, 2018 at 01:49:04AM -0700, Christoph Hellwig wrote: > On Tue, May 29, 2018 at 04:43:07PM +0200, Miklos Szeredi wrote: > > This is needed by the stacked ioctl implementation in overlayfs. > > EXPORT_SYMBOL_GPL for exporting random internals, please. Same > for any following patches. *blink* Christoph, get real and RTFS - vfs_ioctl() simply calls ->unlocked_ioctl(); all there is to it. This isn't even a case of "using that function establishes that the caller is a derived work" - *anyone* who can see definition of file_operations can bloody well open-code it. There isn't anything establishing derivation here. Hell, it could've been a static inline in include/linux/fs.h and it would neither differ from many other inlines in there nor need an export at all. This is really getting close to lxo-worthy levels of bogosity... More interesting question is why do we want to pass those ioctls to layers in the first place, especially if it's something with different availability (or, worse yet, argument layouts) before and after copyup.