From patchwork Sat Jun 16 01:06:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 930290 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-93296-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="nQGmjopG"; 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 416zj71Nxmz9s4Y for ; Sat, 16 Jun 2018 11:07:07 +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=SVylUKPypLaloJ02kAbgk6QgdJatfHCZlwvcWz/CAseEITEJTthfP CpVhW/RvXdBE1n82khlb7AXz4viDp6M1De/6BVHvQ8ynYQGHSI9TZw4cPOJUcM2s K14pSOUk1fSMv7a2vpdBYUHoZZjrsZdVgTa4QqH9CBtELW8X8+PqiY= 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=KUdWVCGmsqtzkYJyTe3HJ9IBDXs=; b=nQGmjopGJPBSbiAUsjGKoZJ1fdZH ZVz4D7el+vUJJca4jrdXoBy5w/n+AkfrUm0ZHJcfLNInodActIneZg/aFSswBLjj +CWEA5MZoR3vknSD6LlHlXlo6tScSUPA7Gy275GpbkZHheBsj5wsKLI7fHyigacb H5gfpfhy2jdtqjE= Received: (qmail 65846 invoked by alias); 16 Jun 2018 01:06: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 Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 65571 invoked by uid 89); 16 Jun 2018 01:06:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, SPF_HELO_PASS, SPF_NEUTRAL, URIBL_RED autolearn=ham version=3.3.2 spammy=Hx-spam-relays-external:sk:static-, H*r:sk:static-, H*RU:sk:static-, ofs X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd, commited 1/8] hurd: avoid PLT ref between sendfile and sendfile64 Date: Sat, 16 Jun 2018 03:06:20 +0200 Message-Id: <20180616010627.29577-1-samuel.thibault@ens-lyon.org> * include/sys/sendfile.h (__sendfile64): Declare hidden prototype. * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead of sendfile. * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64. (sendfile64): New strong alias. --- ChangeLog | 8 ++++++++ include/sys/sendfile.h | 6 ++++++ sysdeps/mach/hurd/sendfile.c | 4 ++-- sysdeps/mach/hurd/sendfile64.c | 3 ++- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index a8f711fcd7..74c14d4f84 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2018-06-15 Samuel Thibault + + * include/sys/sendfile.h (__sendfile64): Declare hidden prototype. + * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead + of sendfile. + * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64. + (sendfile64): New strong alias. + 2018-06-15 Joseph Myers [BZ #23007] diff --git a/include/sys/sendfile.h b/include/sys/sendfile.h index abe09769cc..b88cca27b8 100644 --- a/include/sys/sendfile.h +++ b/include/sys/sendfile.h @@ -1 +1,7 @@ #include + +#ifndef _ISOMAC + +extern __typeof (sendfile64) __sendfile64 attribute_hidden; + +#endif diff --git a/sysdeps/mach/hurd/sendfile.c b/sysdeps/mach/hurd/sendfile.c index 6a3de0fcc1..4df66b56d7 100644 --- a/sysdeps/mach/hurd/sendfile.c +++ b/sysdeps/mach/hurd/sendfile.c @@ -25,11 +25,11 @@ ssize_t sendfile (int out_fd, int in_fd, off_t *offset, size_t count) { if (offset == NULL || sizeof (off_t) == sizeof (off64_t)) - return sendfile64 (out_fd, in_fd, (off64_t *) offset, count); + return __sendfile64 (out_fd, in_fd, (off64_t *) offset, count); else { off64_t ofs = *offset; - ssize_t ret = sendfile64 (out_fd, in_fd, &ofs, count); + ssize_t ret = __sendfile64 (out_fd, in_fd, &ofs, count); *offset = ofs; return ret; } diff --git a/sysdeps/mach/hurd/sendfile64.c b/sysdeps/mach/hurd/sendfile64.c index f69ccd4a79..ea4e96da90 100644 --- a/sysdeps/mach/hurd/sendfile64.c +++ b/sysdeps/mach/hurd/sendfile64.c @@ -24,7 +24,7 @@ /* Send COUNT bytes from file associated with IN_FD starting at OFFSET to descriptor OUT_FD. */ ssize_t -sendfile64 (int out_fd, int in_fd, off64_t *offset, size_t count) +__sendfile64 (int out_fd, int in_fd, off64_t *offset, size_t count) { /* We just do a vanilla io_read followed by a vanilla io_write here. In theory the IN_FD filesystem can return us out-of-line data that @@ -57,3 +57,4 @@ sendfile64 (int out_fd, int in_fd, off64_t *offset, size_t count) } return __hurd_fail (err); } +strong_alias (__sendfile64, sendfile64) From patchwork Sat Jun 16 01:06: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: 930292 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-93298-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="QVb1QdnH"; 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 416zjS0Pzlz9s3q for ; Sat, 16 Jun 2018 11:07:23 +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:in-reply-to :references; q=dns; s=default; b=mxhWG8lDn+SooOBzp5MNB0veRJKYhGb a1XYxEg2kSROYPl3vnyTP1bD6Md5BOvkIUT51mJz56rhGzxuocvCL5Kh3obBHNb5 oZCA1CZ/4M78USUTzIFacAWLB6ROB0mcDkA6pOzDAggbs68Ohxdt3GzeVeeJGMcl ssb2Y01XXbMI= 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:in-reply-to :references; s=default; bh=LuiN23pIDpDBdN9YQgGDqUkQMq8=; b=QVb1Q dnHwnE3XQKLkEFvmQFsfKk4iaqdPwWWyt0SLFrUG9H+BEbWrZ10vv96er6apB0Og ZH/YybzJ7N8dyzn9TSGxH7EoxdaNHMNoCn5eAxplu8J4QoYSP1zqajXPflha8end viq0ogtA3m7BYxQkjeLzCqqTDB22+mMz0Zh+Cw= Received: (qmail 66347 invoked by alias); 16 Jun 2018 01:06:41 -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 66130 invoked by uid 89); 16 Jun 2018 01:06:39 -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, URIBL_RED 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 2/8] hurd: Detect 32bit overflow in value returned by lseek Date: Sat, 16 Jun 2018 03:06:21 +0200 Message-Id: <20180616010627.29577-2-samuel.thibault@ens-lyon.org> In-Reply-To: <20180616010627.29577-1-samuel.thibault@ens-lyon.org> References: <20180616010627.29577-1-samuel.thibault@ens-lyon.org> * sysdeps/mach/hurd/lseek.c: Include . * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value returned by __lseek64 can fit off_t, return EOVERFLOW otherwise. --- ChangeLog | 3 +++ sysdeps/mach/hurd/lseek.c | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 74c14d4f84..0a2e082d73 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ of sendfile. * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64. (sendfile64): New strong alias. + * sysdeps/mach/hurd/lseek.c: Include . + * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value + returned by __lseek64 can fit off_t, return EOVERFLOW otherwise. 2018-06-15 Joseph Myers diff --git a/sysdeps/mach/hurd/lseek.c b/sysdeps/mach/hurd/lseek.c index 6677e01202..0a4077268a 100644 --- a/sysdeps/mach/hurd/lseek.c +++ b/sysdeps/mach/hurd/lseek.c @@ -17,12 +17,22 @@ #include #include +#include /* Seek to OFFSET on FD, starting from WHENCE. */ off_t __libc_lseek (int fd, off_t offset, int whence) { - return __libc_lseek64 (fd, (off64_t) offset, whence); + off64_t res64 = __libc_lseek64 (fd, (off64_t) offset, whence); + off_t res = (off_t) res64; + + if (sizeof res != sizeof res64 && res != res64) + { + __set_errno (EOVERFLOW); + return (off_t) -1; + } + + return res; } weak_alias (__libc_lseek, __lseek) From patchwork Sat Jun 16 01:06:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 930294 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-93301-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="Oapghsrc"; 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 416ztM1RqPz9s3q for ; Sat, 16 Jun 2018 11:15:07 +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:in-reply-to :references; q=dns; s=default; b=C7vhJBcl1XkWV4lGjwAqucrYzSY0I43 GTq42LwTxduVVyb3T5MP3jBblMU2AMWReqmaOILS7KJOSwVW9RxOM79pZagz6EX3 JWlD+v6wHGxRh6Q+1q1pHiVUBJfofYr7xK2kMTa2KJYB7PALhOBuhkH0HIw84nwj mFWs9HCzbiVA= 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:in-reply-to :references; s=default; bh=0tNXmHQ6/2WofGgWm1GV4P2ZRkg=; b=Oapgh srcXt9T7er7rGVE6k5HwuB87kVipFHJHT0Rr0wdpI3sD5J8lOVYNsNNRxknFf7s7 tu3Kw0z3LXQTawqggm1+7BouKGpWrugiliTVdCjVXdkQN6gI111mDgVbj5jgCJF4 e45FHxmwojqLinF6aWHePlj21kVfZ52PtffURI= Received: (qmail 79393 invoked by alias); 16 Jun 2018 01:15:01 -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 79371 invoked by uid 89); 16 Jun 2018 01:15:00 -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, URIBL_RED 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 3/8] hurd: Avoid PLT ref for __pthread_get_cleanup_stack Date: Sat, 16 Jun 2018 03:06:22 +0200 Message-Id: <20180616010627.29577-3-samuel.thibault@ens-lyon.org> In-Reply-To: <20180616010627.29577-1-samuel.thibault@ens-lyon.org> References: <20180616010627.29577-1-samuel.thibault@ens-lyon.org> * htl/pt-cleanup.c (___pthread_get_cleanup_stack): Rename to __pthread_get_cleanup_stack. (__pthread_get_cleanup_stack): Remove alias, add hidden def. * htl/pt-exit.c (__pthread_exit): Use __pthread_get_cleanup_stack instead of ___pthread_get_cleanup_stack. * sysdeps/htl/pthread-functions.h [libpthread] (__pthread_get_cleanup_stack): Add hidden proto. * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Remove prototype. --- ChangeLog | 9 +++++++++ htl/pt-cleanup.c | 4 ++-- htl/pt-exit.c | 2 +- sysdeps/htl/pthread-functions.h | 3 +++ sysdeps/htl/pthreadP.h | 1 - 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0a2e082d73..390c2a1a9d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,15 @@ * sysdeps/mach/hurd/lseek.c: Include . * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value returned by __lseek64 can fit off_t, return EOVERFLOW otherwise. + * htl/pt-cleanup.c (___pthread_get_cleanup_stack): Rename to + __pthread_get_cleanup_stack. + (__pthread_get_cleanup_stack): Remove alias, add hidden def. + * htl/pt-exit.c (__pthread_exit): Use __pthread_get_cleanup_stack + instead of ___pthread_get_cleanup_stack. + * sysdeps/htl/pthread-functions.h [libpthread] + (__pthread_get_cleanup_stack): Add hidden proto. + * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Remove + prototype. 2018-06-15 Joseph Myers diff --git a/htl/pt-cleanup.c b/htl/pt-cleanup.c index 1b860c7bf7..b4a9834dc1 100644 --- a/htl/pt-cleanup.c +++ b/htl/pt-cleanup.c @@ -21,8 +21,8 @@ #include struct __pthread_cancelation_handler ** -___pthread_get_cleanup_stack (void) +__pthread_get_cleanup_stack (void) { return &_pthread_self ()->cancelation_handlers; } -strong_alias (___pthread_get_cleanup_stack, __pthread_get_cleanup_stack) +libc_hidden_def (__pthread_get_cleanup_stack) diff --git a/htl/pt-exit.c b/htl/pt-exit.c index cb62f474fa..823e09e26e 100644 --- a/htl/pt-exit.c +++ b/htl/pt-exit.c @@ -41,7 +41,7 @@ __pthread_exit (void *status) disabled. */ __pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, &oldstate); - for (handlers = ___pthread_get_cleanup_stack (); + for (handlers = __pthread_get_cleanup_stack (); *handlers != NULL; *handlers = (*handlers)->__next) (*handlers)->__handler ((*handlers)->__arg); diff --git a/sysdeps/htl/pthread-functions.h b/sysdeps/htl/pthread-functions.h index a0d06cc039..bb901e3b7f 100644 --- a/sysdeps/htl/pthread-functions.h +++ b/sysdeps/htl/pthread-functions.h @@ -60,6 +60,9 @@ pthread_t __pthread_self (void); int __pthread_setcancelstate (int, int *); int __pthread_setcanceltype (int, int *); struct __pthread_cancelation_handler **__pthread_get_cleanup_stack (void); +#if IS_IN (libpthread) +hidden_proto (__pthread_get_cleanup_stack) +#endif int __pthread_once (pthread_once_t *, void (*) (void)); int __pthread_rwlock_rdlock (pthread_rwlock_t *); int __pthread_rwlock_wrlock (pthread_rwlock_t *); diff --git a/sysdeps/htl/pthreadP.h b/sysdeps/htl/pthreadP.h index 6c9aa6cb75..3fcb811f49 100644 --- a/sysdeps/htl/pthreadP.h +++ b/sysdeps/htl/pthreadP.h @@ -64,7 +64,6 @@ int __pthread_attr_setstacksize (pthread_attr_t *__attr, size_t __stacksize); int __pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, size_t __stacksize); int __pthread_attr_getstack (const pthread_attr_t *, void **, size_t *); -struct __pthread_cancelation_handler **___pthread_get_cleanup_stack (void); #if IS_IN (libpthread) hidden_proto (__pthread_key_create) From patchwork Sat Jun 16 01:06:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 930288 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-93294-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="hry/wffz"; 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 416zhq0plXz9s3q for ; Sat, 16 Jun 2018 11:06:50 +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:in-reply-to :references; q=dns; s=default; b=bs1rA5X2cuTbtNVV5HZZwSlsQqJWYn1 AdTNSJGCTOiSQbWhvs+tK7uu+cRXMeHwkpad7lHmS/rkGtIx7wPexjxLgVD341gb JOXJAQfnV3lc3+IuU44yywA1E/8isGmbDERV/AsxfXJTop2P81bzS6JAzmv8GoJd +DNNNBSQa1+o= 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:in-reply-to :references; s=default; bh=3XXMlNq2FWm9NPrv4ziunKrNQ90=; b=hry/w ffzbBPRm+3lI9GR30iIQbQWujjjEmtDSiiv09Kq0F53ZDWsgtx8kgZj0As7aZJh+ CMp1oBz01RkiGJCYt/Jqe/PW4W2HhDpdK7qbZc1xCSg4oXFe9864ggrXoWZFAZEY /+XjJrjZJApgLpUcUsDNc/+Y2uKkA+zDoVoxTs= Received: (qmail 65624 invoked by alias); 16 Jun 2018 01:06:37 -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 65567 invoked by uid 89); 16 Jun 2018 01:06:36 -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, URIBL_RED autolearn=ham version=3.3.2 spammy=Hx-spam-relays-external:sk:static-, H*r:sk:static-, H*RU:sk:static- X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd, commited 4/8] hurd: Avoid missing PLT ref from ld.so requirement Date: Sat, 16 Jun 2018 03:06:23 +0200 Message-Id: <20180616010627.29577-4-samuel.thibault@ens-lyon.org> In-Reply-To: <20180616010627.29577-1-samuel.thibault@ens-lyon.org> References: <20180616010627.29577-1-samuel.thibault@ens-lyon.org> * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional. --- ChangeLog | 1 + sysdeps/mach/hurd/localplt.data | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 390c2a1a9d..7ceaa829a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17,6 +17,7 @@ (__pthread_get_cleanup_stack): Add hidden proto. * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Remove prototype. + * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional. 2018-06-15 Joseph Myers diff --git a/sysdeps/mach/hurd/localplt.data b/sysdeps/mach/hurd/localplt.data index 4df5ae5d63..58d119e3b9 100644 --- a/sysdeps/mach/hurd/localplt.data +++ b/sysdeps/mach/hurd/localplt.data @@ -20,7 +20,7 @@ ld.so: _dl_signal_exception ld.so: _dl_catch_exception # The dynamic linker has its own versions of basic functions for initial loading # of shared libraries. These need to be overriden by libc once loaded. -ld.so: __open +ld.so: __open ? ld.so: __open64 ? ld.so: __close ld.so: __read ? From patchwork Sat Jun 16 01:06:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 930289 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-93295-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="fHur57+q"; 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 416zhz01ntz9s3q for ; Sat, 16 Jun 2018 11:06:58 +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:in-reply-to :references; q=dns; s=default; b=MiYYhQJTeYcVxc+at4Lal86aill55Bk f47ReX1d+3ubeAkWOFtf1ctqT9LgkzjNYCzUoK3pr7iqvUVe+D/kglZ9r2QRJkny gcXtMsQgqkhjqYzO3tGvRlE3TFsvkn7+lnuJp4EeZBfb2smuCf+f0l/nCADVccd+ auNrUZJ+bK84= 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:in-reply-to :references; s=default; bh=fQb4vd2yui2eLpKtOR6qRExk0Xk=; b=fHur5 7+qtFFbg+/FUBc7R6p+ECZ9mOU9/a9ZunF66wpYuAmaX6n3Qp5q33/ok2XJ2Fq6W xLqws32Ttae8rfRuZZGFkxZpHwUeukUXRXe7Kl8n5sTVVuS5q4QsaIyww0rHuZkV E5OG3yMcIvYgpknaKF8d22LS0EMfF89OwFVZrs= Received: (qmail 65746 invoked by alias); 16 Jun 2018 01:06:37 -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 65573 invoked by uid 89); 16 Jun 2018 01:06:36 -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, URIBL_RED autolearn=ham version=3.3.2 spammy=Hx-spam-relays-external:sk:static-, H*r:sk:static-, H*RU:sk:static- X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited 5/8] hurd: Avoid PLT references to shortcuts Date: Sat, 16 Jun 2018 03:06:24 +0200 Message-Id: <20180616010627.29577-5-samuel.thibault@ens-lyon.org> In-Reply-To: <20180616010627.29577-1-samuel.thibault@ens-lyon.org> References: <20180616010627.29577-1-samuel.thibault@ens-lyon.org> * sysdeps/mach/include/mach-shortcuts-hidden.h: New file. * mach/shortcut.awk: Make syscall stubs include and add hidden definition. * sysdeps/mach/include/mach.h: Include . --- ChangeLog | 4 ++++ mach/shortcut.awk | 2 ++ sysdeps/mach/include/mach-shortcuts-hidden.h | 13 +++++++++++++ sysdeps/mach/include/mach.h | 1 + 4 files changed, 20 insertions(+) create mode 100644 sysdeps/mach/include/mach-shortcuts-hidden.h diff --git a/ChangeLog b/ChangeLog index 7ceaa829a8..4defdb6462 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18,6 +18,10 @@ * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Remove prototype. * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional. + * sysdeps/mach/include/mach-shortcuts-hidden.h: New file. + * mach/shortcut.awk: Make syscall stubs include + and add hidden definition. + * sysdeps/mach/include/mach.h: Include . 2018-06-15 Joseph Myers diff --git a/mach/shortcut.awk b/mach/shortcut.awk index ea283d49ba..090da82b6a 100644 --- a/mach/shortcut.awk +++ b/mach/shortcut.awk @@ -1,6 +1,7 @@ # Icky intimate knowledge of MiG output. BEGIN { print "/* This file is generated by shortcut.awk. */"; + print "#include "; echo=1; inproto=0; proto=""; arglist=""; } @@ -44,6 +45,7 @@ echo == 1 { print $0; } print " return err;" print "}"; print "weak_alias (" call ", " alias ")"; + print "libc_hidden_def (" call ")"; # Declare RPC so the weak_alias that follows will work. print "extern __typeof (" call ") " rpc ";"; echo = 1; diff --git a/sysdeps/mach/include/mach-shortcuts-hidden.h b/sysdeps/mach/include/mach-shortcuts-hidden.h new file mode 100644 index 0000000000..0942871f26 --- /dev/null +++ b/sysdeps/mach/include/mach-shortcuts-hidden.h @@ -0,0 +1,13 @@ +#include +libc_hidden_proto (__task_create) +libc_hidden_proto (__task_terminate) +libc_hidden_proto (__vm_allocate) +libc_hidden_proto (__vm_deallocate) +libc_hidden_proto (__task_suspend) +libc_hidden_proto (__task_set_special_port) +libc_hidden_proto (__vm_map) +libc_hidden_proto (__thread_depress_abort) +libc_hidden_proto (__mach_port_allocate_name) +libc_hidden_proto (__mach_port_allocate) +libc_hidden_proto (__mach_port_deallocate) +libc_hidden_proto (__mach_port_insert_right) diff --git a/sysdeps/mach/include/mach.h b/sysdeps/mach/include/mach.h index b4c2f45240..fff8349b82 100644 --- a/sysdeps/mach/include/mach.h +++ b/sysdeps/mach/include/mach.h @@ -1,5 +1,6 @@ #ifndef _MACH_H #include_next +#include #ifndef _ISOMAC libc_hidden_proto (__mach_msg_destroy) #endif From patchwork Sat Jun 16 01:06:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 930291 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-93297-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="qaBNUG6b"; 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 416zjH6Ghfz9s3q for ; Sat, 16 Jun 2018 11:07:15 +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:in-reply-to :references; q=dns; s=default; b=INB/h5MGpD7vpty0PlXe3+blaHuUF4n oxJ+PGkCkv1bk89sxyqLSV2ZM/ct8Uufyf9LAzJqIb/YuWuM1kNsKycE3riwee1W cjN6KkSULL68dKcSivAX4UzTuKminaKIBOfc0uNIL/yblU4yUV/1tWHsXrPIROlG z4AUR6LVcuSQ= 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:in-reply-to :references; s=default; bh=5s4TthA//z/8UbmZGjnIl5Omaqc=; b=qaBNU G6b3XxN9wEUJAbxDyPwO2yF2SQH3qNuZiyYuqg/3je1PIFVholt8nHeGNJLem54Q vMcyP+wL8epbCba+III3yeahg9IXE4K9pb86NM3+1GtlMg5FZcV12JtS/ohwaayt IRQWJN5z3+Jqs5zFXXKqYfkrjl8GXTaZF9I2j4= Received: (qmail 66290 invoked by alias); 16 Jun 2018 01:06:41 -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 66123 invoked by uid 89); 16 Jun 2018 01:06:39 -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, URIBL_RED autolearn=ham version=3.3.2 spammy=36, 25, 7 X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited 6/8] hurd: Avoid PLT ref to __mach_msg Date: Sat, 16 Jun 2018 03:06:25 +0200 Message-Id: <20180616010627.29577-6-samuel.thibault@ens-lyon.org> In-Reply-To: <20180616010627.29577-1-samuel.thibault@ens-lyon.org> References: <20180616010627.29577-1-samuel.thibault@ens-lyon.org> * sysdeps/mach/include/mach.h (__mach_msg): Add hidden prototype. * mach/msg.c: Include . (__mach_msg): Add hidden definition. --- ChangeLog | 3 +++ mach/msg.c | 2 ++ sysdeps/mach/include/mach.h | 1 + 3 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4defdb6462..d81c823448 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22,6 +22,9 @@ * mach/shortcut.awk: Make syscall stubs include and add hidden definition. * sysdeps/mach/include/mach.h: Include . + (__mach_msg): Add hidden prototype. + * mach/msg.c: Include . + (__mach_msg): Add hidden definition. 2018-06-15 Joseph Myers diff --git a/mach/msg.c b/mach/msg.c index bccad7fd26..8eb252a16e 100644 --- a/mach/msg.c +++ b/mach/msg.c @@ -25,6 +25,7 @@ */ #include #include +#include #ifdef MACH_MSG_OVERWRITE /* In variants with this feature, the actual system call is @@ -125,6 +126,7 @@ __mach_msg (mach_msg_header_t *msg, return ret; } weak_alias (__mach_msg, mach_msg) +libc_hidden_def (__mach_msg) mach_msg_return_t __mach_msg_send (mach_msg_header_t *msg) diff --git a/sysdeps/mach/include/mach.h b/sysdeps/mach/include/mach.h index fff8349b82..65f8d9764b 100644 --- a/sysdeps/mach/include/mach.h +++ b/sysdeps/mach/include/mach.h @@ -3,5 +3,6 @@ #include #ifndef _ISOMAC libc_hidden_proto (__mach_msg_destroy) +libc_hidden_proto (__mach_msg) #endif #endif From patchwork Sat Jun 16 01:06:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 930293 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-93299-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="FR/RPOdp"; 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 416zjc2x1jz9s3q for ; Sat, 16 Jun 2018 11:07:32 +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:in-reply-to :references; q=dns; s=default; b=vQuuRAlg0cYuWhNtVqrEfe2BhTvaEVw yvxNKWz8hlNFw6N2ctegAUA+7+xPVhtxGjUEKLN4hV8k56tChYLRmda4GpHYBGZq EA/RfWciwCes8t6LlLGVd5rLm24VHcQVXH2bpFaAWnRPKUVRj7UcGuFDDKPQkC9G 6MsB/kAwJJlc= 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:in-reply-to :references; s=default; bh=16saoPj2s3v2R5XVPnWs3Fc437w=; b=FR/RP OdpNt8smQxT0ckJpWXC/9JsOh/9aymvZtNeLPecLQB8C/LR/K4gsuTYXv6obgVFY /lEWkkwip+7FxgtjInE8HwefOEBJ0c+S5NTvsg0MmIWnaAo4XFVwLQmfrQX+XaJM 6bHXjbZp+QMGB6wvpvMYs4Rgl8Ff7fHyVumS4E= Received: (qmail 66439 invoked by alias); 16 Jun 2018 01:06:41 -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 66172 invoked by uid 89); 16 Jun 2018 01:06:40 -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, URIBL_RED autolearn=ham version=3.3.2 spammy=UD:mk X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited 7/8] hurd: Avoid PLT references to syscalls Date: Sat, 16 Jun 2018 03:06:26 +0200 Message-Id: <20180616010627.29577-7-samuel.thibault@ens-lyon.org> In-Reply-To: <20180616010627.29577-1-samuel.thibault@ens-lyon.org> References: <20180616010627.29577-1-samuel.thibault@ens-lyon.org> * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition. * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port, __mach_thread_self, __mach_task_self, __mach_host_self, __swtch, __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes. --- ChangeLog | 4 ++++ mach/Makefile | 3 ++- sysdeps/mach/include/mach/mach_traps.h | 20 ++++++++++++++------ 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index d81c823448..8c4b6ccd2f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -25,6 +25,10 @@ (__mach_msg): Add hidden prototype. * mach/msg.c: Include . (__mach_msg): Add hidden definition. + * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition. + * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port, + __mach_thread_self, __mach_task_self, __mach_host_self, __swtch, + __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes. 2018-06-15 Joseph Myers diff --git a/mach/Makefile b/mach/Makefile index 2683587b2d..435ae6882d 100644 --- a/mach/Makefile +++ b/mach/Makefile @@ -97,7 +97,8 @@ else $(mach-syscalls:%=$(objpfx)%.S): $(objpfx)%.S: $(objpfx)mach-syscalls.mk (echo '#include '; \ echo 'kernel_trap (__$*,$(sysno-$*),$(nargs-$*))'; \ - echo 'weak_alias (__$*, $*)') > $@-new + echo 'weak_alias (__$*, $*)'; \ + echo 'libc_hidden_def (__$*)') > $@-new mv -f $@-new $@ generated += $(mach-syscalls:=.S) endif # mach-syscalls diff --git a/sysdeps/mach/include/mach/mach_traps.h b/sysdeps/mach/include/mach/mach_traps.h index d1b2febac1..2d4c1f9c5f 100644 --- a/sysdeps/mach/include/mach/mach_traps.h +++ b/sysdeps/mach/include/mach/mach_traps.h @@ -1,13 +1,21 @@ #ifndef _MACH_MACH_TRAPS_H #include_next -extern mach_port_t __mach_reply_port (void) attribute_hidden; +extern mach_port_t __mach_reply_port (void); +libc_hidden_proto (__mach_reply_port) extern mach_port_t __mach_thread_self (void); +libc_hidden_proto (__mach_thread_self) extern mach_port_t (__mach_task_self) (void); -extern mach_port_t (__mach_host_self) (void) attribute_hidden; -extern boolean_t __swtch (void) attribute_hidden; -extern boolean_t __swtch_pri (int priority) attribute_hidden; +libc_hidden_proto (__mach_task_self) +extern mach_port_t (__mach_host_self) (void); +libc_hidden_proto (__mach_host_self) +extern boolean_t __swtch (void); +libc_hidden_proto (__swtch) +extern boolean_t __swtch_pri (int priority); +libc_hidden_proto (__swtch_pri) kern_return_t __thread_switch (mach_port_t new_thread, - int option, mach_msg_timeout_t option_time) attribute_hidden; -kern_return_t __evc_wait (unsigned int event) attribute_hidden; + int option, mach_msg_timeout_t option_time); +libc_hidden_proto (__thread_switch) +kern_return_t __evc_wait (unsigned int event); +libc_hidden_proto (__evc_wait) #endif From patchwork Sat Jun 16 01:06:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 930287 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-93293-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="Acjv+36s"; 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 416zhg3cYWz9s3q for ; Sat, 16 Jun 2018 11:06:42 +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:in-reply-to :references; q=dns; s=default; b=rfkU3fOfZ6MQHJTACY8T4BOLScmGnUh ea0+X51RlOKdyhH9+/h8u1bjKf6CFAtTYjh8PHnmPgLbO/YhE5pDY3zW3SS5SJTe W4euPepuDuoR45mf3z0mH6/JLP/Z+GeByVWElMS+ywNUygGG86bdB2ZI0Zx61reV wm20RDiT4UIM= 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:in-reply-to :references; s=default; bh=tBOM10Ef4AWF7ANPydJtoqWaVSo=; b=Acjv+ 36sEauuTvteVwCz2VX4FOl9cqnlli2huGETWbzJukOoMm2UF0mMolcFlwwFe/w5e bzWoHQN8k5ZQzOlvMV2+/vknRX24WUu+TA1Q5W7EPQIbyYgu9O/U23BNiXwueUxl fb0us3nrLjUvOI3qP/SrgW9hcmbPXoL14z7PBI= Received: (qmail 65600 invoked by alias); 16 Jun 2018 01:06:37 -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 65569 invoked by uid 89); 16 Jun 2018 01:06:36 -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, URIBL_RED autolearn=ham version=3.3.2 spammy=H*RU:sk:static-, H*r:sk:static-, Hx-spam-relays-external:sk:static-, refs X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd, commited 8/8] hurd: Whitelist PLT refs which are difficult to avoid Date: Sat, 16 Jun 2018 03:06:27 +0200 Message-Id: <20180616010627.29577-8-samuel.thibault@ens-lyon.org> In-Reply-To: <20180616010627.29577-1-samuel.thibault@ens-lyon.org> References: <20180616010627.29577-1-samuel.thibault@ens-lyon.org> * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp, __libc_lseek64, _IO_funlockfile): Whitelist PLT references. --- ChangeLog | 2 ++ sysdeps/mach/hurd/localplt.data | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8c4b6ccd2f..2fc3a71c21 100644 --- a/ChangeLog +++ b/ChangeLog @@ -29,6 +29,8 @@ * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port, __mach_thread_self, __mach_task_self, __mach_host_self, __swtch, __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes. + * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp, + __libc_lseek64, _IO_funlockfile): Whitelist PLT references. 2018-06-15 Joseph Myers diff --git a/sysdeps/mach/hurd/localplt.data b/sysdeps/mach/hurd/localplt.data index 58d119e3b9..a1f1ae626a 100644 --- a/sysdeps/mach/hurd/localplt.data +++ b/sysdeps/mach/hurd/localplt.data @@ -52,3 +52,11 @@ ld.so: _dl_init_first ld.so: _dl_mcount ld.so: ___tls_get_addr ld.so: __tunable_get_val + +# These should ideally be avoided, but is currently difficult +libc.so: siglongjmp ? +libc.so: longjmp ? +# This is from lseek.c +libc.so: __libc_lseek64 ? +# This is through cleanup_region_start from vfprintf.c +libc.so: _IO_funlockfile ?