Thread (9 messages) 9 messages, 5 authors, 2024-06-24

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

From: Srikar Dronamraju <hidden>
Date: 2024-06-17 10:38:07
Also in: linux-hardening

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 <redacted>
Signed-off-by: Vishal Chourasia <redacted>
Signed-off-by: Anjali K <redacted>
---
 arch/powerpc/platforms/pseries/setup.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Looks good to me.

Reviewed-by: Srikar Dronamraju <redacted>

-- 
Thanks and Regards
Srikar Dronamraju
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help