[Bug dynamic-link/34348] FAIL: elf/tst-thp-1 if THP is disabled in kernel
"cvs-commit at gcc dot gnu.org via Glibc-bugs" <[email protected]> Wed, 15 Jul 2026 11:26:37 +0000
| Newsgroups | gmane.comp.lib.glibc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://sourceware.org/bugzilla/show_bug.cgi?id=3D34348 --- Comment #1 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by H.J. Lu <[email protected]>: https://sourceware.org/git/gitweb.cgi?p=3Dglibc.git;h=3De03cefb56b748139def= 60d97eea805a4a303e91e commit e03cefb56b748139def60d97eea805a4a303e91e Author: H.J. Lu <[email protected]> Date: Sat Jul 4 08:17:05 2026 +0800 thp: Disable THP if THP isn't supported by kernel Since DL_MAP_DEFAULT_THP_PAGESIZE is defined for x86-64, THP control is to set to madvise by default. If THP is disabled in x86-64 kernel, madvise (..., MADV_HUGEPAGE) returns -EINVAL to indicate that THP isn't supported. Add _dl_thp_madvise to disable THP in this case. This fixes BZ #34348. Signed-off-by: H.J. Lu <[email protected]> Reviewed-by: Adhemerval Zanella <[email protected]> --=20 You are receiving this mail because: You are on the CC list for the bug.=