Thread (15 messages) 15 messages, 3 authors, 2025-11-04

Re: [PATCH v3 03/10] uaccess: Add masked_user_{read/write}_access_begin

From: Thomas Gleixner <hidden>
Date: 2025-11-04 08:02:05
Also in: linux-block, linux-fsdevel, lkml, netdev

On Tue, Nov 04 2025 at 07:39, Christophe Leroy wrote:
Le 22/10/2025 à 19:05, Thomas Gleixner a écrit :
quoted
On Fri, Oct 17 2025 at 12:20, Christophe Leroy wrote:
quoted
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 <redacted>
Can we please coordinate on that vs. the scoped_access() work as this
nicely collides all over the place?
Sure, I will rebase on top of your series.

Once it is rebased, could you take the non powerpc patches in your tree ?
Sure. The current lot is at:

  git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git scoped-uaccess

Thanks,

        tglx
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help