History

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.

Mathieu Desnoyers committed 3 years ago

Commit 317c8191 parent 4842dad3 files · +12 −0Browse files

Showing the changes to include/uapi (2 of 3 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/auxvec.h +2 −0
  2. include/uapi/linux/rseq.h +5 −0
include/uapi/linux/auxvec.h+2−0
@@ -30,6 +30,8 @@ · 29 unmodified lines
3030 * differ from AT_PLATFORM. */
3131 #define AT_RANDOM 25 /* address of 16 random bytes */
3232 #define AT_HWCAP2 26 /* extension of AT_HWCAP */
33+#define AT_RSEQ_FEATURE_SIZE 27 /* rseq supported feature size */
34+#define AT_RSEQ_ALIGN 28 /* rseq allocation alignment */
3335
3436 #define AT_EXECFN 31 /* filename of program */
3537
include/uapi/linux/rseq.h+5−0
@@ -130,6 +130,11 @@ struct rseq { · 129 unmodified lines
130130 * this thread.
131131 */
132132 __u32 flags;
133+
134+ /*
135+ * Flexible array member at end of structure, after last feature field.
136+ */
137+ char end[];
133138 } __attribute__((aligned(4 * sizeof(__u64))));
134139
135140 #endif /* _UAPI_LINUX_RSEQ_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t