Skip to content

Commit 72d6f6c

Browse files
compudjSasha Levin
authored andcommitted
rseq: Clarify rseq registration rseq_size bound check comment
[ Upstream commit 26d43a9 ] The rseq registration validates that the rseq_size argument is greater or equal to 32 (the original rseq size), but the comment associated with this check does not clearly state this. Clarify the comment to that effect. Fixes: ee3e3ac ("rseq: Introduce extensible rseq ABI") Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://patch.msgid.link/20260220200642.1317826-2-mathieu.desnoyers@efficios.com Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 109e534 commit 72d6f6c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

kernel/rseq.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,9 @@ SYSCALL_DEFINE4(rseq, struct rseq __user *, rseq, u32, rseq_len, int, flags, u32
428428
* auxiliary vector AT_RSEQ_ALIGN. If rseq_len is the original rseq
429429
* size, the required alignment is the original struct rseq alignment.
430430
*
431-
* In order to be valid, rseq_len is either the original rseq size, or
432-
* large enough to contain all supported fields, as communicated to
431+
* The rseq_len is required to be greater or equal to the original rseq
432+
* size. In order to be valid, rseq_len is either the original rseq size,
433+
* or large enough to contain all supported fields, as communicated to
433434
* user-space through the ELF auxiliary vector AT_RSEQ_FEATURE_SIZE.
434435
*/
435436
if (rseq_len < ORIG_RSEQ_SIZE ||

0 commit comments

Comments
 (0)