Skip to content

Commit bae393d

Browse files
brooniectmarinas
authored andcommitted
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: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 39e5449 commit bae393d

File tree

1 file changed

+4
-0
lines changed
  • tools/testing/selftests/arm64/signal/testcases

1 file changed

+4
-0
lines changed

tools/testing/selftests/arm64/signal/testcases/testcases.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ bool validate_reserved(ucontext_t *uc, size_t resv_sz, char **err)
163163
if (head->size != sizeof(struct esr_context))
164164
*err = "Bad size for esr_context";
165165
break;
166+
case TPIDR2_MAGIC:
167+
if (head->size != sizeof(struct tpidr2_context))
168+
*err = "Bad size for tpidr2_context";
169+
break;
166170
case SVE_MAGIC:
167171
if (flags & SVE_CTX)
168172
*err = "Multiple SVE_MAGIC";

0 commit comments

Comments
 (0)