From patchwork Tue Sep 4 20:45:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 145960 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp4124549ljw; Tue, 4 Sep 2018 13:46:14 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbad1Z14nFe1JoXu9dKTKRbCJB7jqhVe/16XjFe8En6IA2jdCBogQOFRN97NFkGn6iJBZGA X-Received: by 2002:a62:571b:: with SMTP id l27-v6mr36745263pfb.29.1536093974739; Tue, 04 Sep 2018 13:46:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536093974; cv=none; d=google.com; s=arc-20160816; b=Gk1i4eCnXAOZhW04PgxJv+Ms58u+kR5+9YQwsrmempaaRX26LMWSyJnTw476Npb/EM V6shTGmc7etcbUhRJDharELrng8fMTVE2V3j11eJCGNJ/rnQS9L8PKnXA6aLQjUf+GK2 hY/AFMdoDx3A/Or+uxi9zppkgW4N2qJ7hN7ciOzHrdvwT64uIyd2qBATu8de6lewUUF7 d29tXSVJFAaBxoVCyj1OypKtUTJdWJ3wBKCHAHcQspx6uBU+/s/ggvbv3ieqlVTwLwbw Yx8sbBn/mykPtLAAPzE+BJa5sZnK+cUdKLrEOUcZzgYddybWWx0ZpAOdqXGXagY3wnWA eh9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:to:from:dkim-signature:delivered-to:sender :list-help:list-post:list-archive:list-subscribe:list-unsubscribe :list-id:precedence:mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=2kmMry9R0EIYeuo5GVFNbRrkRSS7xOZu3OUtdtlEH00=; b=zVx6njypqG6zTe82QoR7XOm33r4TGF/OWT//yFb91QRkzrRJIHUWNeJrcnw+EGOFUa YHmZnLI1hvvMibKP3GfnYBUWjLp8mVEcp9kZf+LAYK8Zm9o9JVJV+KkCMQoMReZXFnQ2 VFcBg6zsNvvFPCWpY5wK8tiXFnvPoU9PwoADfQbuJmD/Y4ovaOH1WKnYlZO7aQAPBLFi 1JrJTGQnPAD2C5wwX5/tWjd1BnW5LP58yR08ctOgmAhDLJ+60SHOlv5MKfVHKviVrf22 CBGFQ6f3YqVnoM3Hw1K70Uu3S1r8tGvhGKDWOuwwbr4yJqIBil+Vj4+LYLzxRZuFBPsj OvfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=UN3o0juF; dkim=pass header.i=@linaro.org header.s=google header.b="b/mA9xPN"; spf=pass (google.com: domain of libc-alpha-return-95667-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-95667-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id t5-v6si16535756ply.193.2018.09.04.13.46.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Sep 2018 13:46:14 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-95667-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=UN3o0juF; dkim=pass header.i=@linaro.org header.s=google header.b="b/mA9xPN"; spf=pass (google.com: domain of libc-alpha-return-95667-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-95667-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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:subject:date:message-id; q=dns; s= default; b=d0eXVXsVe8kW1caBIlz++jqtIc5VnAVJijUbXwupcvPt8/qNv3i+p q1Q+BsISIG0Ip78n+vhD9co9GoPdlRlU/cy2z3BHeR/HuGzu+Pb15nXCDJBLZURG eslQe5o68+k3/Hko1ufMtjgZpkH40Z4G4/67jH56VOUfdBsm+GK/48= 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:subject:date:message-id; s=default; bh=FeuAZJcQPJcJ1s2udPxTZts6Q4w=; b=UN3o0juFiGOHJCs4SonH7K0v2xC+ t/NYzvU8WV+dkU0S8c9dsT/1eFKaREFX7xPbhAaSCvZz0i8Lv+xRW6jXKAo78L0c e6ijr0jTv1k2vdYW9XCvO4lbtYvP7jBQRQdyYHcW2HXO1elAr3O0ATqpUV2nx2wo 8KCBfx7WLjmbvJs= Received: (qmail 33507 invoked by alias); 4 Sep 2018 20:46:04 -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 33496 invoked by uid 89); 4 Sep 2018 20:46:04 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-8.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SEM_URI, SEM_URIRED, SPF_PASS autolearn=ham version=3.3.2 spammy=cancellation, HX-Received:sk:w10-v6m, pthread X-HELO: mail-qt0-f194.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=2kmMry9R0EIYeuo5GVFNbRrkRSS7xOZu3OUtdtlEH00=; b=b/mA9xPNyO6f+h9UHp32WOko1PB9Dpo3+iVtpWGE24IrocpHpJ4em3sdn3bkgxeCAM cZIGHNKo0CU+vMV6QJOZVjm04KHQZcc8TODECWTyPs8m5/ZSvQQJvD2Aj/NLSi/OB+6v 6yuWp3qXtBJyAR0g2SGzpt18eBDTvqIknhCI0= Return-Path: From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 0/7] General fixes and refactor for BZ#12683 Date: Tue, 4 Sep 2018 17:45:46 -0300 Message-Id: <20180904204553.6971-1-adhemerval.zanella@linaro.org> These patches are refactoring and fixes required for my proposal to BZ#12683 [1]. They can be applied independently of the cancellation refactor fix and the idea is to simplify the patch submission with changes only direct related to the issue. [1] https://sourceware.org/ml/libc-alpha/2018-02/msg00782.html Adhemerval Zanella (7): powerpc: Add CFI information on indirect syscall nptl: Remove tst-cancel-wrappers test and related macros nptl: Fix testcases for new pthread cancellation mechanism x86: Remove wrong THREAD_ATOMIC_* macros i386: Remove bogus THREAD_ATOMIC_* macros nptl: Cleanup cancellation macros support: Add support_create_temp_fifo ChangeLog | 70 ++++++++++++++ debug/tst-backtrace5.c | 19 ++-- io/creat.c | 3 - io/ppoll.c | 2 - misc/pselect.c | 2 - nptl/Makefile | 18 +--- nptl/pthreadP.h | 10 -- nptl/pthread_join_common.c | 9 +- nptl/sem_wait.c | 8 +- nptl/tst-cancel-wrappers.sh | 92 ------------------- nptl/tst-cancel4.c | 8 ++ support/temp_file.c | 23 +++++ support/temp_file.h | 6 ++ sysdeps/generic/sysdep-cancel.h | 1 - sysdeps/i386/nptl/tls.h | 37 -------- sysdeps/mach/hurd/sysdep-cancel.h | 1 - sysdeps/nptl/aio_misc.h | 15 ++- sysdeps/nptl/gai_misc.h | 15 ++- sysdeps/nptl/lowlevellock.h | 40 ++++---- sysdeps/posix/open64.c | 12 +-- sysdeps/posix/pause.c | 2 - sysdeps/posix/sigpause.c | 3 - sysdeps/posix/sigwait.c | 12 +-- sysdeps/posix/waitid.c | 12 +-- sysdeps/unix/sysv/linux/clock_nanosleep.c | 23 ++--- sysdeps/unix/sysv/linux/creat.c | 2 - sysdeps/unix/sysv/linux/creat64.c | 2 - sysdeps/unix/sysv/linux/futex-internal.h | 4 +- sysdeps/unix/sysv/linux/i386/lowlevellock.h | 42 ++++----- sysdeps/unix/sysv/linux/lowlevellock-futex.h | 11 +++ sysdeps/unix/sysv/linux/powerpc/syscall.S | 1 + sysdeps/unix/sysv/linux/sigwait.c | 3 - sysdeps/unix/sysv/linux/sigwaitinfo.c | 3 - sysdeps/unix/sysv/linux/sparc/lowlevellock.h | 39 ++++---- sysdeps/unix/sysv/linux/x86_64/lowlevellock.h | 40 ++++---- sysdeps/x86_64/nptl/tls.h | 37 -------- 36 files changed, 237 insertions(+), 390 deletions(-) delete mode 100644 nptl/tst-cancel-wrappers.sh -- 2.17.1