From nobody Fri Apr 17 06:16:37 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 AA3F03612F8; Mon, 23 Feb 2026 10:25:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771842321; cv=none; b=WZ6K+1JIE52rXhmXxax4wTva5AaD0G0yTJfNCWyrYg+fAz3XV72ErOXqEtODpoIkgf5MGkXA7bsjrC44p1XDLkUK3iIn6r8KK6V6n3YchiNlN/nziPJA4H9s2cBNOmwQENBPzfLv64x2Xv1TnONMLZ0nK9L2KzuSl0eWfhc9MuY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771842321; c=relaxed/simple; bh=caHMbzQ1ev64ChD57ooXvOWWrFuEPpcGMivmnwKco6s=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=WLosFei6Z7jRQA4KwWlezyr9D8tUNsFjhLFDVVx0w+i+xov2Lq4f/Zu7OuKicNjZkLqPr060H3kTaRAIJXN5D249K/9L6eQWZo3unTry1DAhss6UfysqZU4d4nP39gHAXGWqYv5bs6hm7fBzEONUfRLr758hhPY5/8lIRSfpSrQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ZPRbqXtx; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=PHmA62Pe; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ZPRbqXtx"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="PHmA62Pe" Date: Mon, 23 Feb 2026 10:25:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1771842319; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Wyubn9SAzzo+1Xj5WQYAdV+OoJ8upuwLZb4YaiTbqTQ=; b=ZPRbqXtxnOF3G/jFIFZiOue7dgHm+Q0TtjklIA6ORtPX/hOJAFrrdadFprd4/ypsmeasXC Dr2RFiPMx5AWgZh4L6lJv9z2c5j8E2ATuOdeVe4nG3/YtQkEtZ9rmZTZcJ6p/Qz1E128wL J2s9eVfd8n8cQ3WoivwMbySFp2wNpgIcmHEvpnQrmUwIfxtW1+RYTFfm/I/suEUWN1t7kk pWQANymefVrrvTHWLbuFFcegIIES9y+BZYc/oyPGn3LZkALjlHvOy/xwe9nSBesreg+f+Q c8hVybW2imIUfUF+7F7q63vc9hLC/GpZV4JLnZB9r7zErWwDO1SOgjCWYL8MHg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1771842319; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Wyubn9SAzzo+1Xj5WQYAdV+OoJ8upuwLZb4YaiTbqTQ=; b=PHmA62Pe/LLLp8V09j/ysBT9LLWTjl6DyhC9UrXkWTw4aMw5jykvqVq/dJRoGON+UB2Nwx YkrAnsNBFOIzroDw== From: "tip-bot2 for Mathieu Desnoyers" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/urgent] rseq: Clarify rseq registration rseq_size bound check comment Cc: Mathieu Desnoyers , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260220200642.1317826-2-mathieu.desnoyers@efficios.com> References: <20260220200642.1317826-2-mathieu.desnoyers@efficios.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177184231835.1647592.12906093332068089605.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the sched/urgent branch of tip: Commit-ID: 26d43a90be81fc90e26688a51d3ec83188602731 Gitweb: https://git.kernel.org/tip/26d43a90be81fc90e26688a51d3ec8318= 8602731 Author: Mathieu Desnoyers AuthorDate: Fri, 20 Feb 2026 15:06:40 -05:00 Committer: Peter Zijlstra CommitterDate: Mon, 23 Feb 2026 11:19:19 +01:00 rseq: Clarify rseq registration rseq_size bound check comment 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 Signed-off-by: Peter Zijlstra (Intel) Link: https://patch.msgid.link/20260220200642.1317826-2-mathieu.desnoyers@e= fficios.com --- kernel/rseq.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/rseq.c b/kernel/rseq.c index b0973d1..e349f86 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 ||