about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/bits
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2022-02-15 06:57:11 -0800
committerH.J. Lu <hjl.tools@gmail.com>2022-02-21 07:57:18 -0800
commit2c0915cbf570cb9c8a65f1d20a55c5a7238e5b63 (patch)
treec82915454d6d93b8ad59acee9ae738536c3e4fc8 /sysdeps/unix/sysv/linux/bits
parent949ad78a189194048df8a253bb31d1d11d919044 (diff)
downloadglibc-2c0915cbf570cb9c8a65f1d20a55c5a7238e5b63.tar.gz
glibc-2c0915cbf570cb9c8a65f1d20a55c5a7238e5b63.tar.xz
glibc-2c0915cbf570cb9c8a65f1d20a55c5a7238e5b63.zip
elf: Check invalid hole in PT_LOAD segments [BZ #28838]
Changes in v2:

1. Update commit log.

commit 163f625cf9becbb82dfec63a29e566324129c0cd
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Dec 21 12:35:47 2021 -0800

    elf: Remove excessive p_align check on PT_LOAD segments [BZ #28688]

removed the p_align check against the page size.  It caused the loader
error or crash on elf/tst-p_align3 when loading elf/tst-p_alignmod3.so,
which has the invalid p_align in PT_LOAD segments, added by

commit d8d94863ef125a392b929732b37e07dc927fbcd1
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Dec 21 13:42:28 2021 -0800

The loader failure caused by a negative length passed to __mprotect is
random, depending on architecture and toolchain.  Update _dl_map_segments
to detect invalid holes.  This fixes BZ #28838.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/bits')
0 files changed, 0 insertions, 0 deletions