Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2445090imd; Sun, 28 Oct 2018 10:09:52 -0700 (PDT) X-Google-Smtp-Source: AJdET5eJG8SGZLqenxvZ8iD5fgrkB075LcqCB/v8YHD8AaqGOr00nHQMAdee3z+rR6uqqIBIArZP X-Received: by 2002:a17:902:7202:: with SMTP id ba2-v6mr11060291plb.44.1540746592720; Sun, 28 Oct 2018 10:09:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540746592; cv=none; d=google.com; s=arc-20160816; b=PfpugNBCb8vX7L/g1n/NL3h6AReONzkQcctGDiPnhAuUC02UYThG02aRHIaRwGFIil p1ONbYP8ROW6xJahOTKEDHvix4eBOVFF0PHCl2B2RnNID8SP1sRfqB7gRuLZ1Uv18MKv +tZisDp01MaUwhUPptpcJR3gjwbkn3timsCcodMWLceztUyde6y8DI8oCgMUrhVQsnPI Uec+h6X0EC1jnKA8fPD5727Lf2gtUIu668TsnZvj/IQFrdCZIEMcHuK/w3SFLkZpq58s QAwMCxOQBmuBU1i7Nt98DkywAFSNZT304YPohO6kkvoZjl9ZvxfJha4HJ79RBqULIBo8 apdA== 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=l5msAw/LYLV4FEiTW1/90w7Mn/+89TQunAU5DUBsgBk=; b=hjmHIujw/NkwfowDuOG7W9o6J+Xvv4pbapjUo41K4xYvAGchAsvaDPoGwj0EUYOdff 0Syg4yhFAMk4YDkZRwWEm4VULQM2BiRpbM+NbjY/fmDxrqt251nDwT4rByNKtDEIJiN8 p1W67wMPZe51LuT03bG7wMpwrjly6Gx2WL2kjKn+ZzO3RJo0Akey0qJvInex6ssgOiip g77tLvvSbh/3xwWb8+lOYXcu5tAIq+pYs5ZmWnHVTvEBQK0EVrcbSg15HvQ3isLX0qNM p4LUFI8PqoItN3LcR8s4c9uMw1OZ2hmtU09ry6Pr+HZVkNZ+OSMOHSMngwSQJE/JXFDp 85eQ== 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 s26-v6si17734345pgl.584.2018.10.28.10.09.36; Sun, 28 Oct 2018 10:09:52 -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 S1728010AbeJ2BwO (ORCPT + 99 others); Sun, 28 Oct 2018 21:52:14 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:38172 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727957AbeJ2BwO (ORCPT ); Sun, 28 Oct 2018 21:52:14 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gGoWj-0002N2-Dn; Sun, 28 Oct 2018 17:07:01 +0000 Date: Sun, 28 Oct 2018 17:07:01 +0000 From: Al Viro To: Arnd Bergmann Cc: Linux FS-devel Mailing List , Linux Kernel Mailing List Subject: Re: [PATCH v2 01/17] compat_ioctl: add generic_compat_ioctl_ptrarg() Message-ID: <20181028170701.GA8132@ZenIV.linux.org.uk> References: <20180912150142.157913-1-arnd@arndb.de> <20180913020757.GP19965@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 13, 2018 at 12:29:02PM +0200, Arnd Bergmann wrote: > I was hoping that the _ptrarg suffix gives enough warning here, > but maybe not. I was careful to only use it in cases that I > checked are safe, either using only pointer arguments, or > no arguments. > > What we might do for further clarification (besides adding a > comment next to the declaration), would be to add a > complementary generic_compat_ioctl_intarg() that skips > the compat_ptr(). There are only a handful of drivers that > would use this though. ... and the next Monday zeniv went down until the end of September, so I'd missed any resends that might've happened in that window. It's _probably_ too late for this cycle, but let's deal with that thing properly for the next one. A couple of comments from rereading the thread: * generic_compat_ioctl_fthagn^H^H^H^H^H^Hptrarg should not be EXPORT_SYMBOL_GPL(). I'm sorry, but this is beyond ridiculous - "call native ioctl, with the last argument interpreted as an address from 32bit process POV and converted to 64bit equivalent" should not be copyrightable at all, and there's really only one natural way to express that. Use EXPORT_SYMBOL(). And I'd consider names like compat_ptr_ioctl() - easier to type and less opaque... * rtc patch makes RTC_IRQP_SET32 et.al. accepted by 64bit syscall. Which is a behaviour change that might or might not be OK, but it needs to be clearly stated. Could you resend the series, with ACKs attached, etc., either based on -next (if done now) or on -rc1 (once released)?