]> git.ipfire.org Git - thirdparty/glibc.git/commit
nptl: initialize cpu_id_start prior to rseq registration
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 20 Nov 2024 19:15:42 +0000 (14:15 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Wed, 4 Dec 2024 21:48:04 +0000 (21:48 +0000)
commit091dd12831792cef16eee24fe240c73a25b47a1d
treea8c801b49628007d7b0e77af3de2cd73f4a48898
parent9b9545ba27613fa41efdfa7965b6fc580bf1b919
nptl: initialize cpu_id_start prior to rseq registration

When adding explicit initialization of rseq fields prior to
registration, I glossed over the fact that 'cpu_id_start' is also
documented as initialized by user-space.

While current kernels don't validate the content of this field on
registration, future ones could.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
(cherry picked from commit d9f40387d3305d97e30a8cf8724218c42a63680a)
sysdeps/unix/sysv/linux/rseq-internal.h