Re: [PATCH v6 3/7] arm64: uaccess: Add additional userspace GCS accessors

From
Mark Brown <broonie@kernel.org>
Date
2025-08-20 17:24:31
Also in
linux-arm-kernel, linux-perf-users, lkml
Reply to
Jeremy Linton, 2025-08-18
On Mon, Aug 18, 2025 at 04:34:48PM -0500, Jeremy Linton wrote:
Its important to note that GCS pages can be read by normal
instructions, but the hardware validates that pages used by GCS
specific operations, have a GCS privilege set. We aren't validating this
in load_user_gcs because it requires stabilizing the VMA over the read
which may fault.
I think in the context of uprobes this is reasonable.  We can always go
back later and tighten things up.

Reviewed-by: Mark Brown <broonie@kernel.org>
quoted hunk ↗ jump to hunk
+/*
+ * Unlike put/push_user_gcs() above, get/pop_user_gsc() doesn't
+ * validate the GCS permission is set on the page being read.  This
+ * differs from how the hardware works when it consumes data stored at
+ * GCSPR. Callers should assure this is acceptable.
s/assure/ensure/

Attachments

Thread (10 messages) 10 messages, 2 authors, last reply 2025-08-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help