Commit bae393da authored by Mark Brown's avatar Mark Brown Committed by Catalin Marinas

kselftest/arm64: Add TPIDR2 to the set of known signal context records

When validating the set of signal context records check that any TPIDR2
record has the correct size, also suppressing warnings due to seeing an
unknown record type.
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221208-arm64-tpidr2-sig-v3-3-c77c6c8775f4@kernel.orgSigned-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 39e54499
...@@ -163,6 +163,10 @@ bool validate_reserved(ucontext_t *uc, size_t resv_sz, char **err) ...@@ -163,6 +163,10 @@ bool validate_reserved(ucontext_t *uc, size_t resv_sz, char **err)
if (head->size != sizeof(struct esr_context)) if (head->size != sizeof(struct esr_context))
*err = "Bad size for esr_context"; *err = "Bad size for esr_context";
break; break;
case TPIDR2_MAGIC:
if (head->size != sizeof(struct tpidr2_context))
*err = "Bad size for tpidr2_context";
break;
case SVE_MAGIC: case SVE_MAGIC:
if (flags & SVE_CTX) if (flags & SVE_CTX)
*err = "Multiple SVE_MAGIC"; *err = "Multiple SVE_MAGIC";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment