Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10716591imu; Thu, 6 Dec 2018 05:45:51 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vn30MjBN3YC1Ld/m+1MRO3cY+ZBiH9LiDpv3d5rKI44iFhuvPowdi7cqpxweptcXDgREqd X-Received: by 2002:a62:ea09:: with SMTP id t9mr24853827pfh.228.1544103951498; Thu, 06 Dec 2018 05:45:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544103951; cv=none; d=google.com; s=arc-20160816; b=jb0ertS0gQge0uBhKZ93SfvOumJEqTATg2rrE9fY6I3T/SSbYGWlM6tK/lmOy43y5V B4bss5EIpDaOb7zdUG3npEXe7mM57O37MjctApk3uFB5y7OpW5gm4zLOyXV1aV1tRVsh rsfANl3emc/qAVsa3bADVjXAbNNz0ua7RMfymIzBEJbu3ajKVxv+BGHxDDJits/tTvwo P2+vF73XAf+K+DTlFqaFn/0r5ltq4tvwLyI3EKQwmywbaMEt4SDVp7VduyiKgQOKY/yu uspmnll2yboXU7wyCRC4+yBXyD41UOrZM4M+fVhBbjKpIJjs+VTMupaf/49ZQ+w+SiDi M0GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=swyFTARr3FXY/tAXd5/JmQB2Ib06pcsSfd4kaLqyyBQ=; b=sKAT7TeymlzdXxJLo1At5v5w5IrCPuqX9Ls15+oJbltLc9R++GlwKTpnpG7WSR75Fq Ac/mtGHzSzO28MHX3cSsuKA9HmWbM6VWpI7nfO0cytSDgo0aWXEfz3gD0NxZo30BHozG e3b1ZVB8m7SJx+w6IkyO0EPFVsEsf9c7x32uNCNeuKQ6D++mJ76WccCVC70+Pu79csZ+ L1lub/cerd70z689tS0ooWkkcK2dPl2eXnUA6InMTocS1FFq0jlC54/moTnfr49iVAEo KEdYctY2XbnBZoak7OWNMZhwhJZrmPOSBK72C3Km4JWgaVBXsjvM86O4t8xjxYyWMNlR tXJA== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q16si305022pfh.138.2018.12.06.05.45.31; Thu, 06 Dec 2018 05:45:51 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729001AbeLFNor (ORCPT + 99 others); Thu, 6 Dec 2018 08:44:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60028 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727704AbeLFNoq (ORCPT ); Thu, 6 Dec 2018 08:44:46 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D9D6D315485C; Thu, 6 Dec 2018 13:44:45 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-116-105.ams2.redhat.com [10.36.116.105]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B691D1001F5B; Thu, 6 Dec 2018 13:44:38 +0000 (UTC) From: Florian Weimer To: ebiederm@xmission.com (Eric W. Biederman) 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 Subject: Re: [PATCH v4] signal: add taskfd_send_signal() syscall References: <20181206121858.12215-1-christian@brauner.io> <87h8fq7s84.fsf@oldenburg2.str.redhat.com> <87pnue6bp2.fsf@oldenburg2.str.redhat.com> <87efaun587.fsf@xmission.com> Date: Thu, 06 Dec 2018 14:44:36 +0100 In-Reply-To: <87efaun587.fsf@xmission.com> (Eric W. Biederman's message of "Thu, 06 Dec 2018 07:40:24 -0600") Message-ID: <877egm6a7v.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Thu, 06 Dec 2018 13:44:46 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Eric W. Biederman: > Floriam are you seeing a problem with this behavior or the way Christian > was describing it? My hope is that you could use taskfd_send_signal one day to send a signal to a process which you *known* (based on how you've written your application) should be running and not in a zombie state, and get back an error if it has exited. If you get this error, only then you wait on the process, using the file descriptor you have, and run some recovery code. Wouldn't that be a reasonable approach once we've got task descriptors? Thanks, Florian