]> git.ipfire.org Git - thirdparty/glibc.git/commit
nptl: initialize rseq area prior to registration
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 7 Nov 2024 21:23:49 +0000 (22:23 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 7 Nov 2024 21:23:49 +0000 (22:23 +0100)
commit97f60abd25628425971f07e9b0e7f8eec0741235
tree20b20195d5bd7beec6bb49ae2086081157e79003
parentc18de3b76ab679acb5a98e27a60fcb7626729f52
nptl: initialize rseq area prior to registration

Per the rseq syscall documentation, 3 fields are required to be
initialized by userspace prior to registration, they are 'cpu_id',
'rseq_cs' and 'flags'. Since we have no guarantee that 'struct pthread'
is cleared on all architectures, explicitly set those 3 fields prior to
registration.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
nptl/descr.h
sysdeps/unix/sysv/linux/rseq-internal.h