All of lore.kernel.org
 help / color / mirror / Atom feed
* PAC key changes when kernel code is preempted
@ 2021-04-30 14:40 Derrick McKee
  2021-04-30 15:04 ` Mark Rutland
  0 siblings, 1 reply; 9+ messages in thread
From: Derrick McKee @ 2021-04-30 14:40 UTC (permalink / raw)
  To: Yianni Giannaris, Linux ARM, mark.rutland, suzuki.poulose,
	Catalin Marinas, james.morse, amit.kachhap, will

Hi,

I am noticing that when kernel code is preempted, PAC keys seem to
change when resuming execution.  For instance, when I read
APDAKeyHi_EL1 and APDAKeyLo_EL1, sleep, and read them again, the
values are different.  Is this the intended behavior?  If so, how can
I ensure that the keys do not change?  The different keys are causing
PAC authentication to fail on pointers signed using the stale key.
Thanks.

--
Derrick McKee
Email: derrick.mckee@gmail.com

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-05-20 18:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-30 14:40 PAC key changes when kernel code is preempted Derrick McKee
2021-04-30 15:04 ` Mark Rutland
2021-05-07 20:24   ` Derrick McKee
2021-05-20 15:18   ` [PATCH] Ensure kernel AI key is not changed on fork Derrick McKee
2021-05-20 15:18     ` Derrick McKee
2021-05-20 16:00     ` Mark Rutland
2021-05-20 16:00       ` Mark Rutland
2021-05-20 18:24       ` Derrick McKee
2021-05-20 18:24         ` Derrick McKee

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.