um: clear all memory in new userspace processes
authorBenjamin Berg <benjamin.berg@intel.com>
Thu, 19 Sep 2024 12:45:10 +0000 (14:45 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 10 Oct 2024 11:37:22 +0000 (13:37 +0200)
commite167cc7a95fe01e228e403ac90090f8613e7d8bc
tree9279e1cc6feccdfafe61e8b0fe8f683087becfe8
parent68b9883cc16ec2ce699d832ef60241b1a4e47d33
um: clear all memory in new userspace processes

With the change to use execve() we can now safely clear the memory up to
STUB_START as rseq will not be trying to use memory in that region. Also,
on 64 bit the previous changes should mean that there is no usable
memory range above the stub.

Make the change and remove the comment as it is not needed anymore.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20240919124511.282088-10-benjamin@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/kernel/skas/mmu.c