Skip to content

uaccess: Add masked_user_read_access_begin

David Laight linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2uaccess: Simplify code pattern for masked user copiesinclude/linux/uaccess.h+21 -09 replies
2/2fs: Use masked_user_read_access_begin()fs/select.c+3 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] uaccess: Add masked_user_read_access_begin

The code pattern for masked user access is unwieldy. Add a new wrapper masked_user_read_access_begin() to simplify it. Add the equivalent write wrapper.

Change fs/select.c to use the new wrappers when reading the sigset_argpack and when writing out the result of poll.

The futex code could also be changed.

Note that this might conflict with the patch to change get_sigset_argpack to __always_inline.

David Laight (2):
uaccess: Simplify code pattern for masked user copies
fs: Use masked_user_read_access_begin()

 fs/select.c             |  8 +++-----
 include/linux/uaccess.h | 21 +++++++++++++++++++++
 2 files changed, 24 insertions(+), 5 deletions(-)
Signature · 1 line
2.39.5