[PATCH 0/4] arm64: ptrace: fix handling of partial SETREGSET calls
Mark Brown
broonie at kernel.org
Thu Dec 5 05:21:23 PST 2024
On Thu, Dec 05, 2024 at 12:16:51PM +0000, Mark Rutland wrote:
> A few of arm64's regsets forget to handle partial-length SETREGSET
> calls, and copy a small portion of uninitialized kernel stack memory to
> the backing storage of the relevant registers. In all cases the read is
> limited to a specific slot on the stack, and the issue does not provide
> a write mechanism.
It feels like we might want a helpers specifically for the case where
we're mapping a value directly into a data structure, it all feels a bit
open coding. The shape is a bit awkward though since things aren't
usually stored in the same layout as we expose via ptrace when there's
more than one value.
Reviewed-by: Mark Brown <broonie at kernel.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20241205/1876c48a/attachment.sig>
More information about the linux-arm-kernel
mailing list