aboutsummaryrefslogtreecommitdiff
path: root/malloc/alloc_buffer_alloc_array.c
diff options
context:
space:
mode:
authorMichael Jeanson <mjeanson@efficios.com>2025-02-14 13:54:22 -0500
committerMichael Jeanson <mjeanson@efficios.com>2025-03-12 19:31:34 +0000
commit3e820e17a8cef84645d83b67abcbc3f88c7fd268 (patch)
tree7fd78cd16906657bcd733a31c356a41537cb3463 /malloc/alloc_buffer_alloc_array.c
parentd8e8342369831808b00324790c8809ba33408ee7 (diff)
downloadglibc-3e820e17a8cef84645d83b67abcbc3f88c7fd268.tar.xz
glibc-3e820e17a8cef84645d83b67abcbc3f88c7fd268.zip
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> (cherry picked from commit 689a62a4217fae78b9ce0db781dc2a421f2b1ab4)
Diffstat (limited to 'malloc/alloc_buffer_alloc_array.c')
0 files changed, 0 insertions, 0 deletions