| Message ID | 20260706211524.3801466-1-adhemerval.zanella@linaro.org (mailing list archive) |
|---|---|
| Headers |
Return-Path: <libc-alpha-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4FFB24BA23D5 for <patchwork@sourceware.org>; Mon, 6 Jul 2026 21:16:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4FFB24BA23D5 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=VmL7xo7X X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by sourceware.org (Postfix) with ESMTPS id BFB1B4BA5439 for <libc-alpha@sourceware.org>; Mon, 6 Jul 2026 21:15:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BFB1B4BA5439 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BFB1B4BA5439 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::102f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783372530; cv=none; b=rmqMVXoGfkc7d8yvxsR8ZjqZqrShdeHqfhQZCLHNtHqHXTZ0Yd5Y1GoZx0PYSSAOc68LdKW09Fb4z+tHJLFPVHlLs+bTzm9apcOt7sgWO+vyCSOP/kILuxxM3hOo8y0ttjsdA+RgfTL5p0w5t7yVS4CABIwgbsZ8rDwaaU7N5C0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783372530; c=relaxed/simple; bh=EJy/sNXipEYzwqyGNvbTk9IHGjyUMx9ewFs/qG2FdcE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=pcc4KEmmwZg1xtQhHDMsRAAvuFascQ2BK9N/fhyVmrSLWKOCLfF4SohjjGak1Ha3+hDnqmzn4MAeJFbVrS27BOAg8lIxho7np1XcGKdxPOB1ZDAhv1xeif29DSYzGQPBKo0/ylEEnfYp4zOg29njNtF1IayZAiWTV0GPiJTncA4= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=VmL7xo7X DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BFB1B4BA5439 Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-381216921aaso3163903a91.1 for <libc-alpha@sourceware.org>; Mon, 06 Jul 2026 14:15:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1783372529; x=1783977329; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=eRneCB4a6GnnGsVqOjteq4kN7lIy/1SRHJdrjvfgxzw=; b=VmL7xo7Xam2d6uDsemIz2PgyIC/dJfZQ+5TsQJ67OFfj4byD88c3noP6SCtjMjr2a+ yVASHuRvm5bJMY3MK7x/aKiyHoud7AAvFcKEvENg59Jak+cnI4Y6z3N3b7fmwjtYN+Ly HFkzscES5PGDgKzA6Q+zdLwmDFEIPiXAsIQ5IT1hkHA+/x7VIjErg3LRq9DvU8559FLf FDN+euvXXDFF6ntwTUTUHWDkdctpwzkV0hFShpwoICIufbdb1hC/T7R/tEUMDf8LFWXm eJvmjFhQDyWx1bU90TqSpWxpB7w4e8c9AtInZyXjs0qUJJx+2SkJXTf8UsW1Uk7NwCqD UpQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783372529; x=1783977329; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=eRneCB4a6GnnGsVqOjteq4kN7lIy/1SRHJdrjvfgxzw=; b=bE/psMU5b02LDfMC0J36xm2kyUEAqgqTqzlWf+wuj03IikqxZ0BSYtQ6ukwBqHeE7X DbQ64EOFCPffumMv2lbarx+aUdNOeDXkeZ8MafnFecWiJvYqoshgWs14faTcOJuTIQQm VkoEhoe1LOZ3+U3ZLrEvYsDBAikrC/MreqEf3KJAOWt9GP0K8xBJeGaPudjLHi8SxRdc z+ndfOxvC7lk2VEiVaPgfH1LUlGsy8BKQrhG70QahXM/uwTgn79Y3JIcKpYB5fKW36Lr AYtlt4AyiBAoiAN5zei6GkdT2OZk6NS5vrRCiJScvtJIaG/Qx2EbsiI3jk3Dj8gqJNMt uNRQ== X-Gm-Message-State: AOJu0Yy7Vv+bIK1S/2ybB62R70d9gygldBYL7IxPw/Hh0AJubD17amcj KMLTZmRDrpz/CJhi8DrTdCwKLdF/LsVf2nhkN6sNO1oJDl2m/97T7hId0axmIlsvSDKol+3FWws gPIDd X-Gm-Gg: AfdE7cmu6gjgYjNt1LnjG6T9G4/Q/5cf1wQACg260OwpBxeD4ad9a6Ereved5v/a449 NOpZE3mqlcSZrpJ8w+XIbo9YFqmGgtn8t3lpQ9faQQ4iIYIgZZlRIuqJotbVOKyTWgxPYO1uVwF MuxodpCvAWCbU6ZBgWKQVV57Yif+4HAGQMy24F7c6apgu1fmzFeGlLM39iRqawGvO/HQxO7VCLH j4Puh4ywzKedgJ74zWmpNx4O4ItkCi129jE/FIHc9RuzDeIzFCifxCvPSwBKPlZyQVXqwTJR6IF yjoFCyCXxZ9vPHt5j8Bm0ZEBWmEjXFhedhqjKl/AfOCIKLvhXmzRahpt5s3vC7JoyUEQd+9K/QI NLUqUgns3Z4hHVVakuvlgpNbzpKsanRnHV/bsyjN78If43Jz55cK/3hN+fJECoBuTzahLXlfWGI qXbc44ymYjtKrPmrwrTscLc/3h X-Received: by 2002:a17:90b:4f:b0:381:152b:d596 with SMTP id 98e67ed59e1d1-38756aebca7mr2520888a91.11.1783372528399; Mon, 06 Jul 2026 14:15:28 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:2485:a9ff:45ba:83f5:84f5]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-311747f598dsm517650eec.6.2026.07.06.14.15.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2026 14:15:27 -0700 (PDT) From: Adhemerval Zanella <adhemerval.zanella@linaro.org> To: libc-alpha@sourceware.org Cc: "Andreas K . Huettel" <dilfridge@gentoo.org>, DJ Delorie <dj@redhat.com> Subject: [PATCH 0/8] Fixes for the system-wide tunables support Date: Mon, 6 Jul 2026 18:14:36 -0300 Message-ID: <20260706211524.3801466-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
Fixes for the system-wide tunables support
|
|
Message
Adhemerval Zanella Netto
July 6, 2026, 9:14 p.m. UTC
While going back over the system-wide tunables support (the /etc/tunables.conf data stored in ld.so.cache) I found some minor problems (I missed the last version of that series before it went in). The following are bugfixes and are important for the next release: - Add system-wide tunables: implement overridability - elf: Bound the tunable cache string table against the mapping size - elf: Verify the tunable cache header signature and version - elf: Avoid redundant ld.so.cache reload after first load - elf: Let environment aliases override overridable system-wide tunables The remaining patches are cleanup and documentation with no urgency, but I still think we should have for 2.44 since it is the first version with system-wide tunables. This ison top of DJ patch for system-wide tunable overridability [1]. [1] https://sourceware.org/pipermail/libc-alpha/2026-July/178518.html Adhemerval Zanella (8): elf: Bound the tunable cache string table against the mapping size elf: Verify the tunable cache header signature and version elf: Avoid redundant ld.so.cache reload after first load elf: Let environment aliases override overridable system-wide tunables elf: Emit tunconf "not recognized" warning on stderr manual: Document default AT_SECURE handling for system-wide tunables elf: Remove _dl_unload_cache elf: Remove unused tunable_seclevel_t elf/Makefile | 7 +++- elf/dl-cache.c | 47 +++++++++++++------------ elf/dl-open.c | 5 --- elf/dl-tunable-types.h | 14 -------- elf/dl-tunables.c | 20 +++++++++-- elf/rtld.c | 5 --- elf/tst-tunconf1.c | 24 +++++++++++++ elf/tst-tunconf1.root/etc/tunables.conf | 9 +++++ elf/tunconf.c | 4 +-- manual/tunables.texi | 16 +++++++++ sysdeps/generic/ldsodefs.h | 6 ---- 11 files changed, 100 insertions(+), 57 deletions(-)
Comments
Am Dienstag, 7. Juli 2026, 06:14:36 Japanische Normalzeit schrieb Adhemerval Zanella: > While going back over the system-wide tunables support (the > /etc/tunables.conf data stored in ld.so.cache) I found some minor > problems (I missed the last version of that series before it went in). > > The following are bugfixes and are important for the next release: > > - Add system-wide tunables: implement overridability > - elf: Bound the tunable cache string table against the mapping size > - elf: Verify the tunable cache header signature and version > - elf: Avoid redundant ld.so.cache reload after first load > - elf: Let environment aliases override overridable system-wide tunables Without looking at the code yet, let's add the whole series as desirable and try to get the r-b's and push as quickly as possible?! Any suggestions who to talk to directly? > > The remaining patches are cleanup and documentation with no urgency, but > I still think we should have for 2.44 since it is the first version > with system-wide tunables. > > This ison top of DJ patch for system-wide tunable overridability [1]. > > [1] https://sourceware.org/pipermail/libc-alpha/2026-July/178518.html > > Adhemerval Zanella (8): > elf: Bound the tunable cache string table against the mapping size > elf: Verify the tunable cache header signature and version > elf: Avoid redundant ld.so.cache reload after first load > elf: Let environment aliases override overridable system-wide tunables > elf: Emit tunconf "not recognized" warning on stderr > manual: Document default AT_SECURE handling for system-wide tunables > elf: Remove _dl_unload_cache > elf: Remove unused tunable_seclevel_t > > elf/Makefile | 7 +++- > elf/dl-cache.c | 47 +++++++++++++------------ > elf/dl-open.c | 5 --- > elf/dl-tunable-types.h | 14 -------- > elf/dl-tunables.c | 20 +++++++++-- > elf/rtld.c | 5 --- > elf/tst-tunconf1.c | 24 +++++++++++++ > elf/tst-tunconf1.root/etc/tunables.conf | 9 +++++ > elf/tunconf.c | 4 +-- > manual/tunables.texi | 16 +++++++++ > sysdeps/generic/ldsodefs.h | 6 ---- > 11 files changed, 100 insertions(+), 57 deletions(-) > >
On 06/07/26 22:12, Andreas K. Huettel wrote: > Am Dienstag, 7. Juli 2026, 06:14:36 Japanische Normalzeit schrieb Adhemerval Zanella: >> While going back over the system-wide tunables support (the >> /etc/tunables.conf data stored in ld.so.cache) I found some minor >> problems (I missed the last version of that series before it went in). >> >> The following are bugfixes and are important for the next release: >> >> - Add system-wide tunables: implement overridability >> - elf: Bound the tunable cache string table against the mapping size >> - elf: Verify the tunable cache header signature and version >> - elf: Avoid redundant ld.so.cache reload after first load >> - elf: Let environment aliases override overridable system-wide tunables > > Without looking at the code yet, let's add the whole series as desirable and > try to get the r-b's and push as quickly as possible?! > > Any suggestions who to talk to directly? I would expect that DJ would give me some feedback whether he thinks this fixes would be desirable for this release. Since this is a new feature, I also think it would be better to have a working implementation *without* any know corner cases (even though we can backport the fixes). The 'elf: Bound the tunable cache string table against the mapping size' and 'elf: Verify the tunable cache header signature and version' are both harderning and I think it it should be a requirement. The 'elf: Avoid redundant ld.so.cache reload after first load' is a optimization that avoid reloading the ld.so.cache on some cases, which is another point of this whole mechanism of keeping the cache mapped. Not strictly required, but nice to have it. The 'elf: Let environment aliases override overridable system-wide tunables' is to keep the old environment variable with same expectation of the new new system-wide tunables. Also not strictly required, but I added for completeness. The rest of the patchset can be postponed to next release. > >> >> The remaining patches are cleanup and documentation with no urgency, but >> I still think we should have for 2.44 since it is the first version >> with system-wide tunables. > > >> >> This ison top of DJ patch for system-wide tunable overridability [1]. >> >> [1] https://sourceware.org/pipermail/libc-alpha/2026-July/178518.html >> >> Adhemerval Zanella (8): >> elf: Bound the tunable cache string table against the mapping size >> elf: Verify the tunable cache header signature and version >> elf: Avoid redundant ld.so.cache reload after first load >> elf: Let environment aliases override overridable system-wide tunables >> elf: Emit tunconf "not recognized" warning on stderr >> manual: Document default AT_SECURE handling for system-wide tunables >> elf: Remove _dl_unload_cache >> elf: Remove unused tunable_seclevel_t >> >> elf/Makefile | 7 +++- >> elf/dl-cache.c | 47 +++++++++++++------------ >> elf/dl-open.c | 5 --- >> elf/dl-tunable-types.h | 14 -------- >> elf/dl-tunables.c | 20 +++++++++-- >> elf/rtld.c | 5 --- >> elf/tst-tunconf1.c | 24 +++++++++++++ >> elf/tst-tunconf1.root/etc/tunables.conf | 9 +++++ >> elf/tunconf.c | 4 +-- >> manual/tunables.texi | 16 +++++++++ >> sysdeps/generic/ldsodefs.h | 6 ---- >> 11 files changed, 100 insertions(+), 57 deletions(-) >> >> > >