[patch V3 08/12] uaccess: Provide put/get_user_masked()

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Fri Oct 17 06:45:32 PDT 2025


On 2025-10-17 09:41, Mathieu Desnoyers wrote:
[...]
>> +/**
>> + * get_user_masked - Read user data with masked access
[...]
>> + * Return: true if successful, false when faulted

I notice that __get_user() and get_user() return -EFAULT
on error, 0 on success. I suspect the reversed logic
will be rather confusing.

Thanks,

Mathieu

-- 
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com



More information about the linux-riscv mailing list