Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4565317yba; Wed, 17 Apr 2019 14:22:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzClLQRSc/0NtNo20NexuXuYiDcbbxj/LEQHXGbfbdcE3RolQOq0G0K8RjhsS1tk1a3o7o X-Received: by 2002:a65:5106:: with SMTP id f6mr83710293pgq.253.1555536145890; Wed, 17 Apr 2019 14:22:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555536145; cv=none; d=google.com; s=arc-20160816; b=DqejdDzoaThga8QFWZNcom6qWwbQgmvshhSecNQ9old1lLWrTBEJCOia/951lW3Fcz b0hDbLxy28NVWJ33rCl6PPClY0aYJp8RNvWFdyZGpdUm49qWWTBWu+i8GiG352lrX5ki gh4AIjUcuRonsHIKtOV/KnekvI76Ldm82KR8l/8+s5pxbsHLfdib1VOOv9MIcdRITRcB UkC2iSFYk2qA/TdiGqAfG8XibNm2GgIwqenPD1g+cqNu1z6hggEWHJTX9vyKLgZYp5OT Thqn0ncI9GqRTF9DZNYN/nvQ0397QxOkf2frAX9k9sPTnAc2eyoGpIL/xbBVmotOzBJ7 /cGw== 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=clKZeFq9nzxTNZ1ccHWocN8+RurVpFMjSQmdWDVQBec=; b=JFb5iBZjuont9EqQWJ8fofK/TAKfaXc8LlNs+8RrsIXENTv9ZWgqrglVY4hK2NP/5k Gi3OMQKNLtZid7dScwaPg93Uqj++vPtrHpMqBqRqMaxtYquQa55rKxD6UyM8LVNIbMwq KHUZbwTHplTqdlIMPi58GP70CgMd2kbfXz36BhA8SoEZp0lVOWL8SFIEv/uUJo2VARJE /tzpHYnl0YG54coabfCtXJCMWgfPGu3L6JkUbGmiu8b7QEVfoLf4J7NUlBRgU+uIf3yG 4qlFArD7Elpqn09NpII13boelvKbFbm4o/2heaImCSkF2E6FtEYBkZeXwOk2+55CeHYx 7v2Q== 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 k24si156994pfk.284.2019.04.17.14.22.11; Wed, 17 Apr 2019 14:22:25 -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 S2387417AbfDQVVS (ORCPT + 99 others); Wed, 17 Apr 2019 17:21:18 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:50946 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbfDQVVR (ORCPT ); Wed, 17 Apr 2019 17:21:17 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGrzT-0007xA-Is; Wed, 17 Apr 2019 21:21:11 +0000 Date: Wed, 17 Apr 2019 22:21:11 +0100 From: Al Viro To: Arnd Bergmann Cc: linux-fsdevel@vger.kernel.org, y2038@lists.linaro.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Andrew Donnellan , Felipe Balbi , Frederic Barrat , Frank Haverkamp , Kashyap Desai , Sumit Saxena , Shivasharan S , "James E.J. Bottomley" , "Martin K. Petersen" , Felipe Balbi , Jerry Zhang , Vincent Pelletier , Andrzej Pietrasiewicz , Shen Jing , linuxppc-dev@lists.ozlabs.org, megaraidlinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH v3 10/26] compat_ioctl: use correct compat_ptr() translation in drivers Message-ID: <20190417212111.GX2217@ZenIV.linux.org.uk> References: <20190416202013.4034148-1-arnd@arndb.de> <20190416202013.4034148-11-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190416202013.4034148-11-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:48PM +0200, Arnd Bergmann wrote: > A handful of drivers all have a trivial wrapper around their ioctl > handler, but don't call the compat_ptr() conversion function at the > moment. In practice this does not matter, since none of them are used > on the s390 architecture and for all other architectures, compat_ptr() > does not do anything, but using the new compat_ptr_ioctl() > helper makes it more correct in theory, and simplifies the code. > > Acked-by: Greg Kroah-Hartman > Acked-by: Andrew Donnellan > Acked-by: Felipe Balbi > Signed-off-by: Arnd Bergmann > --- > drivers/misc/cxl/flash.c | 8 +------- > drivers/misc/genwqe/card_dev.c | 23 +---------------------- > drivers/scsi/megaraid/megaraid_mm.c | 28 +--------------------------- > drivers/usb/gadget/function/f_fs.c | 12 +----------- ACK, provided that all their ioctls are taking pointers (which is worth mentioning in commit message, assuming it's true)