From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 5E22C1F463 for ; Tue, 7 Jan 2020 12:09:54 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=xFUriu/6HtmZL9WE0ndIuOqZeYWrYA3jMmeefkutE6F pPOKWQ1bfOUnX2v4jfBYWD5ZTVSmkBo5zd9pFRDKCrNQo3rvXBGfAz+4+3wJGbUK YtXqBVheZgdL7Ytau8kcEHT67nX2IvdbhRSlmjfVAOSIc5W4m7GZLu93ReqTxgBU = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-type:content-transfer-encoding; s=default; bh=jNkZrrxD5TMfdnbQpMUuF0vWeoU=; b=pHfCiA/8RaRQGkJe3 ry+6x4O24yJ+eqLnuZ9hOOgX5aQAWk8iuC/BPhydEFIwIlzGfgB2GwxAr3uR8Gsq X1JOmAmIbaxtXIq5ZRO9bx+hZNj6VmHJxKjI6ZlAg+ZJfZTGQcyJrW/FU1cY1mDA 9NpGsrlbM9otRUva7jMQRNrp+M= Received: (qmail 28591 invoked by alias); 7 Jan 2020 12:09:51 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 28573 invoked by uid 89); 7 Jan 2020 12:09:51 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: us-smtp-1.mimecast.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578398988; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+B4AHbqWE36OCIYVE1Fyn28bmLz4XOBeXEvsmxJHvzc=; b=eSLRyRtJtPKHvlrcYRignju6eVlQ2pv3wF1QojNzY6o6CaDdqlOKKa9MxXIForTRQR8P7j Wx1tTiSILbJ+UxE4ZZao+d5D6W0of3rGnFTdRzZzRnXvyYJJFqYz4vC6NKz3D8a75RVgtA IJKg6b6qcIu6JJ/6v21Hr2+FVIUT6kI= From: Florian Weimer To: Szabolcs Nagy Cc: GNU C Library , nd Subject: Re: [PATCH] Reserve static TLS for dynamically loaded initial-exec TLS only [BZ #25051] References: <44eaccc2-f760-88c0-989a-e413e328b051@arm.com> Date: Tue, 07 Jan 2020 13:09:42 +0100 In-Reply-To: <44eaccc2-f760-88c0-989a-e413e328b051@arm.com> (Szabolcs Nagy's message of "Tue, 7 Jan 2020 11:54:12 +0000") Message-ID: <87lfqjv56h.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable * Szabolcs Nagy: > This patch reserves 128 bytes of the surplus TLS that is not used > opportunistically. TLS_STATIC_SURPLUS is currently 1664, so this still > allows 1536 bytes for opportunistic use. A new test is added to verify > this ABI contract: dynamic loading of libraries with initial-exec TLS > is supported up to 128 bytes in total on all targets. This should be > enough for system libraries such as libgomp. I'm not sure if it's enough for loading another libc.so.6 via dlmopen. Have you tested this, by chance? Thanks, Florian