Thread (43 messages) 43 messages, 9 authors, 2019-01-04

Re: [PATCH v6 07/13] arm64: add basic pointer authentication support

From: Marc Zyngier <hidden>
Date: 2019-01-04 09:21:40
Also in: kvmarm, lkml

On 03/01/2019 20:29, Pavel Machek wrote:
On Fri 2018-12-07 18:39:25, Kristina Martsenko wrote:
quoted
From: Mark Rutland <mark.rutland@arm.com>

This patch adds basic support for pointer authentication,
allowing userspace to make use of APIAKey, APIBKey, APDAKey,
APDBKey, and APGAKey. The kernel maintains key values for each
process (shared by all threads within), which are initialised to
random values at exec()
time.

...
quoted
+/* + * We give each process its own keys, which are shared by
all threads. The keys + * are inherited upon fork(), and
reinitialised upon exec*(). + */ +struct ptrauth_keys { +	struct
ptrauth_key apia; +	struct ptrauth_key apib; +	struct ptrauth_key
apda; +	struct ptrauth_key apdb; +	struct ptrauth_key apga; +};
intstruction_a, data_a, generic_a? Should be easier to understand
than "apdb" ...
... until you realize that these names do match the documentation,
which makes it even easier to understand how the code uses the
architecture.

	M.
-- 
Jazz is not dead. It just smells funny...

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help