]> git.ipfire.org Git - thirdparty/glibc.git/commit
Linux: Add tests that check that TLS and rseq area are separate
authorFlorian Weimer <fweimer@redhat.com>
Thu, 16 Jan 2025 19:02:42 +0000 (20:02 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 16 Jan 2025 19:02:42 +0000 (20:02 +0100)
commit37b9a5aacc3156aef81a461deaf703f49531deac
treef4e8b87e5a19a31900f743013a16e13a5bad0e52
parentcbd9fd236981717d3d4ee942986ea912e9707c32
Linux: Add tests that check that TLS and rseq area are separate

The new test elf/tst-rseq-tls-range-4096-static reliably detected
the extra TLS allocation problem (tcb_offset was dropped from
the allocation size) on aarch64.  It also failed with a crash
in dlopen *before* the extra TLS changes, so TLS alignment with
static dlopen was already broken.

Reviewed-by: Michael Jeanson <mjeanson@efficios.com>
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/tst-rseq-tls-range-4096-static.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/tst-rseq-tls-range-4096.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/tst-rseq-tls-range-mod.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/tst-rseq-tls-range-static.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/tst-rseq-tls-range.c [new file with mode: 0644]