summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/rseq.h
diff options
context:
space:
mode:
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>2022-11-22 21:39:04 +0100
committerPeter Zijlstra <peterz@infradead.org>2022-12-27 12:52:10 +0100
commit317c8194e6aeb8b3b573ad139fc2a0635856498e (patch)
tree487894b9890601c50b9a966a3708c2922ae78ba8 /include/uapi/linux/rseq.h
parentselftests/rseq: Fix: Fail thread registration when CONFIG_RSEQ=n (diff)
downloadlinux-317c8194e6aeb8b3b573ad139fc2a0635856498e.tar.xz
linux-317c8194e6aeb8b3b573ad139fc2a0635856498e.zip
rseq: Introduce feature size and alignment ELF auxiliary vector entries
Export the rseq feature size supported by the kernel as well as the required allocation alignment for the rseq per-thread area to user-space through ELF auxiliary vector entries. This is part of the extensible rseq ABI. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20221122203932.231377-3-mathieu.desnoyers@efficios.com
Diffstat (limited to '')
-rw-r--r--include/uapi/linux/rseq.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/rseq.h b/include/uapi/linux/rseq.h
index 77ee207623a9..05d3c4cdeb40 100644
--- a/include/uapi/linux/rseq.h
+++ b/include/uapi/linux/rseq.h
@@ -130,6 +130,11 @@ struct rseq {
* this thread.
*/
__u32 flags;
+
+ /*
+ * Flexible array member at end of structure, after last feature field.
+ */
+ char end[];
} __attribute__((aligned(4 * sizeof(__u64))));
#endif /* _UAPI_LINUX_RSEQ_H */