[0/3] TUNABLE_SET fixes

Message ID 20210203173406.2075480-1-siddhesh@sourceware.org
Headers
Series TUNABLE_SET fixes |

Message

Siddhesh Poyarekar Feb. 3, 2021, 5:34 p.m. UTC
  This series fixes the setting of tunable values and ranges from within
glibc through the TUNABLE_SET* macros.  The current way will result in
overreads when reading 4 byte values since do_tunable_update_val always
reads an 8 byte value.  This also results in simplification of the
TUNABLE_SET* macros since they no longer need a type to be passed.

Siddhesh Poyarekar (3):
  Fix casts when setting tunable range
  tunables: Remove C type arg from TUNABLE_SET* macros
  x86: Use SIZE_MAX instead of (long int)-1 for tunable range value

 elf/dl-tunables.c                             | 10 +++----
 elf/dl-tunables.h                             | 29 +++++++++----------
 manual/README.tunables                        | 16 +++++-----
 .../unix/sysv/linux/aarch64/cpu-features.c    |  2 +-
 sysdeps/x86/dl-cacheinfo.h                    | 19 +++++-------
 5 files changed, 34 insertions(+), 42 deletions(-)