From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B55BDCCD1BB for ; Wed, 22 Oct 2025 17:05:14 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4csFsN734Zz303y; Thu, 23 Oct 2025 04:05:12 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2a0a:51c0:0:12e:550::1" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1761152712; cv=none; b=XvMnT6UNQbXTyGRNgxy4wLKMzsrrrla5yio9FcP5fk55RA+3kMY7Fe75/5OIkPXfE/Ox8HlUVJQ/cWz4WTJR6RSodK0yrEwi0SgaOx8cUNlOU3HBjRqvNi+olP0BsdH76PNcyVqfi3mSWKSh03CnhLJ28IwrXj0+doiCAwGVZ0bcGK34JE5h9dYdsSMYnYDDZri4Go6Zkrygr3dDkwf9z8HrndNzcxFlTFSGX6Vx7eEP2VKSBvAQItQl40RNgO58rqnFp1vM9WXvRhNFLNSZLHQaCjPGEqeVjJpVmRPFwRosvqG3/f+Hwhvh6IMQxbAaXLRlqVSgfReHffwRXmiEuQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1761152712; c=relaxed/relaxed; bh=oQ2RBVYKWQ5VGf96MS/2zH2TN/ADfNL38D/U5RR3xQM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=kw4JNzunNo8uR9szFSpKR7jt0vQjkf9h3IiRO1mOYGvttvidvaq+c1tXRC/JErw78pFtsa4OjdWX02k5qnLGYHEsHCNki+kJSgxuerdask/aSpkByV+d5wfI3wQqtdOPGpnJTBX0CTBR6VQPDu1yH8I9HSDWFq167zgjirtfU3bOYunFVvT/O6SWcfNsdhAw5x8ql/8ZMZRR1K3DGHI0ExFQ40HOAnBeZwYbleHxkX4nwE1FbMAG8jRC+5124GpSHH/mq/9M63uWjQjxnQ3KAcS190FhGDYwcx3CC0BsZQKKpWxwK4Or6vdAnq/TYHL64ry6WvLRiQmuP0hHHdB6Nw== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; dkim=pass (2048-bit key; secure) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=pbJR9jVQ; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=sCG7m/Gr; dkim-atps=neutral; spf=pass (client-ip=2a0a:51c0:0:12e:550::1; helo=galois.linutronix.de; envelope-from=tglx@linutronix.de; receiver=lists.ozlabs.org) smtp.mailfrom=linutronix.de Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=pbJR9jVQ; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=sCG7m/Gr; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linutronix.de (client-ip=2a0a:51c0:0:12e:550::1; helo=galois.linutronix.de; envelope-from=tglx@linutronix.de; receiver=lists.ozlabs.org) Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4csFsN1Prfz2yyx for ; Thu, 23 Oct 2025 04:05:12 +1100 (AEDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1761152709; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=oQ2RBVYKWQ5VGf96MS/2zH2TN/ADfNL38D/U5RR3xQM=; b=pbJR9jVQB5nr+G8FFj8RmvDtwsOIWSvd8E6t+m3j3n+0H3B0jqNrjeiEi2dk1Plj3VirQN yA/1V7sUF8faAQfZfcsGicIAzo3BuCrCtp9sM1r+CCFvRumcubP0BTQjKsmmkHkqsU4SB6 P4FKQ4SXRCBNVgzpu7rNh5bRZmUxbM5wYzbEVt4q3BfiT2pVRWQKtJjAhC7QXvUch9Wc5g 1ykJvAtC37H+CceUcCldztlAX1LwExlWrqz+ncLjsiQfm/fPFU+/nr5IWQvZalrCr+kiBY +AAFXvOu5w0HuDFiuQYd4GUcnBqs1oot36h5XkZZ06TOGao+ogzZSCsP6vRpTw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1761152709; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=oQ2RBVYKWQ5VGf96MS/2zH2TN/ADfNL38D/U5RR3xQM=; b=sCG7m/GraXt0ezpnYBgZ/Npnx8XVxrxQ5s9GmVsZF5pgEe3UYpCM3NR8gSrtBKmgBh+DVK EdE+sr9Ir7P4SxDw== To: Christophe Leroy , Alexander Viro , Christian Brauner , Jan Kara , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , Andre Almeida , Andrew Morton , Eric Dumazet , Kuniyuki Iwashima , Paolo Abeni , Willem de Bruijn , "David S. Miller" , Jakub Kicinski , Simon Horman , Daniel Borkmann , Dave Hansen , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin Cc: Christophe Leroy , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v3 03/10] uaccess: Add masked_user_{read/write}_access_begin In-Reply-To: References: Date: Wed, 22 Oct 2025 19:05:09 +0200 Message-ID: <87bjlyyiii.ffs@tglx> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain On Fri, Oct 17 2025 at 12:20, Christophe Leroy wrote: > Allthough masked_user_access_begin() is to only be used when reading > data from user at the moment, introduce masked_user_read_access_begin() > and masked_user_write_access_begin() in order to match > user_read_access_begin() and user_write_access_begin(). > > That means masked_user_read_access_begin() is used when user memory is > exclusively read during the window, masked_user_write_access_begin() > is used when user memory is exclusively writen during the window, > masked_user_access_begin() remains and is used when both reads and > writes are performed during the open window. Each of them is expected > to be terminated by the matching user_read_access_end(), > user_write_access_end() and user_access_end(). > > Have them default to masked_user_access_begin() when they are > not defined. > > Signed-off-by: Christophe Leroy Can we please coordinate on that vs. the scoped_access() work as this nicely collides all over the place? Thanks, tglx