Skip to content

Commit f4dcccd

Browse files
brooniectmarinas
authored andcommitted
kselftest/arm64: Handle FPMR context in generic signal frame parser
Teach the generic signal frame parsing code about the newly added FPMR frame, avoiding warnings every time one is generated. Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent c1932ca commit f4dcccd

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,14 @@ bool validate_reserved(ucontext_t *uc, size_t resv_sz, char **err)
209209
zt = (struct zt_context *)head;
210210
new_flags |= ZT_CTX;
211211
break;
212+
case FPMR_MAGIC:
213+
if (flags & FPMR_CTX)
214+
*err = "Multiple FPMR_MAGIC";
215+
else if (head->size !=
216+
sizeof(struct fpmr_context))
217+
*err = "Bad size for fpmr_context";
218+
new_flags |= FPMR_CTX;
219+
break;
212220
case EXTRA_MAGIC:
213221
if (flags & EXTRA_CTX)
214222
*err = "Multiple EXTRA_MAGIC";

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#define ZA_CTX (1 << 2)
2020
#define EXTRA_CTX (1 << 3)
2121
#define ZT_CTX (1 << 4)
22+
#define FPMR_CTX (1 << 5)
2223

2324
#define KSFT_BAD_MAGIC 0xdeadbeef
2425

0 commit comments

Comments
 (0)