Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4564232yba; Wed, 17 Apr 2019 14:20:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUi/vL0bg2+wOD0SuSYO7Ks39RxfVBSHSrW3Qd/U+EbIPfCIXYyyklwhYZajDmxplKc6hR X-Received: by 2002:a17:902:ec0c:: with SMTP id cy12mr69640073plb.291.1555536048168; Wed, 17 Apr 2019 14:20:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555536048; cv=none; d=google.com; s=arc-20160816; b=p1XsBKyXzhFGOMyNlhOZR34ka1+39qu8TgO0isFgTm2rs6VOPi+bVA+ByLO5SICifg nKTbE9e8fVlGQ7rgbyyLw+vfFWLeTeYpChgXekHrvHbCr7fOTIGGwdndTGSxy+DYXfcF SKwFB6TmMOQaF3u5SOc+YoOsDWcoCXL2VrQw/5CGan4vKd/Ll2f4m5sdI5e65eRRKLtQ ySkyRjElWpKKx8x0yI17tuyyRbUhdlOAttp41lq9PjFbg6IUsF+gNzHBb+LA9khgsF5R lgQx2hufEKDSO6+Hih4C6EMvg0PD4RDTiXUPxI3ygaCB/6SK9z3EkOIr8AQvxVuVHlum 14UQ== 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=cT2m3grZEp2CkmtZVDLzQYjcLy0A51lBuyCi7O4xKc8=; b=At9qoMqVcxsP7A91jRj/q4jTOONi9PrQbLd6LXWCsAS0pkFpr3olH/fqkjjAsqhQvC rSy1v0mdKWnIHtnm7q9knDGnHauUbZE+AxeNCuPFDKVHMEmKSxv2KkA/254fZ94OT5T3 H9hVhPbRiIja0/Jwh6Owa0o+CeNTywEvaXVilR6j5oESPt3yUeQufJ5aJFvNyCdq4u0g SqMoJaTg1adp3cGN1mvmKabkC/vLi95rh6jEX7tfLRHukv4Bs02viX9fNAuOHHSsnyX8 EtYDfsNd8uVxeSZYD69/yqax9WjfqnS3vu2PhAMmgmV1J7iRvBZ+Wr+3dgFXmkJEt1vE Qm8A== 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 h89si63059pld.367.2019.04.17.14.20.32; Wed, 17 Apr 2019 14:20:48 -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 S1733250AbfDQVTg (ORCPT + 99 others); Wed, 17 Apr 2019 17:19:36 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:50894 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726162AbfDQVTg (ORCPT ); Wed, 17 Apr 2019 17:19:36 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGrxu-0007ui-LE; Wed, 17 Apr 2019 21:19:34 +0000 Date: Wed, 17 Apr 2019 22:19:34 +0100 From: Al Viro To: Arnd Bergmann Cc: linux-fsdevel@vger.kernel.org, y2038@lists.linaro.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 08/26] compat_ioctl: add compat_ptr_ioctl() Message-ID: <20190417211934.GW2217@ZenIV.linux.org.uk> References: <20190416202013.4034148-1-arnd@arndb.de> <20190416202013.4034148-9-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190416202013.4034148-9-arnd@arndb.de> 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 Tue, Apr 16, 2019 at 10:19:46PM +0200, Arnd Bergmann wrote: > Many drivers have ioctl() handlers that are completely compatible between > 32-bit and 64-bit architectures, except for the argument that is passed > down from user space and may have to be passed through compat_ptr() > in order to become a valid 64-bit pointer. > > Using ".compat_ptr = compat_ptr_ioctl" in file operations should let > us simplify a lot of those drivers to avoid #ifdef checks, and convert > additional drivers that don't have proper compat handling yet. You forgot to mention that it even gets the previous commit to build ;-) IOW, that needs to be reordered.