Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10690337imu; Thu, 6 Dec 2018 05:21:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/W1a2QCqixbFbVQp+XzC2WUtUuKnvMp18PR2NQWXXRqR8M0dYgs4dN0Z3zxFpnCXE4mB2ia X-Received: by 2002:a62:848d:: with SMTP id k135mr28259542pfd.47.1544102493114; Thu, 06 Dec 2018 05:21:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544102493; cv=none; d=google.com; s=arc-20160816; b=Eqb6CgjGH9QFxRCqWJ1oPKGk1tV9ome8MVQTxMxDJp7hiGF/Pl5wQZlDnKB/h/nxTI gTUlyg8fWhPIskaXM7QEc+XRKwJzDGTk3IcjibHm/+JVx3PGTbmQAJyERhSsdqZXq09d 5kM6F0DKDzbwQ0IKsus3cFjt6speKD+jgzlPAiiMte7dUHFqDzHl79NPHugUQoVU2e9C nR+mAw4tn8ATqa4wlfRSdCk8FT7XxkQWTMjq/186eZ4/qOVqSILNxry2IWhtEiVejgCE K7Kfu9g5rHgYd/SV4XNy46LZP6seqa8QjovbiNFqqnEtsAjaiHfFZ4qbAmrgSVB3zftx M50A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=H1lRDfHaStL3Vg6vA9jFQMxX+o0wUe5lx2Gl0Ng29l4=; b=gLZ/Yl+/1OAQnmef7k8O8s00jgh/nxvidLKTHFnC0oZmcVyErT/Ssg0FffhnQrUpXk cXfb/9/utbOI9KsZm5GMAUMU6fY6Z1khGMmsqDOlyBHAt1TG94FkRwucs/LYRfOf9jU8 3iuZnfw+2e//scWSVlxr/VCA8n40Bn/wh1+8SU2gMuJEKy+eoDorC4GnptqrUPg3EqyI iQhQzARjNyeIhiKc5uofzh8JuvVgoi8H7tjzcO392N9RFwpowwOhGKh7qoGtI5vYgkep AzROmtjd925gWzeCfJl/hnz7i4ylU/42hs6d+CiN5vvkZN0Kz56eN0ZOwpMxtYV3SNUL KF0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h31si226714pgl.482.2018.12.06.05.21.14; Thu, 06 Dec 2018 05:21:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729620AbeLFNSy (ORCPT + 99 others); Thu, 6 Dec 2018 08:18:54 -0500 Received: from nov-007-i650.relay.mailchannels.net ([46.232.183.204]:16034 "EHLO nov-007-i650.relay.mailchannels.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728482AbeLFNSy (ORCPT ); Thu, 6 Dec 2018 08:18:54 -0500 X-Sender-Id: novatrend|x-authuser|juerg@bitron.ch Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1957C2EC002B; Thu, 6 Dec 2018 13:18:48 +0000 (UTC) Received: from srv17.tophost.ch (swiss-ingress-3.mailchannels.ch [46.232.178.210]) by relay.mailchannels.net (Postfix) with ESMTPA id 158912EC0007; Thu, 6 Dec 2018 13:18:39 +0000 (UTC) X-Sender-Id: novatrend|x-authuser|juerg@bitron.ch Received: from srv17.tophost.ch (srv17.tophost.ch [193.33.128.141]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.15.2); Thu, 06 Dec 2018 13:18:48 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: novatrend|x-authuser|juerg@bitron.ch X-MailChannels-Auth-Id: novatrend X-Turn-Drop: 351b22812587cfd1_1544102327847_1743630459 X-MC-Loop-Signature: 1544102327847:3638496485 X-MC-Ingress-Time: 1544102327846 Received: from [80.219.231.201] (port=47716 helo=jzen.bitron.ch) by srv17.tophost.ch with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1gUtY5-00FJ5X-4q; Thu, 06 Dec 2018 14:18:37 +0100 Message-ID: <89a6b3a24412d385a816d7d981c60cb1e1bbc0ca.camel@bitron.ch> Subject: Re: [PATCH v4] signal: add taskfd_send_signal() syscall From: =?ISO-8859-1?Q?J=FCrg?= Billeter To: Florian Weimer Cc: Christian Brauner , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, luto@kernel.org, arnd@arndb.de, ebiederm@xmission.com, serge@hallyn.com, jannh@google.com, akpm@linux-foundation.org, oleg@redhat.com, cyphar@cyphar.com, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, dancol@google.com, timmurray@google.com, linux-man@vger.kernel.org, keescook@chromium.org, tglx@linutronix.de, x86@kernel.org Date: Thu, 06 Dec 2018 14:18:36 +0100 In-Reply-To: <87pnue6bp2.fsf@oldenburg2.str.redhat.com> References: <20181206121858.12215-1-christian@brauner.io> <87h8fq7s84.fsf@oldenburg2.str.redhat.com> <87pnue6bp2.fsf@oldenburg2.str.redhat.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-AuthUser: juerg@bitron.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-12-06 at 14:12 +0100, Florian Weimer wrote: > * Jürg Billeter: > > > On Thu, 2018-12-06 at 13:30 +0100, Florian Weimer wrote: > > > * Christian Brauner: > > > > > > > /* zombies */ > > > > Zombies can be signaled just as any other process. No special error will be > > > > reported since a zombie state is an unreliable state (cf. [3]). > > > > > > I still disagree with this analysis. If I know that the target process > > > is still alive, and it is not, this is a persistent error condition > > > which can be reliably reported. Given that someone might send SIGKILL > > > to the process behind my back, detecting this error condition could be > > > useful. > > > > As I understand it, kill() behaves the same way. I think it's good that > > this new syscall keeps the behavior as close as possible to kill(). > > No, kill does not behave in this way because the PID can be reused. > The error condition is not stable there. The PID can't be reused as long as it's a zombie. It can only be reused when it has been wait()ed for. Or am I misunderstanding something? Jürg