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

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: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20240306-arm64-2023-dpisa-v5-7-c568edc8ed7f@kernel.orgSigned-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent c1932cac
...@@ -209,6 +209,14 @@ bool validate_reserved(ucontext_t *uc, size_t resv_sz, char **err) ...@@ -209,6 +209,14 @@ bool validate_reserved(ucontext_t *uc, size_t resv_sz, char **err)
zt = (struct zt_context *)head; zt = (struct zt_context *)head;
new_flags |= ZT_CTX; new_flags |= ZT_CTX;
break; break;
case FPMR_MAGIC:
if (flags & FPMR_CTX)
*err = "Multiple FPMR_MAGIC";
else if (head->size !=
sizeof(struct fpmr_context))
*err = "Bad size for fpmr_context";
new_flags |= FPMR_CTX;
break;
case EXTRA_MAGIC: case EXTRA_MAGIC:
if (flags & EXTRA_CTX) if (flags & EXTRA_CTX)
*err = "Multiple EXTRA_MAGIC"; *err = "Multiple EXTRA_MAGIC";
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#define ZA_CTX (1 << 2) #define ZA_CTX (1 << 2)
#define EXTRA_CTX (1 << 3) #define EXTRA_CTX (1 << 3)
#define ZT_CTX (1 << 4) #define ZT_CTX (1 << 4)
#define FPMR_CTX (1 << 5)
#define KSFT_BAD_MAGIC 0xdeadbeef #define KSFT_BAD_MAGIC 0xdeadbeef
......
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