From nobody Fri Apr 3 07:54:12 2026 Received: from smtpout.efficios.com (smtpout.efficios.com [158.69.130.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5867C30AACF for ; Wed, 18 Feb 2026 16:52:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=158.69.130.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771433554; cv=none; b=eyc6Bs3qMX+FeYRyzemMEhInkrrkq1RwzMjSAIN1b9PwSBErXl7y+hKdB6c1jyGP8h9wUBIqJ7lTzJEFlCOvjGLXhoe3u9UkP0EWClxU7n958ao5szb9P7xf5cktPRK9EPjOgDjVbYI1bPbimzS5p50uh/Fs3jeMUornkSJBmd4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771433554; c=relaxed/simple; bh=L1wLMHI0oI0LjxHlc2YwsZo354xzGirQ7xFxSyvfON0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=rjsB5t4J0KwUtclP0IeL+cXiWcX+b+7hxJZ2gto/gbrBxMKiCPnwkyAgW3t8TdwbIlXdSx/Yb0qSWJyQyihLBKAWZnopRU62Bmo4nsF4QUDQrENrqBVYhflCZ/Gw1zOUxheU+/mTSrnjF0R9Lwg1u6dkx1PW3HUjQcTm0DO/mrk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com; spf=pass smtp.mailfrom=efficios.com; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b=WZCP+t1V; arc=none smtp.client-ip=158.69.130.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=efficios.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b="WZCP+t1V" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=smtpout1; t=1771433546; bh=NnvSvLNsHWWpbpKQkIRk4qePKv6sL5zIgZ0CeBrrNOg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WZCP+t1V9b4TIhxlF1rEc1bKJQ8uXer+0Zc685fVIsKfoSqQxq7acH8qD8yn6/3uc bRbzVCCW5w/rrtYkUf6LhOyWIb49aKP/D2c1F8weZLgnjmybbaFXNBRQGcupR572l5 4ID3ySgwfJRRSlx7neWfKkRTYPDSu3/bIUwcA58Dyeu8dTCDtQNlxwEU0UCu7HzgWz eUpR/6CsWFE58GKmHw/51UEQMppIqNTlJcARNYx4JqB5QdJw/V9yNSQWUMnw2SS5YI 9CzZMFsuK1QzOf98qGV2qsMZ9RwjhJdBlyIzk+54B1I9tTsn9PVGK5oaY0C39to9LN daZreBpph968w== Received: from thinkos.internal.efficios.com (mtl.efficios.com [216.120.195.104]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4fGMxk4VVhzFC9; Wed, 18 Feb 2026 11:52:26 -0500 (EST) From: Mathieu Desnoyers To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , Ingo Molnar , Thomas Gleixner , Carlos O'Donell , Florian Weimer , Michael Jeanson Subject: [PATCH v1 1/2] rseq: Clarify rseq registration rseq_size bound check comment Date: Wed, 18 Feb 2026 11:52:13 -0500 Message-Id: <20260218165214.1164084-2-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260218165214.1164084-1-mathieu.desnoyers@efficios.com> References: <20260218165214.1164084-1-mathieu.desnoyers@efficios.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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: ee3e3ac05c26 ("rseq: Introduce extensible rseq ABI") Signed-off-by: Mathieu Desnoyers CC: Peter Zijlstra (Intel) CC: Ingo Molnar CC: Thomas Gleixner --- kernel/rseq.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/rseq.c b/kernel/rseq.c index b0973d19f366..e349f86cc945 100644 --- a/kernel/rseq.c +++ b/kernel/rseq.c @@ -449,8 +449,9 @@ SYSCALL_DEFINE4(rseq, struct rseq __user *, rseq, u32, = rseq_len, int, flags, u32 * auxiliary vector AT_RSEQ_ALIGN. If rseq_len is the original rseq * size, the required alignment is the original struct rseq alignment. * - * In order to be valid, rseq_len is either the original rseq size, or - * large enough to contain all supported fields, as communicated to + * The rseq_len is required to be greater or equal to the original rseq + * size. In order to be valid, rseq_len is either the original rseq size, + * or large enough to contain all supported fields, as communicated to * user-space through the ELF auxiliary vector AT_RSEQ_FEATURE_SIZE. */ if (rseq_len < ORIG_RSEQ_SIZE || --=20 2.39.5