Thread (60 messages) 60 messages, 6 authors, 2020-01-21

Re: [PATCH v3 07/16] arm64: initialize and switch ptrauth kernel keys

From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2020-01-16 18:42:14

On Mon, Dec 16, 2019 at 02:17:09PM +0530, Amit Daniel Kachhap wrote:
From: Kristina Martsenko <redacted>

Set up keys to use pointer authentication within the kernel. The kernel
will be compiled with APIAKey instructions, the other keys are currently
unused. Each task is given its own APIAKey, which is initialized during
fork. The key is changed during context switch and on kernel entry from
EL0.

The keys for idle threads need to be set before calling any C functions,
because it is not possible to enter and exit a function with different
keys.

Reviewed-by: Kees Cook <redacted>
Signed-off-by: Kristina Martsenko <redacted>
[Amit: Modified secondary cores key structure, comments]
Signed-off-by: Amit Daniel Kachhap <redacted>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>

_______________________________________________
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