public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] make all tunables SXID_ERASE
@ 2023-10-03 20:11 Siddhesh Poyarekar
  2023-10-03 20:11 ` [PATCH 1/2] Make all malloc " Siddhesh Poyarekar
  2023-10-03 20:11 ` [PATCH 2/2] aarch64: Make glibc.mem.tagging SXID_ERASE Siddhesh Poyarekar
  0 siblings, 2 replies; 23+ messages in thread
From: Siddhesh Poyarekar @ 2023-10-03 20:11 UTC (permalink / raw)
  To: libc-alpha; +Cc: adhemerval.zanella, fweimer, carlos

The tunable privilege levels were a retrofit to try and keep the malloc
tunable envvar behaviour unchanged.  In retrospect, especially in the
light of CVE-2023-4911, I wonder if this feature of carrying allocator
tuning knobs (and more generally, tunables in general) has much value.

This patchset takes the first step by proposing to make all existing
tunables SXID_ERASE.  This will have the effect of deactivating tunables
parsing in the at_secure context for all current tunables, making it
trivial to drop GLIBC_TUNABLES form unsecvars.h in future, hopefully
soon.

Further, this paves the way for future cleanups to tunables parsing,
where we could simply skip over tunables parsing for
__libc_enable_secure instead of the complicated dance we're doing today.

Tested on x86_64.

Siddhesh Poyarekar (2):
  Make all malloc tunables SXID_ERASE
  aarch64: Make glibc.mem.tagging SXID_ERASE

 elf/dl-tunables.list          | 13 +++----------
 elf/tst-env-setuid-tunables.c | 25 ++-----------------------
 elf/tst-env-setuid.c          |  4 ++--
 sysdeps/generic/unsecvars.h   |  7 +++++++
 4 files changed, 14 insertions(+), 35 deletions(-)

-- 
2.41.0


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

end of thread, other threads:[~2023-10-31 19:59 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-03 20:11 [PATCH 0/2] make all tunables SXID_ERASE Siddhesh Poyarekar
2023-10-03 20:11 ` [PATCH 1/2] Make all malloc " Siddhesh Poyarekar
2023-10-03 20:11 ` [PATCH 2/2] aarch64: Make glibc.mem.tagging SXID_ERASE Siddhesh Poyarekar
2023-10-04  7:29   ` Szabolcs Nagy
2023-10-04 11:59     ` Siddhesh Poyarekar
2023-10-04 14:04       ` Szabolcs Nagy
2023-10-04 14:23         ` Siddhesh Poyarekar
2023-10-04 14:51           ` Szabolcs Nagy
2023-10-04 14:53             ` Siddhesh Poyarekar
2023-10-04 15:05               ` Siddhesh Poyarekar
2023-10-04 17:01             ` Adhemerval Zanella Netto
2023-10-05  8:19               ` Szabolcs Nagy
2023-10-05 12:55                 ` Siddhesh Poyarekar
2023-10-05 13:59                   ` Szabolcs Nagy
2023-10-05 14:05                     ` Siddhesh Poyarekar
2023-10-05 18:31                     ` Zack Weinberg
2023-10-05 19:11                       ` Siddhesh Poyarekar
2023-10-06 12:25                         ` Zack Weinberg
2023-10-06 12:41                           ` Siddhesh Poyarekar
2023-10-06 17:10                             ` Adhemerval Zanella Netto
2023-10-06 18:04                               ` Siddhesh Poyarekar
2023-10-08 19:51                       ` Michael Hudson-Doyle
2023-10-31 19:58                         ` Zack Weinberg

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