From patchwork Mon Apr 2 21:49:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 894380 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-91343-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="DJVlAbG1"; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 40FQqM1zQwz9s23 for ; Tue, 3 Apr 2018 07:49:34 +1000 (AEST) 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:date:message-id; q=dns; s= default; b=g7igEHjq7vq1m/4Z4Z8AvMVVkx0s3fKnSPSkMM3fVaukYlswS3on+ yP6GQWCLLEePqYn7K7dhF+ulgl+dGz4fJWwLDBciULQm5kVSznWp3T0EMNZHQoNj k8Udohp1LLfpxC8Byku2v942ckNGxdfjHEl16Bvn3yptEeTNpx6KMg= 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:date:message-id; s=default; bh=5tP+yg06CLC8Ok0PycRaR05upso=; b=DJVlAbG1ULxhGFPQLaw5XHVB590G JIsURvavT0LhJxQcHRkSNaGSyKvQ6dKd317gqjHrbf8faqFB49e8bUjCu//XDFTz mZ5ybCDQtKhpclHSZpS0l+AsMdZh/h1G3w8NKpTZBfBThmWvv8PSESCsz9QPKD6B IWpW9bYno4eRZek= Received: (qmail 28904 invoked by alias); 2 Apr 2018 21:49:29 -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 Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 28885 invoked by uid 89); 2 Apr 2018 21:49:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy= X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd, commited] hurd: whitelist ld.so PLTs supposed to be avoided by rtld_hidden Date: Mon, 2 Apr 2018 23:49:21 +0200 Message-Id: <20180402214921.21520-1-samuel.thibault@ens-lyon.org> * sysdeps/mach/hurd/localplt.data (ld.so): Add _dl_allocate_tls, _dl_allocate_tls_init, _dl_exception_create, _dl_exception_create_format, _dl_exception_free, _dl_find_dso_for_object, _dl_init_first, _dl_mcount, ___tls_get_addr, __tunable_get_val. --- sysdeps/mach/hurd/localplt.data | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sysdeps/mach/hurd/localplt.data b/sysdeps/mach/hurd/localplt.data index 2417b715d4..ca43cce323 100644 --- a/sysdeps/mach/hurd/localplt.data +++ b/sysdeps/mach/hurd/localplt.data @@ -39,3 +39,15 @@ ld.so: __getpid ld.so: abort ld.so: _hurd_intr_rpc_mach_msg ld.so: __errno_location +# rtld_hidden is currently disabled to avoid having to special-case the +# functions above which do need a PLT. These are thus currently expected. +ld.so: _dl_allocate_tls +ld.so: _dl_allocate_tls_init +ld.so: _dl_exception_create +ld.so: _dl_exception_create_format +ld.so: _dl_exception_free +ld.so: _dl_find_dso_for_object +ld.so: _dl_init_first +ld.so: _dl_mcount +ld.so: ___tls_get_addr +ld.so: __tunable_get_val