[PATCH] powerpc/pseries: Whitelist dtl slub object for copying to userspace

Srikar Dronamraju srikar at linux.ibm.com
Mon Jun 17 20:37:04 AEST 2024


> Commit 6d07d1cd300f ("usercopy: Restrict non-usercopy caches to size 0")
> requires that only whitelisted areas in slab/slub objects can be copied to
> userspace when usercopy hardening is enabled using CONFIG_HARDENED_USERCOPY.
> Dtl contains hypervisor dispatch events which are expected to be read by
> privileged users. Hence mark this safe for user access.
> Specify useroffset=0 and usersize=DISPATCH_LOG_BYTES to whitelist the
> entire object.
> 
> Co-developed-by: Vishal Chourasia <vishalc at linux.ibm.com>
> Signed-off-by: Vishal Chourasia <vishalc at linux.ibm.com>
> Signed-off-by: Anjali K <anjalik at linux.ibm.com>
> ---
>  arch/powerpc/platforms/pseries/setup.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 

Looks good to me.

Reviewed-by: Srikar Dronamraju <srikar at linux.ibm.com>

-- 
Thanks and Regards
Srikar Dronamraju


More information about the Linuxppc-dev mailing list