]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rseq/selftests: Ensure the rseq ABI TLS is actually 1024 bytes
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 11 Mar 2025 19:21:45 +0000 (15:21 -0400)
committerIngo Molnar <mingo@kernel.org>
Wed, 12 Mar 2025 12:19:47 +0000 (13:19 +0100)
commite6644c967d3c076969336bd8a9b85ffb45f677f7
tree6278c54ed206177df6443de319509613ef773296
parentfd881d0a085fc54354414aed990ccf05f282ba53
rseq/selftests: Ensure the rseq ABI TLS is actually 1024 bytes

Adding the aligned(1024) attribute to the definition of __rseq_abi did
not increase its size to 1024, for this attribute to impact the size of
__rseq_abi it would need to be added to the declaration of 'struct
rseq_abi'. We only want to increase the size of the TLS allocation to
ensure registration will succeed with future extended ABI. Use a union
with a dummy member to ensure we allocate 1024 bytes.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/r/20250311192222.323453-1-mjeanson@efficios.com
tools/testing/selftests/rseq/rseq.c