From patchwork Thu Oct 27 15:33:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 59548 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C80B138B67BC for ; Thu, 27 Oct 2022 15:39:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C80B138B67BC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666885167; bh=g7j3wbCbwQw2PotD0p51lJEH+Mw05a5ARv3fUoalSuc=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=EGovKw60gtgnjzlsRX5xtmDPpWV2cNBuQiIq56lfeQxoP2CImfPRue9cokq9a37yG jgplOHkuE6hnBv5iRvWoSuBeD8cn70aUrsoM9nAaXxivK4DYZOPIIofMUDMNW0Nowg kn1hVsA25EICO8BBo1HPOmbbvl8quj59S3lbAYSg= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2056.outbound.protection.outlook.com [40.107.20.56]) by sourceware.org (Postfix) with ESMTPS id 03C27388B68A for ; Thu, 27 Oct 2022 15:34:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 03C27388B68A ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=itnbVtd3K1weKLUydXYQntHzO9yhVUS7dhXXXbE0B65J5fNZHyxl6io2wgBP+tk7LvTnCw12YZzjc5BSAP/X7C9/79m0ELcn6m+rf9rMzQVUgIUZd802karMEcw5MkNXbitGycfBpe3H/ZGlOVI+hNFjT0t6eeH6dTKgYZMukAy9r3mDCceNa2veXlvVkfk34VSK2vlfx4vMyKThP3xhdYhtTpreIqjvkS15TGESSJAmQn2UXHpGkPkoJTFDKShvDZnxE9wtyWPt3s6zCnVSf1cia42LiDlK0eLkoQwGhtp876WhkNuuoD10xpGIRjwHOHZwB+bsV9c4DPmM/wQK5A== 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=g7j3wbCbwQw2PotD0p51lJEH+Mw05a5ARv3fUoalSuc=; b=GUDaDM3DueOLOIKYJy/E6WZK2Gki+mzrPWMNCeWcJkci1mxc0RfzzYgoV5LAwaC+sgfwQdwXyw1B/NE7J9MF62W2+IAXIoUREq6ERcycG7ZXs0AiCC61fq2J+fsz8LvfkU901hqYu2kkn/zLyGnlfh98YUgSkYb/s28STV0KgLVqN/g5t4xyVr4/N6p6hCPkjcCgpyS5Njh37ujvJb55qrm+lBfBYj+OjEoExLQV5j/+FmeKQUILYPhOuzLQurVbKYQrLbZzEtQvUkyeG5RzGTvKpO8fwfqkid9IVDvX0Avzju/YnbCoHNN/GjhQhRXJrwSD6GxAosyoIriViR8YYw== 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] dmarc=[1, 1, header.from=arm.com]) Received: from AS9PR01CA0001.eurprd01.prod.exchangelabs.com (2603:10a6:20b:540::6) by PAXPR08MB7490.eurprd08.prod.outlook.com (2603:10a6:102:2b7::21) 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 15:33:59 +0000 Received: from AM7EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:540:cafe::73) by AS9PR01CA0001.outlook.office365.com (2603:10a6:20b:540::6) 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 15:33:59 +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 AM7EUR03FT016.mail.protection.outlook.com (100.127.140.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.14 via Frontend Transport; Thu, 27 Oct 2022 15:33:58 +0000 Received: ("Tessian outbound 58faf9791229:v130"); Thu, 27 Oct 2022 15:33:58 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: b4e922e436f6f9e5 X-CR-MTA-TID: 64aa7808 Received: from 71bfa4ba46f6.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6AD04FF9-14F0-4C19-A1B1-41B26FF4D37A.1; Thu, 27 Oct 2022 15:33:51 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 71bfa4ba46f6.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 27 Oct 2022 15:33:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O4K3WcmcYe/z3FE6UWtR708oeJoELhN+ywo0IWzzlUr0tDOfuK/T4VEKCAB6UTuW+aK1KyDapAnH5IrAAwNA/Xws+JHOTpoTeE3ODxpQIHaGlYTT9xy9fguHrKtcJL9N6V/aRBRsqdMMC3qXInDo02nkqAkPsV//NuyoaUu63U1g6yo+wLbB7b3tTvL7tz8uATaCttkL8FiBB1xVi788HzZ/lp0QXIl4S5Q+7G9XtDrRxxiOdPLWvhzyNJYWOsxy6vPtYbXULz0Pond50KXrlcqTUjcwjeFP4goO5JSPuePWYikW5w/Orv+sNHK37YTXxB6pQXq7zo5mJgkGr3V7LA== 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=g7j3wbCbwQw2PotD0p51lJEH+Mw05a5ARv3fUoalSuc=; b=YC2OujcgZcJPY9TAonkCDm0IubYb/gLPmteWbrO2eXFIMV1fz6ihYdBxHgiLTlUC7XnnQh247BmZYL7pXDIMJq9+NlOxnkHOjaRKMDP/uXtIuobcKzWlujLLK/1VI6nIgjXgzJK4JHmT2Fl7KFUnvegdfGoBCJ4qlR8tgb9tF3O/7wv0v47C3nPldEMEOVexqomqAZVXmebBoqv4AcTi3TQZgO06mzBo4MrJ2Sgxpo7jD6VXiAMynMEkLH4Btc+e8oHL9uaJfW7OTR4D6oUwZxl89QEIp+BGSWpuFC2cbTEv7DLvEog0KIfY5ghzT8abozHzq5QwsQrJB6q/GhHErA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none Received: from AS9PR06CA0188.eurprd06.prod.outlook.com (2603:10a6:20b:45d::15) by DB4PR08MB8151.eurprd08.prod.outlook.com (2603:10a6:10:381::16) 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 15:33:49 +0000 Received: from AM7EUR03FT029.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:45d:cafe::95) by AS9PR06CA0188.outlook.office365.com (2603:10a6:20b:45d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.35 via Frontend Transport; Thu, 27 Oct 2022 15:33:49 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by AM7EUR03FT029.mail.protection.outlook.com (100.127.140.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5723.32 via Frontend Transport; Thu, 27 Oct 2022 15:33:49 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 27 Oct 2022 15:33:49 +0000 Received: from armchair.cambridge.arm.com (10.2.80.71) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Thu, 27 Oct 2022 15:33:48 +0000 To: Subject: [PATCH 18/20] Fix elf/tst-dlmopen-twice to support enough link namespaces Date: Thu, 27 Oct 2022 16:33:48 +0100 Message-ID: <1adc193aeb267bdb147428b747e66c77cfd447d0.1666877952.git.szabolcs.nagy@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT029:EE_|DB4PR08MB8151:EE_|AM7EUR03FT016:EE_|PAXPR08MB7490:EE_ X-MS-Office365-Filtering-Correlation-Id: 8a319334-903c-43cf-18c4-08dab830aad6 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: /ko8kEUHrP7Lz7dRQP8bcODlbj4N/8GFXyR/QgwNk8PKhzUx43wOmbQmC7zGdEXq5WuT+rkpOzf1eInlIOrvXrTgF4RvD1Nrma81yCkMA9m7Lh8wjSTpXTd5lYBaUMNs3lRUVXCZR3PBDa9eo6+4y0fojZZT2U34v0B5VPrSo6FjkoMxKFqpcPy3ncM7W47fVRWg9TlU9IO/ch87sCyInzTcPtbam87/vtDy+HDXbFZeIeEMl0P0Oczw20H1pH5ccLojfOb6meMQKRV9W/RyGmQht2th/338N1hs0rqMGUpfEylMJ3oqzox3sNRlNDPkIx5mbZ+wBVqL1IBEcH4SV3mQFRZUTuHxuEgzMfCc8yiYBW5kBSl1vClt+cfsZg4bzcVfDHGFG167V6VEeABdJL2oChM+G6fBKrMlQmg5HlQ5Q3eitLUWR7M7lDFM2Zv/DLkuRR9ClmHPaMUljuq6yUUT13cRU+USX1R8My0FBNWLbwuSx7BnkAoeoDK0crilSrR1mDZR6df5wVqpnL+OtgbzArWZGlEgkMzEE+BlBbYDGsUnnedxI9O/nsyQ8PTf9aGLYy90BCdq3GGwWDkChuaRrhWgFOzFp7qcrSned3/O9E0NN3QfxsPbgkTPSVwhKRS68XAQq1O1wpOxGOElO3NanhHJBoADi14bFDlINyy7u4mx++ex051zeuxGwT+xxFYrMbwP6uTmik1TNGtiVwP6jzNU3K3Emj9VOmV+ASI34jWuxGYwUYoP8dHvt7kY+ahKF1A9NgaTCpuKGnWXcb/PBuSVnGkOude7lHtUA2s= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(396003)(346002)(39860400002)(136003)(376002)(451199015)(36840700001)(40470700004)(46966006)(70586007)(70206006)(82310400005)(6916009)(86362001)(40480700001)(40460700003)(316002)(7696005)(8676002)(26005)(36860700001)(356005)(41300700001)(81166007)(82740400003)(36756003)(186003)(2906002)(336012)(2616005)(44832011)(5660300002)(47076005)(426003)(8936002)(83380400001)(478600001)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR08MB8151 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: bb5efc8d-ad81-4722-1b4d-08dab830a50c X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NIAwKgiNq0ba1sAG1DlM7WgIudFlL2C/uBK3/Kfpi0f0kfMiS2Ytn7yLvl7MrRJysAlNPAv8Fnsmm6AqdGqumWr6pT4Y5kv55BnkJ+UrHrIP64avIc2DRTIBNNlCmh6jgn6+lw76D0c/TVSSiXb3oxWmdwH6F5CwuapWtZ+AIr1cplTN10z2cZLQpHa5ZJ9ShuJKbn3M01NTk++ZlUTzepjEYWI8N0owii2Otjz/ngtj9ONNE0dTAOKK/Q54Tx/93VEQQhPwlu45Cppq4IaQShSxWnLSQ7zvwh24HyEuK5X+NEuojED20yfz/pRwHi7hLmqtb6vbQAhzHWTuftWAcJqAd8WoAD2Rf2Qml4n7NMr8XPXHhzUAy6oGa1Dox5/PpPf+hsIGcz4AuckmlILA4z/7CyHzNQakuXlIRE9x6DAz5VfjnAMz+q41GlZMy9282Wu2+CJruyHb1kco6o38/oJOtpvSOCS2S4mKHfx6w39FwtFwAheAqtLzvWzBC3LvfohckkyemsKbEJYRaFwokn0iVDE6IsHjF3lzFmA1Rj3AiYDcNqZoT0mGR3FkW9dObMSSQgGqLaqFS46YuvUre/sa30sLxXgYGUN3wzz2n9lk/sE08e35WXmMctNpYivScbTQEtBAc3ww8es+N+DlVpn0nCU3FdBmVnbs+r+mpiu7g2ULlgyKbjQ1OANG/TDFxy0fr2yALjQ3ROe8wtyIcNsytEMhMTgZszNMrdx9gVelvazwh3LjVP953Unfl83MFGdEuV6hwm9dxEt1cXxFdg== 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)(39860400002)(346002)(396003)(376002)(136003)(451199015)(36840700001)(40470700004)(46966006)(36756003)(82740400003)(86362001)(70586007)(8936002)(5660300002)(336012)(70206006)(426003)(36860700001)(83380400001)(47076005)(81166007)(6916009)(316002)(186003)(2616005)(26005)(478600001)(40480700001)(40460700003)(82310400005)(2906002)(41300700001)(8676002)(44832011)(7696005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2022 15:33:58.9664 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8a319334-903c-43cf-18c4-08dab830aad6 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: AM7EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB7490 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 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Szabolcs Nagy via Libc-alpha From: Szabolcs Nagy Reply-To: Szabolcs Nagy Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "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; }