Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp952095ybm; Fri, 29 May 2020 16:41:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDkVH3jarVkZR+A7wiJ4TW/PWoFbv5UsqAG051Dpbnix/tEFR+zy1iAIcR0DkHfb0ydRoD X-Received: by 2002:aa7:c5c8:: with SMTP id h8mr10556407eds.222.1590795693389; Fri, 29 May 2020 16:41:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590795693; cv=none; d=google.com; s=arc-20160816; b=Ocnbq++YH5EA+ooBxmWPmyo9hHcf2IxnFLoomzSdvEq7052guNtGKB0P6IuLT2T9/F xPkEfgnM7kVZhjk8yqTOwQCnv40IfZLSKBv/y4B5yOvCvchKguZxYZOkdRHn3krJHx/+ ubgVtQTiWESnw8hr9UWUVRqoBnPOCcThzAMM1m6/f6p6WSCMZfECOzcqqYqmii4zwOO7 uC66DZJ+uq6WxfwsK2OBzmaN/mpNSedXTkcS+iRqtmyHoxUnS/MoY/3zvRWEAKXnMUNb BZt8s3tVjBc36gkXd062UqgQzqBDkJ6mUMpDLMini0xjBAZtUcyqKGwhleRCXrcTi1Zc 2wRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=7doJba0vAsWGF5EzOEdaWXeM93/Hz3kr/YsJ2YDEXN4=; b=HvDF4iPLnBOjRrDEm2VC1RpAGLg9mpncDBF0G7VIwJ7p+7q9+01oOvaEOd15JqD6w0 cZrt7Nnv9c4HJLOSg3yliKk+M4FlKqpCpLEpIEbUohvZ9PoxNs0EGTGxDqv97d6aE4km rYzzjNPmPu7atpW7fXFnU5COw0fXi0th3BKoiOLkQa3oz911PZAnvFSCWm1Oeo38dpYR 2wVsX3a5L0qazq8chVXhQv9XA/mX4J7lAKMp7b4fK6pjYVgt5IQbo+20kTR64s5KcMjN bUjq1xiGrXNEPwrBa1Vh3kHORtJl7SkYQ3ILmVwIldDTLtix6+dtXCFFt3r01LagbT+d iIJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 17si943344edw.300.2020.05.29.16.41.10; Fri, 29 May 2020 16:41:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728585AbgE2Xj0 (ORCPT + 99 others); Fri, 29 May 2020 19:39:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726898AbgE2Xj0 (ORCPT ); Fri, 29 May 2020 19:39:26 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D54DC03E969; Fri, 29 May 2020 16:39:26 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.93 #3 (Red Hat Linux)) id 1jeoax-000C19-MH; Fri, 29 May 2020 23:39:23 +0000 Date: Sat, 30 May 2020 00:39:23 +0100 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Don Brace , linux-scsi@vger.kernel.org Subject: [PATCHES] uaccess hpsa Message-ID: <20200529233923.GL23230@ZenIV.linux.org.uk> References: <20200528234025.GT23230@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200528234025.GT23230@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hpsa compat ioctl done (hopefully) saner. I really want to kill compat_alloc_user_space() off - it's always trouble and for a driver-private ioctls it's absolutely pointless. Note that this is only compile-tested - I don't have the hardware to test it on *or* userland to issue the ioctls in question. So this series definitely needs a review and testing from hpsa maintainers before it might go anywhere. The series is in vfs.git #uaccess.hpsa, based at v5.7-rc1 Al Viro (4): hpsa passthrough: lift {BIG_,}IOCTL_Command_struct copy{in,out} into hpsa_ioctl() hpsa: don't bother with vmalloc for BIG_IOCTL_Command_struct hpsa: get rid of compat_alloc_user_space() hpsa_ioctl(): tidy up a bit drivers/scsi/hpsa.c | 199 ++++++++++++++++++++++++---------------------------- 1 file changed, 90 insertions(+), 109 deletions(-)