[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250209105600.3388-1-david.laight.linux@gmail.com>
Date: Sun, 9 Feb 2025 10:55:58 +0000
From: David Laight <david.laight.linux@...il.com>
To: linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org,
Linus Torvalds <torvalds@...ux-foundation.org>
Cc: David Laight <david.laight.linux@...il.com>,
Alexander Viro <viro@...iv.linux.org.uk>,
Christian Brauner <brauner@...nel.org>,
Jan Kara <jack@...e.cz>,
Arnd Bergmann <arnd@...db.de>,
Kees Cook <kees@...nel.org>
Subject: [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(-)
--
2.39.5
Powered by blists - more mailing lists