[PATCH] riscv: evaluate put_user() argument before enabling user access

Ben Dooks ben.dooks at codethink.co.uk
Mon Mar 22 16:53:52 GMT 2021


On 22/03/2021 13:12, Andreas Schwab wrote:
> On Mär 22 2021, Ben Dooks wrote:
> 
>> + * to the result of dereferencing @ptr. The @x is copied inside the macro
>                                             The value of @x
> 
>> + * to avoid code re-ordering where @x gets evaulated within the block that
>> + * enables user-space access (thus possibly bypassing some of the protection
>> + * this feautre provides).
>             feature
Thanks, will fix this for the next version.

Do people think we should get this included into stable?

-- 
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius

https://www.codethink.co.uk/privacy.html



More information about the linux-riscv mailing list