Re: [patch V6 27/31] rseq: Implement fast path for exit to user

From: Mathieu Desnoyers

Date: Tue Oct 28 2025 - 12:09:54 EST


On 2025-10-27 04:45, Thomas Gleixner wrote:
[...]
+ * would be exploitable at least on x86, and also against a rouge CS

rouge -> rogue

+ * descriptor by checking the signature at the abort IP. Any fallout from
+ * invalid critical section descriptors is a user space problem. The debug
+ * case provides the full set of checks and terminates the task if a
+ * condition is not met.
+ *
+ * In case of a fault or an invalid value, this sets TIF_NOTIFY_RESUME and
+ * tells the caller to loop back into exit_to_user_mode_loop(). The rseq
+ * slow path there will handle the fail.

fail -> failure

Other than those nits:

Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx>

--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com