Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2068717ybb; Thu, 2 Apr 2020 12:27:29 -0700 (PDT) X-Google-Smtp-Source: APiQypJcK9Wl/2U7TLAKxQnm9UjayijG/cIpJkDCt0RCsX2YQQb2Oe8nX20G6SHfXZ9tPzKxyZr8 X-Received: by 2002:a4a:e38c:: with SMTP id l12mr4026933oov.7.1585855649038; Thu, 02 Apr 2020 12:27:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585855649; cv=none; d=google.com; s=arc-20160816; b=sAcZrqcsXqMcGQuV6IQLYFkbD+AhtMWsxJ/wwFy92dwT2C9gJJ2VC1jr54XzvHn3kU qC/afmjnVXni/Kb8akXgIbb4r0LYqD7bG9vX/aqxs8Q9vAq1LX1mZg5zjxPaKyGJPNiQ ax4eG+T9TkOafbDhEbAfgWq2klZV4XfYUZSjbKuos2F4s0HarYBh8r5fflw163oSDh5c gmxuF3zJyNQB0NTAeJ+AfdEvNKxR9TFezTbX1K5tAJQpBmVHL5pSMEUEde4/L+L/6XVi M3dw03ETz2oIdVCCyNmfJPR4U9mbL2c9pPxJR4cZQMuNOMB6U0KumOlJlTdBQe4QayYH 3vmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=xsC8tyWdt4REunwIPC9Ykpfqa7PmWmLgFHcC/3QwWiI=; b=B1eoXGbjV50KvjMrJvarThqtSnV2Jj0vKgGfrf4w4e0ziRiTXSSsqOL5RTUra0XJA9 fpC1vwxR+MyM1ZrC2v+C0DFpzUSDFJGdrNFqlnMxzW4O2QzsvIS3B2UsIAA+9RIHIk0g OfUsyOE8mku6+5ARYjTe3aPoQEQbcGKJAXFusnwd9+N0FIoyhywC7KWilTGq3ylP5EDh uDpNmc9QXD67a63Uy6KjCylM1Vd8M/jrn/V/Anr0a5zCNyHXj8NZlEI25xH6HvH1JUSq BJJbskgWq3/bZB6WjfKmXKsXLqG4LCF+kFb35keK2RVNJFBE596h5LIGAoBRDlIoZx2/ d5mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=sDk1SEu9; 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 e6si2936573oiy.229.2020.04.02.12.27.15; Thu, 02 Apr 2020 12:27:28 -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=@c-s.fr header.s=mail header.b=sDk1SEu9; 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 S2389689AbgDBSfM (ORCPT + 99 others); Thu, 2 Apr 2020 14:35:12 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:12271 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729033AbgDBSfM (ORCPT ); Thu, 2 Apr 2020 14:35:12 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 48tWvg1mkHz9v0Dy; Thu, 2 Apr 2020 20:35:11 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=sDk1SEu9; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id vGOZxJA0GbEI; Thu, 2 Apr 2020 20:35:11 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 48tWvg0JMhz9v0Dw; Thu, 2 Apr 2020 20:35:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1585852511; bh=xsC8tyWdt4REunwIPC9Ykpfqa7PmWmLgFHcC/3QwWiI=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=sDk1SEu9KbD6+CPdF0zQdsnvsipGxinh4BheDbsyX0gJNOiz0wAI5K5LR+I3/MHti 35Ooqvvfdd3pLQjLA0XRgV6pk+vqfu0AWlt+UcxdPIGsv/3guu0uVJqZMMdK3Fj+Mc IwU+7wszU6q2Km78BzOoHqXbJI3ksTWTIYia0lfk= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id E3E978B940; Thu, 2 Apr 2020 20:35:10 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id yvBrCbyn7qgh; Thu, 2 Apr 2020 20:35:10 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id CE3238B925; Thu, 2 Apr 2020 20:35:09 +0200 (CEST) Subject: Re: [PATCH RESEND 1/4] uaccess: Add user_read_access_begin/end and user_write_access_begin/end To: Al Viro Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , airlied@linux.ie, daniel@ffwll.ch, torvalds@linux-foundation.org, akpm@linux-foundation.org, keescook@chromium.org, hpa@zytor.com, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, Russell King , Christian Borntraeger References: <27106d62fdbd4ffb47796236050e418131cb837f.1585811416.git.christophe.leroy@c-s.fr> <20200402162942.GG23230@ZenIV.linux.org.uk> <67e21b65-0e2d-7ca5-7518-cec1b7abc46c@c-s.fr> <20200402175032.GH23230@ZenIV.linux.org.uk> From: Christophe Leroy Message-ID: <24095989-57be-332c-f08c-acb1672c7e6f@c-s.fr> Date: Thu, 2 Apr 2020 20:35:09 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200402175032.GH23230@ZenIV.linux.org.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 02/04/2020 à 19:50, Al Viro a écrit : > On Thu, Apr 02, 2020 at 07:03:28PM +0200, Christophe Leroy wrote: > >> user_access_begin() grants both read and write. >> >> This patch adds user_read_access_begin() and user_write_access_begin() but >> it doesn't remove user_access_begin() > > Ouch... So the most generic name is for the rarest case? > I can add another patch at the end of the series to rename user_access_begin() to user_full_access_begin(). Would it suit you ? Christophe