Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp197669yba; Wed, 17 Apr 2019 22:58:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+2s7SQRSAqvFrX2y+3GEWeSNUrgQyTxEaUxDbxr07LGIxzuOp1JyuRXlZtRmGnUV0u3D2 X-Received: by 2002:a63:1d45:: with SMTP id d5mr65082932pgm.184.1555567106980; Wed, 17 Apr 2019 22:58:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555567106; cv=none; d=google.com; s=arc-20160816; b=htIHXPIwlG+Pt3tHmiqWstHRvavVZcEY1L4Qw1VyWKlSXkxC1Ql5HiEAFCt+GJFlvJ AXFarA0PutNf1VSYIyHdhDU33faklksQf8S/EhGCWVRUEz/DJgBLGNRm+eJpSiHNHv89 HB+u06rjpFIqZiJqWyOxb/qUAGbMhQ8TAO6Tkdl9aWpk06m3Zlytd93gd7WhudeWnCPE kZONh+sYpK3xU32U7W+DOh1O2zIiCpHYehPOulM3A123KDVyS1EaV9jKhRKimcFH92mi 28vr0DFpSQ1IMTS5hZGhEAPB9+di92QqeYqpi7lRaOfI3mAL2m3X8UZ0PufirQrULLh2 1/Ww== 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; bh=i0MnMjSvc7jXzTvCGMB2BzWtbRiLVa9nbR+/icFlnR8=; b=aCPFFr/czJwKYppV/bBjlZB2ZBcb3fk1eeFKpBbgOS+ZMGmgha/e23IfJTRXjUNpQ0 F3CTQ5+9/ADzA2lGs1NcuEQ8cC2awZsLp2Z5FCijGMmorOAlehGhJwrWvIVTtZUSWM5N L9U2gcj89viQPaHjhPcThrl1DdWG/LxcQF67OUV0hq0J8d9Ef6v6hiXXqeL0ZXlJEcQv MOjfYZN6xTnQeJ3dU3TWFe/IuI1MrkgFt1W4k8eRDVg2KIC8SamQvOqWrS3lHxsdCCqF TLUoKbgO8QTzcMdEqBe4xgwfTokJszt2PIeroq+6pEqTv3eZwWgM261SYyopOPG/vzLe 7W4g== 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 f9si1124100pgu.31.2019.04.17.22.58.11; Wed, 17 Apr 2019 22:58:26 -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 S2387443AbfDRF5U (ORCPT + 99 others); Thu, 18 Apr 2019 01:57:20 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57142 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725836AbfDRF5U (ORCPT ); Thu, 18 Apr 2019 01:57:20 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hH02t-000192-7R; Thu, 18 Apr 2019 05:57:15 +0000 Date: Thu, 18 Apr 2019 06:57:15 +0100 From: Al Viro To: Arnd Bergmann Cc: Linux FS-devel Mailing List , y2038 Mailman List , Linux Kernel Mailing List , Paul Mackerras , "David S. Miller" , Michal Ostrowski , Dmitry Kozlov , James Chapman , linux-ppp@vger.kernel.org, Networking Subject: Re: [PATCH v3 02/26] compat_ioctl: move simple ppp command handling into driver Message-ID: <20190418055715.GC2217@ZenIV.linux.org.uk> References: <20190416202013.4034148-1-arnd@arndb.de> <20190416202013.4034148-3-arnd@arndb.de> <20190417211303.GU2217@ZenIV.linux.org.uk> <20190417235300.GB2217@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190417235300.GB2217@ZenIV.linux.org.uk> 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 Thu, Apr 18, 2019 at 12:53:00AM +0100, Al Viro wrote: > Why would you want to duplicate large chunks of anything? > The above is not even compile-tested, but... I can put > together a patch if you wish. Or am I missing something > here? Actually, there's another broken part - pppox. And that one is nastier - you've just lost everything outside of protocol family ioctls on those sockets. Try e.g. SIOCGIFMTU in 32bit process on those. We really can't reuse native ->ioctl() there - proto family ->compat_ioctl() *must* return -ENOIOCTLCMD on everything it doesn't handle.