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: AS17314 8.43.84.0/22 X-Spam-Status: No, score=-5.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RDNS_DYNAMIC,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 8BF391F8C6 for ; Thu, 26 Aug 2021 16:50:52 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BB87F3858D3C for ; Thu, 26 Aug 2021 16:50:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BB87F3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1629996651; bh=gsY5uum5r1s4o8dUx/p0G8Wm5/USqQRJL0bsrrqEcPs=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=x3TR3lhcwiUbZhvTQNQLZQrgkSryoqqFze6Xfe7XpuNzWjAl0ie9/89JpFGb0Xgn1 vUP9/qlCVzfslnn+8JqJzBIL5FAhhkAT1F3++h5xiH1iGN7lnCT7obmmbs+PbqGeqX hWWkPCjz2OR0ave5a5HV95iFWj7Vt+HZOKUWmlgE= Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) by sourceware.org (Postfix) with ESMTPS id 3AE9F3857C7B for ; Thu, 26 Aug 2021 16:49:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3AE9F3857C7B Received: by mail-qt1-x829.google.com with SMTP id g11so3001263qtk.5 for ; Thu, 26 Aug 2021 09:49:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gsY5uum5r1s4o8dUx/p0G8Wm5/USqQRJL0bsrrqEcPs=; b=kuNO/lry98aot9qfJZccC5p9BydKtFLEWYzAn5SnoqwvEmyoKvnrlLu5wF6V6iXcfi vQtSSLW5fwdItRCGPTPLMuNZ6zhJG+kulMQxvYr3CsHSm1RUwhXa7/uwLhLu/k2ll7iI woRKobM3QeQ8kOawe4xkO5Vc/7KsuIjMn5t+VQEcLUQz0lzpUm2+unKdYG9Ah3A/oFGe JcI3+YpxlhDKpV1/h9it4hypo8u/sPSdi+h5Mh319TCPtDfKQyD4a1Ft4HJ4eRUFXkCD dtzG1UWwYGrkdnb3Q0y2j5svLD4bTmi9vKZtLLVvUJWBObyCpx4o6MJWHK8hOMKycwW1 SkOg== X-Gm-Message-State: AOAM53055vK6V6q9pEeWxuCeLxKd9HxLri04JfzWI9Gve25efa9OZPdF 00Zyap85LMpziZnn9CPghsHJ0GweU/ZR0Q== X-Google-Smtp-Source: ABdhPJwhYzQzPpKpaglsa1eR01Y0STAh5uNZgl8odohmL5OANGNjsEMkPRoX6RmjUyB+ag1c8Wbo9g== X-Received: by 2002:ac8:12c5:: with SMTP id b5mr4164582qtj.215.1629996598643; Thu, 26 Aug 2021 09:49:58 -0700 (PDT) Received: from ?IPv6:2804:431:c7ca:1a68:4e82:9e7c:b7e4:7f3? ([2804:431:c7ca:1a68:4e82:9e7c:b7e4:7f3]) by smtp.gmail.com with ESMTPSA id l4sm2849311qkd.77.2021.08.26.09.49.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Aug 2021 09:49:58 -0700 (PDT) Subject: Re: [PATCH v2 08/19] nptl: pthread_kill, pthread_cancel should fail after exit (bug 19193) To: Florian Weimer References: <20210823195047.543237-1-adhemerval.zanella@linaro.org> <20210823195047.543237-9-adhemerval.zanella@linaro.org> <8735qw8qut.fsf@oldenburg.str.redhat.com> Message-ID: <382cabdf-07f9-b3af-68ff-00328a6523ab@linaro.org> Date: Thu, 26 Aug 2021 13:49:56 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <8735qw8qut.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Adhemerval Zanella via Libc-alpha Reply-To: Adhemerval Zanella Cc: libc-alpha@sourceware.org Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" On 26/08/2021 07:03, Florian Weimer wrote: > * Adhemerval Zanella: > >> From: Florian Weimer >> >> This closes one remaining race condition related to bug 12889: if >> the thread already exited on the kernel side, returning ESRCH >> is not correct because that error is reserved for the thread IDs >> (pthread_t values) whose lifetime has ended. In case of a >> kernel-side exit and a valid thread ID, no signal needs to be sent >> and cancellation does not have an effect, so just return 0. >> >> sysdeps/pthread/tst-kill4.c triggers undefined behavior and is >> removed with this commit. > > Wrong commit subject: “should [not] fail” Ack.