[PATCH v4 03/10] uaccess: Use masked_user_{read/write}_access_begin when required
Thomas Gleixner
tglx at linutronix.de
Sun Nov 16 02:53:30 AEDT 2025
On Thu, Nov 06 2025 at 12:31, Christophe Leroy wrote:
> diff --git a/net/core/scm.c b/net/core/scm.c
> index 66eaee783e8be..4a65f9baa87e7 100644
> --- a/net/core/scm.c
> +++ b/net/core/scm.c
> @@ -274,7 +274,7 @@ int put_cmsg(struct msghdr * msg, int level, int type, int len, void *data)
> check_object_size(data, cmlen - sizeof(*cm), true);
>
> if (can_do_masked_user_access())
> - cm = masked_user_access_begin(cm);
> + cm = masked_user_write_access_begin(cm);
> else if (!user_write_access_begin(cm, cmlen))
> goto efault;
Shouldn't this be converted to scoped_....() ?
More information about the Linuxppc-dev
mailing list