]> git.ipfire.org Git - thirdparty/glibc.git/commit
nptl: clear the whole rseq area before registration
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 14 Feb 2025 18:54:22 +0000 (13:54 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Fri, 21 Feb 2025 22:21:25 +0000 (22:21 +0000)
commit689a62a4217fae78b9ce0db781dc2a421f2b1ab4
treeb826362f3b5463bf593ef654fcbf082be1f2560d
parent41f6684557255c8bdb7b5ec5bfe63c4e6c6cd5cf
nptl: clear the whole rseq area before registration

Due to the extensible nature of the rseq area we can't explictly
initialize fields that are not part of the ABI yet. It was agreed with
upstream that all new fields will be documented as zero initialized by
userspace. Future kernels configured with CONFIG_DEBUG_RSEQ will
validate the content of all fields during registration.

Replace the explicit field initialization with a memset of the whole
rseq area which will cover fields as they are added to future kernels.

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