From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 6A1B73851150 for ; Thu, 27 Oct 2022 16:24:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6A1B73851150 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666887875; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wqUUk01C9sV11NgdPePOUgkmGMV5HLM3uD5D7dbOZis=; b=aM/NS6Msc/BtR0iojtLL1QtCuvSRTUZglJNFoXB8nJetOiGH08jQ89yTcBG2QqTd+D8kIU dNhxPJMRkY8qrQMQqsZs+kIc9/l4LpwQ5VF6Y+fLHjGyi0Rdu3jWFebuCAjGcz46yXN2Ma KVmAflMASfOvUgF8F8g71L1Drq6j5bo= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-391-SEgvAHcHPzKxGfWDrNyTSw-1; Thu, 27 Oct 2022 12:24:33 -0400 X-MC-Unique: SEgvAHcHPzKxGfWDrNyTSw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 654881C0759F; Thu, 27 Oct 2022 16:24:33 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.74]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B7B592166B26; Thu, 27 Oct 2022 16:24:32 +0000 (UTC) From: Florian Weimer To: Szabolcs Nagy via Libc-alpha Cc: Szabolcs Nagy Subject: Re: [PATCH 18/20] Fix elf/tst-dlmopen-twice to support enough link namespaces References: <1adc193aeb267bdb147428b747e66c77cfd447d0.1666877952.git.szabolcs.nagy@arm.com> Date: Thu, 27 Oct 2022 18:24:31 +0200 In-Reply-To: <1adc193aeb267bdb147428b747e66c77cfd447d0.1666877952.git.szabolcs.nagy@arm.com> (Szabolcs Nagy via Libc-alpha's message of "Thu, 27 Oct 2022 16:33:48 +0100") Message-ID: <874jvpjku8.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP 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: * 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? Thanks, Florian