From patchwork Mon Jan 30 14:02:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 92862 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp1377713obz; Mon, 30 Jan 2017 06:02:47 -0800 (PST) X-Received: by 10.98.211.220 with SMTP id z89mr22972632pfk.3.1485784967456; Mon, 30 Jan 2017 06:02:47 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id z126si12679510pfz.272.2017.01.30.06.02.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jan 2017 06:02:47 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-return-77052-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; spf=pass (google.com: domain of libc-alpha-return-77052-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-77052-patch=linaro.org@sourceware.org; dmarc=fail (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=gd5JKlS6VMtzg0pAuuwm8A8UuVSFPTaMfcTTpV8Sfm0PwmN1Iu1D0 2MV5I/QAJ6FDkMvxY4uwyAZ57vfuR2O+JUHNbEuO9ejICg7iJpM4HqWq6FiJpHMH czSIOJzF8BzURAuMuVCeUByBCIwwS5wDsaOYJGHOK8GegXHauvHxhQ= 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=jXL4I2D9Wt0wL9N3A47Ru1v9+aE=; b=F1bsQkruGKXHNQXoVkAntegsyD3J NZCJzLpkHXrmHK09FP5t06/HSsIyankaUYUIliaqrmHr9vOqewMcPJUo0ptLUfcz I+PtLHyMW4PFJINvRf3OEN77WuRD1kSkS+3rEFUH2hodem64r+YkQuGx1iyp10T6 BwMK+AxDu6FZAlE= Received: (qmail 46159 invoked by alias); 30 Jan 2017 14:02:34 -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 46149 invoked by uid 89); 30 Jan 2017 14:02:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=no version=3.3.2 spammy=Consolidation, UD:list, nios2, tile X-HELO: mail-qt0-f171.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=KCD8x1roVZ4jurJmwL4etQZK8/9bE/ON6ny4FMeYWCU=; b=f7bDDUWRfM+GnlqSDXHL+xjDvymrYZRBvDoBkGH+HnR3pnEU/6ykgW7wF6xxNVYjZH xSXdnuE0lcPAFBuiWX+HaJgvUphJevM00VShYyGnEkeH064Qm2XTUyad7/Z6WuRVnNaU P9J9xybt1/sXtE7klcLpeN9/k1LXLUuMBYeeiCBdPXraOuelFuUDr8rxs/xaVl2z8lyx WiOA9vf5d//n3qXNhaV2xG458kegrEWk1AkcQay5uJqNEfrXlJO+UlyZikK+dDJ0dEUo 5tkq6fG3T5ZMvW6xTVAwPBOnxgy5eeP/F4vat7z8dVwYdmN5PvqB772ck3Am3hArMMOp Hdog== X-Gm-Message-State: AIkVDXIzODLbELsmbzYYyxYITNKI4nU+AqnzMf8wmY4G568MOPbbLuUaDaAavwGoM/wrWpob X-Received: by 10.200.35.124 with SMTP id b57mr21548937qtb.147.1485784940981; Mon, 30 Jan 2017 06:02:20 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 0/4] Consolidation patches for bz12683 Date: Mon, 30 Jan 2017 12:02:02 -0200 Message-Id: <1485784926-2172-1-git-send-email-adhemerval.zanella@linaro.org> Hi all, This patchset is the initial one I am proposing for upcoming BZ#12683 (Race conditions in pthread cancellation) [1]. General idea is to remove all the auto-generation cancellation syscall from syscalls.list for all architectures to simplifiy bz12683 fix. These patches consolidates the accept, connect, recv, recvfrom, send, and sendto Linux implementation on default ones. I have tested a full build/run on x86_64, i686, x32, powerpc64le, aarch64, and armhf and a build/check for all other supported architectures (with run-built-tests=no). Besides the already broken hppa build (due the new pthread condition) I saw no regressions. [1] https://sourceware.org/bugzilla/show_bug.cgi?id=12683 Adhemerval Zanella (4): Consolidate Linux accept implementation Consolidate Linux connect implementation Consolidate Linux recv and recvfrom implementation Consolidate Linux send and sendto implementation ChangeLog | 158 +++++++++++++++++++++ sysdeps/unix/sysv/linux/aarch64/sysdep.h | 4 + sysdeps/unix/sysv/linux/accept.c | 7 +- sysdeps/unix/sysv/linux/alpha/kernel-features.h | 3 + sysdeps/unix/sysv/linux/alpha/syscalls.list | 6 - sysdeps/unix/sysv/linux/arm/kernel-features.h | 3 + sysdeps/unix/sysv/linux/arm/syscalls.list | 6 - sysdeps/unix/sysv/linux/connect.c | 5 - sysdeps/unix/sysv/linux/generic/recv.c | 32 ----- sysdeps/unix/sysv/linux/generic/send.c | 30 ---- sysdeps/unix/sysv/linux/generic/syscalls.list | 4 - sysdeps/unix/sysv/linux/hppa/kernel-features.h | 3 + sysdeps/unix/sysv/linux/hppa/syscalls.list | 6 - sysdeps/unix/sysv/linux/i386/kernel-features.h | 11 +- sysdeps/unix/sysv/linux/ia64/kernel-features.h | 3 + sysdeps/unix/sysv/linux/ia64/syscalls.list | 6 - sysdeps/unix/sysv/linux/kernel-features.h | 4 + sysdeps/unix/sysv/linux/m68k/kernel-features.h | 12 +- .../unix/sysv/linux/microblaze/kernel-features.h | 4 +- sysdeps/unix/sysv/linux/mips/kernel-features.h | 3 + sysdeps/unix/sysv/linux/mips/mips64/recv.c | 1 - sysdeps/unix/sysv/linux/mips/mips64/send.c | 1 - sysdeps/unix/sysv/linux/mips/syscalls.list | 6 - sysdeps/unix/sysv/linux/nios2/sysdep.h | 4 + sysdeps/unix/sysv/linux/powerpc/kernel-features.h | 2 - sysdeps/unix/sysv/linux/recv.c | 7 +- sysdeps/unix/sysv/linux/recvfrom.c | 5 - sysdeps/unix/sysv/linux/s390/kernel-features.h | 11 +- sysdeps/unix/sysv/linux/send.c | 9 +- sysdeps/unix/sysv/linux/sendto.c | 5 - sysdeps/unix/sysv/linux/sh/kernel-features.h | 4 - sysdeps/unix/sysv/linux/sparc/kernel-features.h | 6 + .../unix/sysv/linux/sparc/sparc64/syscalls.list | 6 - sysdeps/unix/sysv/linux/sysdep.h | 4 + sysdeps/unix/sysv/linux/tile/sysdep.h | 4 + sysdeps/unix/sysv/linux/x86_64/recv.c | 33 ----- sysdeps/unix/sysv/linux/x86_64/send.c | 31 ---- sysdeps/unix/sysv/linux/x86_64/syscalls.list | 4 - 38 files changed, 221 insertions(+), 232 deletions(-) delete mode 100644 sysdeps/unix/sysv/linux/generic/recv.c delete mode 100644 sysdeps/unix/sysv/linux/generic/send.c delete mode 100644 sysdeps/unix/sysv/linux/mips/mips64/recv.c delete mode 100644 sysdeps/unix/sysv/linux/mips/mips64/send.c delete mode 100644 sysdeps/unix/sysv/linux/x86_64/recv.c delete mode 100644 sysdeps/unix/sysv/linux/x86_64/send.c -- 2.7.4