public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] TUNABLE_SET fixes
@ 2021-02-03 17:34 Siddhesh Poyarekar
  2021-02-03 17:34 ` [PATCH 1/3] Fix casts when setting tunable range Siddhesh Poyarekar
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Siddhesh Poyarekar @ 2021-02-03 17:34 UTC (permalink / raw)
  To: libc-alpha; +Cc: dj, fweimer

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(-)

-- 
2.29.2


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-02-05  2:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-03 17:34 [PATCH 0/3] TUNABLE_SET fixes Siddhesh Poyarekar
2021-02-03 17:34 ` [PATCH 1/3] Fix casts when setting tunable range Siddhesh Poyarekar
2021-02-04 13:44   ` Adhemerval Zanella
2021-02-04 14:55     ` Siddhesh Poyarekar
2021-02-03 17:34 ` [PATCH 2/3] tunables: Remove C type arg from TUNABLE_SET* macros Siddhesh Poyarekar
2021-02-04 17:24   ` Adhemerval Zanella
2021-02-04 18:02     ` Siddhesh Poyarekar
2021-02-04 19:37       ` Adhemerval Zanella
2021-02-04 19:42         ` H.J. Lu
2021-02-05  2:30           ` Siddhesh Poyarekar
2021-02-05  2:31         ` Siddhesh Poyarekar
2021-02-03 17:34 ` [PATCH 3/3] x86: Use SIZE_MAX instead of (long int)-1 for tunable range value Siddhesh Poyarekar
2021-02-04 17:25   ` Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).