diff options
author | Rick Edgecombe <[email protected]> | 2023-06-12 17:11:08 -0700 |
---|---|---|
committer | Dave Hansen <[email protected]> | 2023-08-02 15:01:51 -0700 |
commit | 67840ad0fa14ad49a605074b12d5b0f3c3113ed1 (patch) | |
tree | 7b134d61d3cadc36289a00923e71df1a23dd4ba2 /lib/test_fortify/write_overflow-memcpy.c | |
parent | 680ed2f15e70d079c8148589a3ce9426fc0ff914 (diff) |
x86/shstk: Add ARCH_SHSTK_STATUS
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.
Suggested-by: Mike Rapoport <[email protected]>
Signed-off-by: Rick Edgecombe <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Reviewed-by: Borislav Petkov (AMD) <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Acked-by: Mike Rapoport (IBM) <[email protected]>
Tested-by: Pengfei Xu <[email protected]>
Tested-by: John Allen <[email protected]>
Tested-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/all/20230613001108.3040476-43-rick.p.edgecombe%40intel.com
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions