summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2020-03-08 10:22:29 +0000
committermartin <martin@NetBSD.org>2020-03-08 10:22:29 +0000
commit0c8a29c9016415a08c8f2c8a46efa6082daf1ed1 (patch)
treed8eeef11e3799eb655495504ca752c290cf0e914 /lib/libpthread
parentf0d43478d9be6fde780ab31b9fa5e5c9e0f49614 (diff)
Pull up following revision(s) (requested by thorpej in ticket #758):
libexec/ld.elf_so/map_object.c: revision 1.61 libexec/ld.elf_so/headers.c: revision 1.68 libexec/ld.elf_so/rtld.c: revision 1.203 PT_GNU_RELRO segments are arranged such that their vaddr + memsz ends on a linker common page size boundary. However, if the common page size used by the linker is less than the VM page size being used by the kernel, this can end up in the middle of a VM page and when the region is write- protected, this can cause objects in neighboring .data to get incorrectly write-protected, resulting in a crash. Avoid this situation by calculating the end of the RELRO region not by rounding memsz up to the VM page size, but rather by adding vaddr + memsz and then truncating to the VM page size. Fixes PR toolchain/55043. XXX pullup-9
Diffstat (limited to 'lib/libpthread')
0 files changed, 0 insertions, 0 deletions