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:24:43 +0000
commite22c132484ea49be0478e4dcbd108d433d70f64c (patch)
tree14757aced3bc6579009919f3c90c4e261d0c7cce /malloc/alloc_buffer_alloc_array.c
parent33bfd9020fdad925297c9e133055bd8804028f32 (diff)
downloadglibc-e22c132484ea49be0478e4dcbd108d433d70f64c.tar.xz
glibc-e22c132484ea49be0478e4dcbd108d433d70f64c.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