[all-commits] [llvm/llvm-project] 4981bc: [OpenMP] Fixup bugs found during fuzz testing (#14...
Jonathan Peyton via All-commits
all-commits at lists.llvm.org
Mon Jul 21 14:50:06 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4981bc24cff3344d477af04591b699da466e10b8
https://github.com/llvm/llvm-project/commit/4981bc24cff3344d477af04591b699da466e10b8
Author: Jonathan Peyton <jonathan.l.peyton at intel.com>
Date: 2025-07-21 (Mon, 21 Jul 2025)
Changed paths:
M openmp/runtime/src/include/omp_lib.F90.var
M openmp/runtime/src/include/omp_lib.h.var
M openmp/runtime/src/kmp_affinity.cpp
M openmp/runtime/src/kmp_barrier.cpp
M openmp/runtime/src/kmp_barrier.h
M openmp/runtime/src/kmp_ftn_entry.h
M openmp/runtime/src/kmp_i18n.cpp
M openmp/runtime/src/kmp_lock.cpp
M openmp/runtime/src/kmp_runtime.cpp
M openmp/runtime/src/kmp_settings.cpp
M openmp/runtime/src/kmp_str.cpp
A openmp/runtime/test/env/check_certain_values.c
A openmp/runtime/test/tasking/no_task_barrier.c
Log Message:
-----------
[OpenMP] Fixup bugs found during fuzz testing (#143455)
A lot of these only trip when using sanitizers with the library.
* Insert forgotten free()s
* Change (-1) << amount to 0xffffffffu as left shifting a negative is UB
* Fixup integer parser to return INT_MAX when parsing huge string of
digits. e.g., 452523423423423423 returns INT_MAX
* Fixup range parsing for affinity mask so integer overflow does not
occur
* Don't assert when branch bits are 0, instead warn user that is invalid
and use the default value.
* Fixup kmp_set_defaults() so the C version only uses null terminated
strings and the Fortran version uses the string + size version.
* Make sure the KMP_ALIGN_ALLOC is power of two, otherwise use
CACHE_LINE.
* Disallow ability to set KMP_TASKING=1 (task barrier) this doesn't work
and hasn't worked for a long time.
* Limit KMP_HOT_TEAMS_MAX_LEVEL to 1024, an array is allocated based on
this value.
* Remove integer values for OMP_PROC_BIND. The specification only allows
strings and CSV of strings.
* Fix setting KMP_AFFINITY=disabled + OMP_DISPLAY_AFFINITY=TRUE
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list