]> 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)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 25 Nov 2024 18:42:14 +0000 (19:42 +0100)
commitd9f40387d3305d97e30a8cf8724218c42a63680a
tree8b75a4c7e8e106efba07044de12ca19d072c255b
parent6976cd3124c0bb7ef55b6eb23ac0cb12ac514138
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>
sysdeps/unix/sysv/linux/rseq-internal.h