Re: [patch 02/12] rseq: Add fields and constants for time slice extension

From: K Prateek Nayak

Date: Mon Sep 22 2025 - 01:57:51 EST


Hello Prakash,

On 9/22/2025 10:58 AM, Prakash Sangappa wrote:
> With use of a new structure member for slice control, could there be discrepancy
> with rseq structure size(older version) registered by libc? In that case the application
> may not be able to use slice extension feature unless Libc’s use of rseq is disabled.

In this case, wouldn't GLIBC's rseq registration fail if presumed
__rseq_size is smaller than the "struct rseq" size?

And if it has allocated a large enough area, then the prctl() should
help to query the slice extension feature's availability.

--
Thanks and Regards,
Prateek