Patchwork Add NT_ARM_PACA_KEYS and NT_ARM_PACG_KEYS from Linux 5.1 to elf.h

login
register
mail settings
Submitter Joseph Myers
Date May 16, 2019, 11:09 p.m.
Message ID <alpine.DEB.2.21.1905162309060.26505@digraph.polyomino.org.uk>
Download mbox | patch
Permalink /patch/32734/
State New
Headers show

Comments

Joseph Myers - May 16, 2019, 11:09 p.m.
This patch adds the new NT_ARM_PACA_KEYS and NT_ARM_PACG_KEYS from
Linux 5.1 to glibc's elf.h.

Tested for x86_64.

2019-05-16  Joseph Myers  <joseph@codesourcery.com>

	* elf/elf.h (NT_ARM_PACA_KEYS): New macro.
	(NT_ARM_PACG_KEYS): Likewise.
Florian Weimer - May 17, 2019, 7:19 a.m.
* Joseph Myers:

> +#define NT_ARM_PACA_KEYS	0x407	/* ARM pointer authentication
> +					   address keys.  */
> +#define NT_ARM_PACG_KEYS	0x408	/* ARM pointer authentication
> +					   generic key.  */

Looks good to me.  The numbers match what's in the current Linux source
tree.

Thanks,
Florian

Patch

diff --git a/elf/elf.h b/elf/elf.h
index a313c24b93..bb13c870e2 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -811,6 +811,10 @@  typedef struct
 					   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_VMCOREDD	0x700		/* Vmcore Device Dump Note.  */
 #define NT_MIPS_DSP	0x800		/* MIPS DSP ASE registers.  */
 #define NT_MIPS_FP_MODE	0x801		/* MIPS floating-point mode.  */