[PATCH] kselftest/arm64: Fix validation of EXTRA_CONTEXT signal contexts

Mark Brown broonie at kernel.org
Mon Aug 1 16:06:17 PDT 2022


On Mon, Aug 01, 2022 at 11:59:26PM +0100, Mark Brown wrote:

> Currently in validate_extra_context() we assert both that the extra data
> pointed to by the EXTRA_CONTEXT is 16 byte aligned and that it immediately
> follows the struct _aarch64_ctx providing the terminator for the linked

I just realised that this is a very similar subject to another fix I
sent for this stuff a few hours ago.  Both fixes are needed, the code
really is quite buggy.  I've tweaked the subjects locally in case I need
to resend - this one is:

kselftest/arm64: Fix validation of EXTRA_CONTEXT signal contexts

and the other is:

kselftest/arm64: Fix validatation termination record after EXTRA_CONTEXT

The good news is that with the patches I've now posted we no longer get
any spurious failures, though further patches (which should emerge after
the merge window) will be required to actually validate the data inside
an EXTRA_CONTEXT.
-------------- 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/20220802/3aaa7af5/attachment.sig>


More information about the linux-arm-kernel mailing list