From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2085.outbound.protection.outlook.com [40.107.105.85]) by sourceware.org (Postfix) with ESMTPS id 9649D384D147 for ; Thu, 27 Oct 2022 16:45:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9649D384D147 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=bjpJ5G5nFMTUme7fPjXthoVzGD8l7TDa7wxSSTqrjYpV534Jrk2ssyxZinJUM1ut11xXgR9tEOweXxN0DJ4RdQZpXttqbUSpcuXF+4ZItxK309xPKiKc5FZTXi+z7M9suTGZFMNzRo7BNUNnNirosZqkSLA6pggIgvVT76Y2ju6Db5bxdwY+7K+5ZxXWYzB6+iqswhwJaCos/LutCnnOM/5OsGwGURpn2cUgwfPTifZBVHGzOoyy8+OIHO0zdhVungK9DghXN0h3PHoclWPbDo6UQ+d0S9a2K66SVL5yq3wV9KxmvrHlR3+OoAHNXGMIebN4J4657PjzTt02kGOOPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WLzvegaJ6iHjdozzH3YIXviEgRTbv31i7dYrWnh90tg=; b=H22hU61zV+0dens+wPs5xrbKY6k1bfgYXyA4HkbepCyWPvmPmclcMO5EH8lC90lz/KXOP0s3N8baLgPEQvdO3z9vhwFPbtWluVUEcsfk6mjy39U1jq9AJKLq4QWBDHA61tTPOVJgs6/9op3QEWAuy2ok7PcycHoQ2YFO+qXoitb4/mYvLg7NWd/OV+KhmeYqV49xMqvQZe42ockkwqeVhCw/vFKpK9nfwkHJCDLTAe11InqWcr6iLoiOAjJOyqQ5iV4jwENpCpJbvTG0lgqszC3wpBgm0I02Ztr5YYJ5CWHkDukcJUzfFu8ZllBjBqt4fZuRllUTHYghDRfedLWRcw== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WLzvegaJ6iHjdozzH3YIXviEgRTbv31i7dYrWnh90tg=; b=xBpvEQB/PgAGIjrqzDcZv9CZqhOlI7eS8U1CuxzUw9Khul5MdYLaIg1AV/sN2gAiiJJp+nQnhNfnzFgEMYruERMbrQpFz/jAP1uUAucnAKMvhDDHqeEGe6mfhowG7PU1V78VF9olJUlTv9g3lj1dS+EmVxSzCfVKSMfcWg01cEw= Received: from AS8P189CA0033.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:458::16) by PAVPR08MB9555.eurprd08.prod.outlook.com (2603:10a6:102:312::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.21; Thu, 27 Oct 2022 16:45:35 +0000 Received: from AM7EUR03FT035.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:458:cafe::c6) by AS8P189CA0033.outlook.office365.com (2603:10a6:20b:458::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.28 via Frontend Transport; Thu, 27 Oct 2022 16:45:35 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT035.mail.protection.outlook.com (100.127.141.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.20 via Frontend Transport; Thu, 27 Oct 2022 16:45:35 +0000 Received: ("Tessian outbound 6c699027a257:v130"); Thu, 27 Oct 2022 16:45:34 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 4022aa546305b1c1 X-CR-MTA-TID: 64aa7808 Received: from 4b8923ed0fda.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 902088E7-E290-4F08-A916-F71D343EAA51.1; Thu, 27 Oct 2022 16:45:27 +0000 Received: from EUR03-DBA-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 4b8923ed0fda.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 27 Oct 2022 16:45:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QKVqoB7P49P9SxLd6d5MpAk+uFO7Z311FGR6P6rhPHeqh8Bt2aGQ2+f+uzi/zE5CdRsCVQSVEsnBDhP8FdMAuINJVSiisRRb9KKOkfEFhagSV0iqEgnVyiFrt4tMOT3w7yS/xM+EUx80jTfNeek+AIMOPPrH+QigPTBWbZ4V1YmEu6MDjtFfRN5EleITdzeIy4nCGzPU30GIBK4pKkIJRl87tj2ZnkFSw4B2eE6yI6kFuC/HSCYPcYh7wsAMAt6TD1F/e5ZZX4RwdHR/4N+MkHgVUTsoHTfCwqR1H5YGu/1Ns00lemOWB2+OiyF1IWyn5EPsppr9CRlRtJwvWDq0MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WLzvegaJ6iHjdozzH3YIXviEgRTbv31i7dYrWnh90tg=; b=Iki7pY/bMidFi7P6ZzKDG+X5lTPYpamL8LF/+Z7/V7aUqo7bLINwx0wmKEjGEYpHYFgjulSfoEoO1agRlNDpsokgvAg6gDS9974UBR7vs/u1uCYnV/y/tD0TPIcDwdM/tW9DABNHIUfO2uTTxb3Io5VAfMi1YpXmdbt5nZ2IdCP3QeG15LJnOmY4xxhbtEc3PWhgdQ5Wr8DiFRJqnKHsBsFaATxPmwlN6rb76a7Fj9lByg6edDEM5BId+EVdnK4ITGQAhNPaqZp+9aDtpagmZWowdPOHtrgL1NsFoY7S1EqwcaR69BWrMsPPAm2FjJTKvUAFye4BqIt0NqNAduQa8g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WLzvegaJ6iHjdozzH3YIXviEgRTbv31i7dYrWnh90tg=; b=xBpvEQB/PgAGIjrqzDcZv9CZqhOlI7eS8U1CuxzUw9Khul5MdYLaIg1AV/sN2gAiiJJp+nQnhNfnzFgEMYruERMbrQpFz/jAP1uUAucnAKMvhDDHqeEGe6mfhowG7PU1V78VF9olJUlTv9g3lj1dS+EmVxSzCfVKSMfcWg01cEw= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from DB9PR08MB7179.eurprd08.prod.outlook.com (2603:10a6:10:2cc::19) by DB9PR08MB8435.eurprd08.prod.outlook.com (2603:10a6:10:3d5::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.28; Thu, 27 Oct 2022 16:45:26 +0000 Received: from DB9PR08MB7179.eurprd08.prod.outlook.com ([fe80::8999:7c8d:d088:d198]) by DB9PR08MB7179.eurprd08.prod.outlook.com ([fe80::8999:7c8d:d088:d198%5]) with mapi id 15.20.5723.029; Thu, 27 Oct 2022 16:45:26 +0000 Date: Thu, 27 Oct 2022 17:45:10 +0100 From: Szabolcs Nagy To: Florian Weimer Cc: Szabolcs Nagy via Libc-alpha Subject: Re: [PATCH 18/20] Fix elf/tst-dlmopen-twice to support enough link namespaces Message-ID: References: <1adc193aeb267bdb147428b747e66c77cfd447d0.1666877952.git.szabolcs.nagy@arm.com> <874jvpjku8.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <874jvpjku8.fsf@oldenburg.str.redhat.com> X-ClientProxiedBy: LO2P123CA0057.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1::21) To DB9PR08MB7179.eurprd08.prod.outlook.com (2603:10a6:10:2cc::19) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB9PR08MB7179:EE_|DB9PR08MB8435:EE_|AM7EUR03FT035:EE_|PAVPR08MB9555:EE_ X-MS-Office365-Filtering-Correlation-Id: 1074ef0a-e195-48bc-4f9a-08dab83aab7d x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: lmxW//hIioXmkNDvdMsD4dc6k6SkxV+uWBk+HN7md6eSXLNTbE4xcI0CSoSQfW38OSnT/FHXA5dUv9du7Cgdx90GM+yIKgYR6bVeqhAhnk+MgrFalU50NhvhLhHozBJcn7YT1porBoEhXlR1r9q8ouFd1pBojkq8P0by5LJPVgxdlKv+6ulsbrQg2T9AHJNds3iYJqcqE58hmW+a6KfsJz+1Tvx3rSAVY816z/5bMX979PfIWwc1QVfv11KNvZL5cmdBH+aVOfw24qbXObJZawaY5ewfJ+T3W0H9GIlCwndBkgWH3zAuTtUD/Ar9hjeSML1SHKCliPXz7H44LyqEUwcEfAYd/L20PM3k+4x1uGEZGgeqC+SoNbHOnbfZPrw1QcIJN6rfXl0YkBARpfFB56DTLQI/vicohkGhU7DM/292yxWGSVx51et/01zNe5ptutKxBeV5hipQQkNvZb3hT1gj9LO/7+4WtvtDebY8n9+Y3WcCVgitgcblSxK8vJMGsU4wVKz6FPdniws0CL0Qo4A9KTw70H00W9fpnaXx43bNDrU/lSfEevM09jEe+byiOssgR69FUEpIwmAn/t88sgkyDvOjyJkECJ4HDF28EV7jFmgK7Kx+KEsMQx7oV0FypJorOnC+tQ5d7E8SbIu0haPoR+8sTfyLunHDi0QmB0h9sm42oOvXUS8Qs3JDNYEv X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR08MB7179.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(136003)(366004)(396003)(376002)(39860400002)(451199015)(36756003)(6666004)(66476007)(86362001)(66556008)(6506007)(4326008)(8676002)(316002)(6916009)(44832011)(38100700002)(2616005)(66946007)(41300700001)(2906002)(6486002)(6512007)(186003)(8936002)(5660300002)(26005)(83380400001)(478600001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB8435 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT035.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: c494fac3-4734-48b9-b536-08dab83aa55e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zfRIKvgQB2ucQG27zTfRHv5rx/o26V9lkWjJ+gboBh6Efz4V7svchQnwY5+AewMnxsAsXv+drz4BEc3Jpm4yZ+QXQo1kPjKU1qAIhFs42xipaMLsLrf0Utwlza2mYTKc8ZVr+oZ7ZK/FPSzU0HuUOtTKdWv6Vac9R6w8eO+Y0elH0M1lzPiiZCUJE2dF9mbrS62QVEILRt/iFhCgeXgHNC+YdaUk2rl54pOJd9WPHgrXs935o11IJZtx4VT+bIwLKkI9fpF5qdCtL7I1KBpXmhP3a9VwBSEdSAJmN/050ZaanF0ntYPzlCcbhLeoyb0q5kzxf1jEiBQ0KYQKt+Gb0a2lvm8u+NgwztfGtwDG9k9+F8SOD2XR4o/HGNtIUmKdOPCjahRf5Iv0fzubfAKZPBEijBIYho7NCP0ou0xhBejdL0ty3x617aFABr953gBut39G+F2BR9hHAC5nNIKu5w8Um0pMiTLLa4atSHAfbv2dZHWb+QneqW9rxDEhZJ5JXF5QVuJhDDUC8uOMKR9tDddZRXWkLuAZHvGXX4Rm/F0lEVNEIKgE6CmjAR35/LHBOrbQn9/P7lemUvS9A+ngWWmGmMSxJ6ngK45wsct36SXDwUGLkmaUg0vUnIwWglLAdMzSvg3Nln3YBe/aqzmfQej+EMoyKbBmnUX+khHk83POBHaFeZ92YBPnIP44tjhgol4T7I/adK5ZCUA1VXtQ7N3HX+sbJyeOsUtYGiec2O3tRpaEoFFSvTTP1lDw86ACRo64Kom1rk7yLAi8MG2iOg== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230022)(4636009)(396003)(376002)(39860400002)(346002)(136003)(451199015)(36840700001)(46966006)(40470700004)(478600001)(6486002)(70586007)(6506007)(44832011)(70206006)(4326008)(316002)(8676002)(40480700001)(6666004)(40460700003)(5660300002)(41300700001)(6862004)(8936002)(26005)(6512007)(2616005)(86362001)(186003)(36756003)(2906002)(36860700001)(82310400005)(83380400001)(356005)(336012)(81166007)(47076005)(82740400003);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2022 16:45:35.0451 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1074ef0a-e195-48bc-4f9a-08dab83aab7d X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT035.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB9555 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,GIT_PATCH_0,KAM_DMARC_NONE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: The 10/27/2022 18:24, Florian Weimer wrote: > * Szabolcs Nagy via Libc-alpha: > > > The test dlmopens 10 namespaces recursively, which requires a glibc > > tunable setting, otherwise it may run out of static TLS. > > --- > > elf/Makefile | 1 + > > elf/tst-dlmopen-twice.c | 2 +- > > 2 files changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/elf/Makefile b/elf/Makefile > > index 7b50ccc07a..ace15dc11b 100644 > > --- a/elf/Makefile > > +++ b/elf/Makefile > > @@ -2969,6 +2969,7 @@ tst-audit-tlsdesc-ENV = LD_AUDIT=$(objpfx)tst-auditmod-tlsdesc.so > > $(objpfx)tst-audit-tlsdesc-dlopen.out: $(objpfx)tst-auditmod-tlsdesc.so > > tst-audit-tlsdesc-dlopen-ENV = LD_AUDIT=$(objpfx)tst-auditmod-tlsdesc.so > > > > +tst-dlmopen-twice-ENV = GLIBC_TUNABLES=glibc.rtld.nns=10 > > $(objpfx)tst-dlmopen-twice.out: \ > > $(objpfx)tst-dlmopen-twice-mod1.so \ > > $(objpfx)tst-dlmopen-twice-mod2.so > > diff --git a/elf/tst-dlmopen-twice.c b/elf/tst-dlmopen-twice.c > > index 70c71fe19c..dfa58b1505 100644 > > --- a/elf/tst-dlmopen-twice.c > > +++ b/elf/tst-dlmopen-twice.c > > @@ -46,7 +46,7 @@ do_test (void) > > recurse (1); > > > > /* Then with nesting. The constant needs to be less than the > > - internal DL_NNS namespace constant. */ > > + glibc.rtld.nns tunable (which is between 1 and DL_NNS). */ > > recurse (10); > > return 0; > > } > > This doesn't work if configured with --disable-tunables. > > I suspect this is merely a symptom. The static TLS sizing defaults > should allow creating DL_NNS namespaces? the tunable defaults to 4, DL_NNS is 16 and that's the max value of the tunable (since that's the static namespace array size)