Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp745546ybb; Fri, 3 Apr 2020 11:02:32 -0700 (PDT) X-Google-Smtp-Source: APiQypLLMoD86ZbPT6bgu1fNDi8pQLd5n2aNSz/db7MlB0V88HZ+4QaDRdjvnXWaarSYQvQPsXnW X-Received: by 2002:aca:47c8:: with SMTP id u191mr4172866oia.170.1585936952684; Fri, 03 Apr 2020 11:02:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585936952; cv=none; d=google.com; s=arc-20160816; b=Qw4JVW4xYfvA+K3BZPqInEPo0Lb8m+KENOn45ysHubMMVgM0lVi3yDk+NqGmqF8rfJ prvZSIDKAl0JQWdHQ/Xo7TBZ+Xjp+u0zkzKF3pgyvRWLfsmibjGdT+0oAmTs8XgDSDai aiqVELka4982F2Nevl/R3ul3uFa/QkrFx96X+/55BKjPFDA8KV7Fqe70McG8Mbr4+dtU SZ/HuGnaMT5EDODus4z70udWub5OlboN43+SkSrLAMYR3oDnMYH0fNo5xipRfh8deKkd ATPnyrQu/QGP6leoCeD4ye6YG2ej1gsElyh6jIc1SUsqUUvDwmoms97VaC6z8XaW5Jzg GLrQ== 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:dkim-signature; bh=GJVFgRSGYKBnNbBPTVD/IukQXQa7rwPwND5Kh+NTBuo=; b=BbuBdUu5EUseDzQ3ezaPv9nhde85fCruku8bSQ/iah5l+ptsD0FIORBTVSoBzNlmwD HOQWMRqysghcccTePYz9VluKkykFPMglm+jzy6jPYzoKxr+xIoX//FJ/aLEyCG4s778s Re1vNBLo5cF3MkeUXnt1wq1CHPgr/GGy2GikH2FiLvaCQPvhb3oD5MYTiId6hYrNy2y5 JX4zrip00wYMxL97CY15Pjk0oVUb8nZ3ci7yheeMmkI/EeL3uOu/KzetntZSgA7I8Xpb Gbkwfrv09IQXth2FQwYaQrzaCzveFK9kVhQrSMK0DuTkZgoKQgYqmtnx9Gys1t3+olPg vnhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Ys0nLdOP; 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 l25si4234467otb.234.2020.04.03.11.02.17; Fri, 03 Apr 2020 11:02:32 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Ys0nLdOP; 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 S2404353AbgDCSBb (ORCPT + 99 others); Fri, 3 Apr 2020 14:01:31 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:35201 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728513AbgDCSBa (ORCPT ); Fri, 3 Apr 2020 14:01:30 -0400 Received: by mail-lj1-f196.google.com with SMTP id k21so7922872ljh.2 for ; Fri, 03 Apr 2020 11:01:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GJVFgRSGYKBnNbBPTVD/IukQXQa7rwPwND5Kh+NTBuo=; b=Ys0nLdOPaMPZHWrNpQG57PugKN6mkPGdJSUx/TQDpwY2GQmZdYkhxJaiTGDykgi3DV b9peyP0pK7wyoIA4rX92GpUwZxOJ1gL4WdkK8qsym8w0OHPBQz5LC8Pgsely+7R6EED/ Y1qrLKu/XLubSi3S/jM7cWoFX4dK0Vuw/7IEk= 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=GJVFgRSGYKBnNbBPTVD/IukQXQa7rwPwND5Kh+NTBuo=; b=CmKZ2S2rbDc0+gjPkl96Lhp+i+E5QLRYCuHdztUAYY1B4Ep702/MJjfyryq9M2T/bn G2RbE/tBo4oiK4MgXAnMUFDl9fMBf7+TyCi37nvcMCU/PBaCey1b/x6Ix0nWn+IakETG okXn4xbQlAwJrJIbVKdGPWD/MAXcbQa0fGZudEJFPXFeB7fL00pcZsol+l2u4lvk2B6H DrZ2Gzh1TbDUK5xfbiv3lE+oWk18LPqrxlWpTgBF8mZpUlurR7ulOBZK1d4p3PP21olV 2VToR1VqwRQMKT69CWH3u5MWufOx3NXZ/MYApz2DIMqK3bxAjozdHQMi9riGJA2MnfxU 5MCA== X-Gm-Message-State: AGi0PuZEF2iWgEonyJ+6neT5B+aMNE9SJynATQLdB0SLHt0Ud/PqbNLe /Ha548CP40Ulil0a/dD1WYz5OMOPwuM= X-Received: by 2002:a2e:91cc:: with SMTP id u12mr5875418ljg.244.1585936888402; Fri, 03 Apr 2020 11:01:28 -0700 (PDT) Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com. [209.85.208.181]) by smtp.gmail.com with ESMTPSA id c203sm4602756lfd.38.2020.04.03.11.01.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Apr 2020 11:01:27 -0700 (PDT) Received: by mail-lj1-f181.google.com with SMTP id t17so7848792ljc.12 for ; Fri, 03 Apr 2020 11:01:27 -0700 (PDT) X-Received: by 2002:a2e:8652:: with SMTP id i18mr5777613ljj.265.1585936886747; Fri, 03 Apr 2020 11:01:26 -0700 (PDT) MIME-Version: 1.0 References: <36e43241c7f043a24b5069e78c6a7edd11043be5.1585898438.git.christophe.leroy@c-s.fr> <42da416106d5c1cf92bda1e058434fe240b35f44.1585898438.git.christophe.leroy@c-s.fr> In-Reply-To: <42da416106d5c1cf92bda1e058434fe240b35f44.1585898438.git.christophe.leroy@c-s.fr> From: Linus Torvalds Date: Fri, 3 Apr 2020 11:01:10 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 5/5] uaccess: Rename user_access_begin/end() to user_full_access_begin/end() To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Dave Airlie , Daniel Vetter , Al Viro , Andrew Morton , Kees Cook , Peter Anvin , Linux Kernel Mailing List , linuxppc-dev , Linux-MM , linux-arch , intel-gfx@lists.freedesktop.org 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 Fri, Apr 3, 2020 at 12:21 AM Christophe Leroy wrote: > > Now we have user_read_access_begin() and user_write_access_begin() > in addition to user_access_begin(). I realize Al asked for this, but I don't think it really adds anything to the series. The "full" makes the names longer, but not really any more legible. So I like 1-4, but am unconvinced about 5 and would prefer that to be dropped. Sorry for the bikeshedding. And I like this series much better without the cookie that was discussed, and just making the hard rule be that they can't nest. Some architecture may obviously use a cookie internally if they have some nesting behavior of their own, but it doesn't look like we have any major reason to expose that as the actual interface. The only other question is how to synchronize this? I'm ok with it going through the ppc tree, for example, and just let others build on that. Maybe using a shared immutable branch with 5.6 as a base? Linus