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=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,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 074961F619 for ; Thu, 27 Feb 2020 16:21:41 +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:cc:subject:to:references:from:message-id:date :in-reply-to:content-type:content-transfer-encoding :mime-version; q=dns; s=default; b=W67QKkCRWYzq2x1fRCLpS0uD4CgvJ 0sdIdXqgN0WLFynXZ9Zt3Ju73FVO8SmT2MFe/Zg6nSX2/7WFpdsVsmmHwUhbzn3O 3w4SVdRrr6zZUO/3fz0Qf1Pdmck4r2hAH+ED1xsxQn/z9w0afp2rNgybSEaIM73a IIkAVE7tgBeuRM= 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:cc:subject:to:references:from:message-id:date :in-reply-to:content-type:content-transfer-encoding :mime-version; s=default; bh=LOh6kVjS0K6kgdMKtHXQkCMZzKQ=; b=WJ2 s51+Qzr7KwONZ2rkIdHiWZa/nzNRRr9cr1OeGtQJXUSTWPElHnv9qPJ5uoUW9f4Z Bu9vawr6BoXyYRwqodVUpOj2kARNHOzv3YiROq9OMx5EMzx/ec9Fh7Koo8sjXvEh lxP4IVOk83nwONK+Kaooo3AfmDIAX3PR2pVIYUKQ= Received: (qmail 30488 invoked by alias); 27 Feb 2020 16:21:38 -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 30480 invoked by uid 89); 27 Feb 2020 16:21:38 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: EUR01-DB5-obe.outbound.protection.outlook.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=F3delOKe4bFFk1q7523g8qKGRFez3SI/uS8+bGau2Nw=; b=Ers3uSUaoXk41bwFNDZwsbjRkVc9w373tZ9RRyg9Gsqq9BP3N+rh22gcd4e70K3M5g5yGQSaH6thVpnwniDH5w0WSNIms3oCGc12DLg3wHUo7kvZeCzqe+g48T5pJb6/sUYq3fV1FSSPF2oh7ZIeIO85VSL4N4gzKUgfLS1FW58= Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; sourceware.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;sourceware.org; dmarc=bestguesspass 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; X-CheckRecipientChecked: true X-CR-MTA-CID: df99ee48f67b1048 X-CR-MTA-TID: 64aa7808 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n7XtFgvTwwfYSNl8wOPY/T7WXV/iziN7TmkUQBZ7XiDa1HOSiiKg4KDSYkrDTOxNorf2j/1cbayLJEZNIcdp6Cr9vpyi4EMnPU4wKf5EsTrGcQ4axqWI//rrfCRdyaG/sc9vUqcYxS0qmpMwAyNK0kE7wYMDCOEAjjpBj7H2z9YAD0R3UHbgm0nK/uurpArM2oJl98cKtsTDokfKGrZOrRKwkdPKGaD3fj5G536by0jFs+dAmL+qO3lyT5yq1LrWhvk6LlzdgIO3pD36UPm6gQFoT7DUvhRQofu2q88f9s7cmDhVvKmpk4IyFhMxqvbc5w4yHrxiQRI5TErAAoLE6g== 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-SenderADCheck; bh=F3delOKe4bFFk1q7523g8qKGRFez3SI/uS8+bGau2Nw=; b=P26/lTvKOnEahR37crT0PvcNWdn1pPn1hT8mkjFUGO6KQXqOKbd40SC8DIdyeJHN+lqAM1EHV4vIPgS/7Eqx7lfDyQhAr/wkXzwA/WAXVA2BzAiacptZNkQnrrlmfI/UKrUQgHaLOUSRvh5PN95flYA5YWlUV07JVj6iqIMyYRgA4hADisL0+LEkqFKCFAvSoe90FdSjVyFqmvTaOVGc9/TU3utfLxzZ7snc5mRtGZVlr65uIsTDZ2xe+5Liqc+Eh4T5v94udOUgKuj6yj6h/w4a7CQHirHJYW9TuZp9xAnjzdRCVhH9n5A8OTQRyWUx8hGPNndhBqTm2m0pTd4OMg== 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=F3delOKe4bFFk1q7523g8qKGRFez3SI/uS8+bGau2Nw=; b=Ers3uSUaoXk41bwFNDZwsbjRkVc9w373tZ9RRyg9Gsqq9BP3N+rh22gcd4e70K3M5g5yGQSaH6thVpnwniDH5w0WSNIms3oCGc12DLg3wHUo7kvZeCzqe+g48T5pJb6/sUYq3fV1FSSPF2oh7ZIeIO85VSL4N4gzKUgfLS1FW58= Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Szabolcs.Nagy@arm.com; Cc: nd@arm.com, GNU C Library Subject: Re: [PATCH] Reserve static TLS for dynamically loaded initial-exec TLS only [BZ #25051] To: Florian Weimer , Carlos O'Donell References: <44eaccc2-f760-88c0-989a-e413e328b051@arm.com> <87lfqjv56h.fsf@oldenburg2.str.redhat.com> <5533fb62-c336-45b3-71ec-30c5e7d7ac4c@arm.com> <5474f68c-b093-8791-ca0b-b4b715174e2c@redhat.com> <87k14lmcct.fsf@oldenburg2.str.redhat.com> <043f4682-d009-0365-9bdc-f9bd402683b5@redhat.com> <87d0a8hzbi.fsf@oldenburg2.str.redhat.com> From: Szabolcs Nagy Openpgp: preference=signencrypt Message-ID: Date: Thu, 27 Feb 2020 16:21:17 +0000 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 In-Reply-To: <87d0a8hzbi.fsf@oldenburg2.str.redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 x-checkrecipientrouted: true X-MS-Oob-TLC-OOBClassifiers: OLM:4502;OLM:4502; X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(4636009)(136003)(396003)(39860400002)(366004)(346002)(376002)(189003)(199004)(8936002)(110136005)(16576012)(4326008)(956004)(2616005)(81156014)(81166006)(478600001)(52116002)(5660300002)(316002)(44832011)(6486002)(31696002)(53546011)(8676002)(36756003)(31686004)(66946007)(86362001)(6666004)(2906002)(66556008)(66476007)(16526019)(186003)(26005);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR08MB3113;H:DB7PR08MB3292.eurprd08.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: JIc2fnosFtK4X3egdURlrEP3yxApXaRmN+JQpb53Qvru6gb+2OIgpIm6maiwXdgX7jc9zPKE1ivWQ5ZKsL9uQBf/2qvRMvWGV+nW0A6fGLQ2M1p+iWOX4xdmefwisySV+zI0dIhGY9b8RMN1abffXKzjMgk6+VlHtJF82ligcSwBBsNLxVy8kVazupS/cpXKB9MYpRRsj7S7gcLi4MDk+g6hm67pm6IfdxzpTfVfnFzg8PEvibflkC7OoqWxqokQz8P4Z2+7wMMJ5Q1WiuwWep7nw7BE0+12WOKVPgAbID+NwPNH1ze0srn1a3Z4Vyc4F5hynRpTip8MIg632FvzjgKG8bDdpt4uA6ClDI4AKY32ncF7Byf9RdfYZFdOT3ZAT8gMnIK4YEl/n6fGp57KAdD3Dw9EvG8t05cqB7D4zI15K40RJf4IxnEdpLkeCPVU X-MS-Exchange-AntiSpam-MessageData: qzMY9BKJ3kJ5FXT5BIoy0Tmro7nUwZT/Vabe2iL+Lhkl/CoBGKT7Bj9Wit18I1ikw3BXU5AM6Ev0oWvLgrNz1ZPcb8jKSi5Qi3TJ09tG7GAZXniodUHouXwBvVvdDTthGS161RbFDjCzrUaupEMP5w== X-MS-Exchange-Transport-Forked: True Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Szabolcs.Nagy@arm.com; X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT052.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: aa824826-4df6-4bc5-b1f4-08d7bba1172a On 21/02/2020 12:58, Florian Weimer wrote: > * Carlos O'Donell: > >> On 2/17/20 11:01 AM, Florian Weimer wrote: >>> * Carlos O'Donell: >>> >>>> Let me take a stab at this: >>>> >>>> (1) File a bug to indicate all libraries must stop using >>>> TLS IE to fix dlmopen issues with TLS IE. >>> >>> Do you mean glibc components, or do you view this as a distribution-wide >>> change? >> >> All glibc libraries should stop using TLS IE and we should file bugs for >> fixing these instances where TLS IE was used to work around startup ordering >> problems. > > This has performance implications, in particular for malloc. > I'll try to get some numbers. it has correctness implications too, e.g. in case of errno or soft-float fenv emulation (ppc only?) tls access may happen in signal handlers and i think currently only initial (and local) exec tls is guaranteed to be as-safe. libc also has struct pthread, i wonder if any of that needs to be duplicated for dlmopen (is it valid to dlmopen a different version of libc.so.6 ?)