Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4575707yba; Wed, 17 Apr 2019 14:37:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3j7EcfORcLGJ+FoNVHK4o5i9nZs2CwotH56QaA+zb4rYPG7U3AgZJnwXY8pciDXQd7+Ci X-Received: by 2002:a62:b612:: with SMTP id j18mr93497463pff.124.1555537047194; Wed, 17 Apr 2019 14:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555537047; cv=none; d=google.com; s=arc-20160816; b=fH0ImxOub2D9umfsAh0WXMdXrEptZNrcXhlHkaXP082Cy/WrM42HdnYn0ea2J46o9e LmM9F5QlU7RNX/Da/Eoq3hIxZW3Ke8lIHdzB3wnf2X9eQYcinEPxtp7NcMItoGO3uHrH 7EY1BISJqFXWh3zkmP5Uk1yXdBy+7UJppSbCrg+PeDJTzRZA7Oo69URDkhqFNOy5tcjx sPMnUBJobj/ankv7n/gKkgrBzIf6ursIyuMbqTeqy1xxbDjtqkm+/18I/e5gTfitknZv MBEqsxQJzBEUxxgfXZpNmZ5pi6NhrPmKfCSD/2ePBTcndCZoTW6ZLzlXcBARcccLd7M2 dkWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=TMlvcXl4usKYZNI2g1wqgvxqcTRbJjB8VxhSe1PK0f8=; b=C3Tz3tsCEQyiIO0X6UCFyeU3m/lqc7KJYrw8zhwcmFPD2CVA2sbXfDOxUJbaP/xJ31 CNtevDyZFmkqzg5NvnYfrGKPxKDwRwCJcCJIxHyH6hbM+fQd7LlDBTTTT3m/kvg2H+BA TdvB+Cq7jqkF7N8nMKi3J5vwROy1WxIbkR2k8YRPlb3ZdCY9jHvIpqyQ9wTi+6b7kOcq XThRm94/lmcELX4EGfBk44by0NkypNmlG2kw/SVxZKK+lF8ouCvJm5o8QWebonT7a2Hq 8E8TqrND+27XXRcS0aCTMbL/crTv59t4ftqtnfkotQn20beu/wYKpbCCIrAJYG5fEaJn 1TeA== 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 v10si53535743pgj.576.2019.04.17.14.37.12; Wed, 17 Apr 2019 14:37:27 -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 S2387449AbfDQVfF (ORCPT + 99 others); Wed, 17 Apr 2019 17:35:05 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:40249 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbfDQVfF (ORCPT ); Wed, 17 Apr 2019 17:35:05 -0400 Received: by mail-qt1-f193.google.com with SMTP id x12so2751qts.7; Wed, 17 Apr 2019 14:35:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TMlvcXl4usKYZNI2g1wqgvxqcTRbJjB8VxhSe1PK0f8=; b=WCO34XNTnPWbsMVRJC+RlmJ0qZ6WMBLSFiB3us+Eq12sq5UvqqBUIYNUqwXtVMv9gv amlC/juuO5hq1IU62xfMNst7peg/yKtgGMwD+feOTcwfi8N0lBhj4okRMJer2UTNlwz5 vVFXXZs3FjwPsFCkCMMULrn86/N0YwQwVdetGpQOiWqu48cTbnze0lNQ5bcTT7m0VWTR 2Im+7LC0NLfQr/HAzHgZw3HG4X+bQ6lmOQrsqurjUgvLlhcxmXuudjgVgewbE7osyOwT nlwOv83TQgHEGRdadPDbz+tFEWgPKp6AB2ebnLFHKZv2uwqCqp4PpdSV8zZ5ONK2pnzr 7hpA== X-Gm-Message-State: APjAAAXW78LXsROqSTM6S0m3T5PXPiHxZERzcPaUGvPhAop0a+YfNbRX 7RtPrhVg0b5C9ZcZ7oluncQoiDw6eQmN88HfTye58VVT X-Received: by 2002:a0c:ba10:: with SMTP id w16mr73956382qvf.115.1555536904406; Wed, 17 Apr 2019 14:35:04 -0700 (PDT) MIME-Version: 1.0 References: <20190416202013.4034148-1-arnd@arndb.de> <20190416202013.4034148-9-arnd@arndb.de> <20190417211934.GW2217@ZenIV.linux.org.uk> In-Reply-To: <20190417211934.GW2217@ZenIV.linux.org.uk> From: Arnd Bergmann Date: Wed, 17 Apr 2019 23:34:48 +0200 Message-ID: Subject: Re: [PATCH v3 08/26] compat_ioctl: add compat_ptr_ioctl() To: Al Viro Cc: Linux FS-devel Mailing List , y2038 Mailman List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 17, 2019 at 11:19 PM Al Viro wrote: > > 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. Right. I had reordered the series multiple times and got this part wrong in the end. Arnd