summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/elf.h
diff options
context:
space:
mode:
authorKristina Martsenko2019-01-30 13:02:44 +0100
committerCatalin Marinas2019-02-01 14:56:58 +0100
commitd0a060be573bfbf8753a15dca35497db5e968bb0 (patch)
tree3b584b617217dfcb32ef5b092fc9eed47182e29a /include/uapi/linux/elf.h
parentarm64: dump: no need to check return value of debugfs_create functions (diff)
downloadkernel-qcow2-linux-d0a060be573bfbf8753a15dca35497db5e968bb0.tar.gz
kernel-qcow2-linux-d0a060be573bfbf8753a15dca35497db5e968bb0.tar.xz
kernel-qcow2-linux-d0a060be573bfbf8753a15dca35497db5e968bb0.zip
arm64: add ptrace regsets for ptrauth key management
Add two new ptrace regsets, which can be used to request and change the pointer authentication keys of a thread. NT_ARM_PACA_KEYS gives access to the instruction/data address keys, and NT_ARM_PACG_KEYS to the generic authentication key. The keys are also part of the core dump file of the process. The regsets are only exposed if the kernel is compiled with CONFIG_CHECKPOINT_RESTORE=y, as the only intended use case is checkpointing and restoring processes that are using pointer authentication. (This can be changed later if there are other use cases.) Reviewed-by: Dave Martin <Dave.Martin@arm.com> Signed-off-by: Kristina Martsenko <kristina.martsenko@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'include/uapi/linux/elf.h')
-rw-r--r--include/uapi/linux/elf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h
index e4d6ddd93567..34c02e4290fe 100644
--- a/include/uapi/linux/elf.h
+++ b/include/uapi/linux/elf.h
@@ -421,6 +421,8 @@ typedef struct elf64_shdr {
#define NT_ARM_SYSTEM_CALL 0x404 /* ARM system call number */
#define NT_ARM_SVE 0x405 /* ARM Scalable Vector Extension registers */
#define NT_ARM_PAC_MASK 0x406 /* ARM pointer authentication code masks */
+#define NT_ARM_PACA_KEYS 0x407 /* ARM pointer authentication address keys */
+#define NT_ARM_PACG_KEYS 0x408 /* ARM pointer authentication generic key */
#define NT_ARC_V2 0x600 /* ARCv2 accumulator/extra registers */
#define NT_VMCOREDD 0x700 /* Vmcore Device Dump Note */
#define NT_MIPS_DSP 0x800 /* MIPS DSP ASE registers */