Re: [PATCH v5 39/39] x86/shstk: Add ARCH_SHSTK_STATUS
From: Kees Cook <hidden>
Date: 2023-01-20 01:08:44
Also in:
linux-api, linux-arch, linux-mm, lkml
From: Kees Cook <hidden>
Date: 2023-01-20 01:08:44
Also in:
linux-api, linux-arch, linux-mm, lkml
On Thu, Jan 19, 2023 at 01:23:17PM -0800, Rick Edgecombe wrote:
CRIU and GDB need to get the current shadow stack and WRSS enablement status. This information is already available via /proc/pid/status, but this is inconvenient for CRIU because it involves parsing the text output in an area of the code where this is difficult. Provide a status arch_prctl(), ARCH_SHSTK_STATUS for retrieving the status. Have arg2 be a userspace address, and make the new arch_prctl simply copy the features out to userspace. Tested-by: Pengfei Xu <redacted> Suggested-by: Mike Rapoport <rppt@kernel.org> Signed-off-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Reviewed-by: Kees Cook <redacted> -- Kees Cook