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

Andreas Schwab schwab at linux-m68k.org
Mon Mar 22 13:12:39 GMT 2021


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

Andreas.

-- 
Andreas Schwab, schwab at linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



More information about the linux-riscv mailing list