Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10712210imu; Thu, 6 Dec 2018 05:41:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/UF90qyyEqBNQeaCWgCKQ3GCXk1XlEnPSNG3ocdh9krnU9HftvSLnc/fQbJjK5kGKlm06n+ X-Received: by 2002:a17:902:5ac7:: with SMTP id g7mr28653460plm.212.1544103693710; Thu, 06 Dec 2018 05:41:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544103693; cv=none; d=google.com; s=arc-20160816; b=Bb/3rFY9kFXBeNOL0RdyPBs1MtUWH5qh8wasESLWq8MgWHbtQN55FpdUJKNtPSqNhb nOywKx5f5NBVhPOs05Wz2VzZ0ZmSBopi7+RC+n8pwNTHU01AZbqmB0uPv560M3CWMvO+ JnsymOu8LpvKU6P9oQzKsAdWbHReq8aYDCDBp1y0Ae7Z0ZtB/BEfzzC2tHdHWeXupv1t uleAUEvs/VoApkYLQhhA6uYzXus7+HbZYCwZcHuv7/X2I2z45Q6c1nXIVUuIXwgT9Cqx 7fGLF0WqJCtoul4zccsGzzMHWkkKgycZIdh+ai5lTGTKz159My3p6DSMWi70cEZwvkxg YjHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:user-agent:message-id:in-reply-to:date:references:cc :to:from; bh=ZlOi7tkDFKvVwh9yhqegd3zeBZ/4Bk0j9VcOCPE3CDk=; b=bHfSS4rqe28/1wXCzOhwChSgEyoXAgzuUBDuQvDU/kAf/jwkXruaUZP8uV5Mrr3R34 zucwTVJpykQRiiVey9JPIgJmhNhflF5pUXNPSm5yStsfqE8b129kjPadc3l5Mpy26m/W TSOGFkNOwMpzANyxh5A+SdwqTCXvu6bJ8SQSVRTyyUyOQ/PmAQ/rGPmDHtiv01aWYtqu rEGAXsDRsUssRzFj5340d6VWU5mvylLahRlAwgW4qcRTRxD+r6APxhed4VoIT/rWPHqU Y5XnAmrMEHvzCC6i+TJAL6/m7O7f+jY+wSF2BofXYEFx0DBlOIlgQI2wUqIzWpZeMvdR NRUQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g17si251031pgi.578.2018.12.06.05.41.17; Thu, 06 Dec 2018 05:41: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729245AbeLFNkl convert rfc822-to-8bit (ORCPT + 99 others); Thu, 6 Dec 2018 08:40:41 -0500 Received: from out01.mta.xmission.com ([166.70.13.231]:36943 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728052AbeLFNkl (ORCPT ); Thu, 6 Dec 2018 08:40:41 -0500 Received: from in02.mta.xmission.com ([166.70.13.52]) by out01.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1gUttM-0003cR-Rr; Thu, 06 Dec 2018 06:40:36 -0700 Received: from ip68-227-174-240.om.om.cox.net ([68.227.174.240] helo=x220.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1gUttL-0006xA-T7; Thu, 06 Dec 2018 06:40:36 -0700 From: ebiederm@xmission.com (Eric W. Biederman) To: Florian Weimer Cc: =?utf-8?Q?J=C3=BCrg?= Billeter , Christian Brauner , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, luto@kernel.org, arnd@arndb.de, 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 References: <20181206121858.12215-1-christian@brauner.io> <87h8fq7s84.fsf@oldenburg2.str.redhat.com> <87pnue6bp2.fsf@oldenburg2.str.redhat.com> Date: Thu, 06 Dec 2018 07:40:24 -0600 In-Reply-To: <87pnue6bp2.fsf@oldenburg2.str.redhat.com> (Florian Weimer's message of "Thu, 06 Dec 2018 14:12:41 +0100") Message-ID: <87efaun587.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-XM-SPF: eid=1gUttL-0006xA-T7;;;mid=<87efaun587.fsf@xmission.com>;;;hst=in02.mta.xmission.com;;;ip=68.227.174.240;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX18JWiG7bCObOLUQ1daii82zk4vRUkuzT3I= X-SA-Exim-Connect-IP: 68.227.174.240 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa06.xmission.com X-Spam-Level: X-Spam-Status: No, score=0.8 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,T_TM2_M_HEADER_IN_MSG,T_TooManySym_01, T_TooManySym_02,T_XMDrugObfuBody_08 autolearn=disabled version=3.4.2 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa06 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject * 1.0 T_XMDrugObfuBody_08 obfuscated drug references * 0.0 T_TooManySym_02 5+ unique symbols in subject X-Spam-DCC: XMission; sa06 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Florian Weimer X-Spam-Relay-Country: X-Spam-Timing: total 543 ms - load_scoreonly_sql: 0.05 (0.0%), signal_user_changed: 3.1 (0.6%), b_tie_ro: 2.1 (0.4%), parse: 1.27 (0.2%), extract_message_metadata: 4.3 (0.8%), get_uri_detail_list: 1.69 (0.3%), tests_pri_-1000: 4.3 (0.8%), tests_pri_-950: 1.30 (0.2%), tests_pri_-900: 1.11 (0.2%), tests_pri_-90: 31 (5.6%), check_bayes: 29 (5.3%), b_tokenize: 12 (2.1%), b_tok_get_all: 8 (1.5%), b_comp_prob: 3.6 (0.7%), b_tok_touch_all: 3.0 (0.6%), b_finish: 0.59 (0.1%), tests_pri_0: 479 (88.1%), check_dkim_signature: 0.76 (0.1%), check_dkim_adsp: 2.4 (0.4%), poll_dns_idle: 0.40 (0.1%), tests_pri_10: 2.3 (0.4%), tests_pri_500: 7 (1.3%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH v4] signal: add taskfd_send_signal() syscall X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Florian Weimer writes: > * 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. I am not quite certain what is being discussed here. Posix says: [ESRCH] No process or process group can be found corresponding to that specified by pid. The linux man page says: ESRCH The process or process group does not exist. Note that an existing process might be a zombie, a process that has terminated execution, but has not yet been wait(2)ed for. What happens with this new system call is exactly the linux behavior. Success is returned until the specified process or thread group has been waited for. The only difference from the behavior of kill is that because the association between the file descriptor and the pid is not affected by pid reuse once ESRCH is returned ESRCH will always be returned. Floriam are you seeing a problem with this behavior or the way Christian was describing it? Eric