Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp11266623imu; Thu, 6 Dec 2018 14:30:07 -0800 (PST) X-Google-Smtp-Source: AFSGD/UnxzK/TomMO/2KEqsYr/pG1+zNgzwD7RmCNtK4etI66sAn7rvqkj8TrvJV6NfoTs+Lw0NL X-Received: by 2002:a17:902:e002:: with SMTP id ca2mr30468049plb.103.1544135407906; Thu, 06 Dec 2018 14:30:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544135407; cv=none; d=google.com; s=arc-20160816; b=j1RIyj6TG6lOC08qICrzrMj3HxishsxKxUEXj6NFyT/sMW0/qcYprNODercycrSQGs OfBH6Y05+eWkRw8goUW4fxTCH867dMsYy0oEvYRrO21SHFib48hFRjsVNJ7u2mtgHRHV pa5XqY2ScF1Y3/TVBt3a1hAVaxfjeq+gxFgRXt9HfL/LVKA1P40ILXdNkiJx0E56vYk5 ZXmGI3wL1Q3E+6b6UjyR20i0hVOOMNPEa+Bg4dR2nnw3cdprCjDRA8mjdEVCZnFdcQK+ pCbkRQhEsOJWaG3GbgTEt+A/LYbqMT1sywwd71gSgXbBwgfLN6IiH6gaTbOzB/gkZZx4 qKXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=m0j32Js+95+RbHUOZ29j8n82NAmv2nLUQBJ3OoNMP5w=; b=usVyZd1e5/fWyoQSWEcjnh7DCeG0B71T0rikMiExlFgkIIqqC4TJkapOQWwhHFpKob Km/HsUwBxICSafjBlJjvCcfyg6hG0+OpVifbH97fClL+M1wWpZvcJsHuBE+d1XRJV1Zu bxA3YTGSlLTNrQpodu/ZUQxjwtUWMAOFwKdtrcs7UI9B4gl+8dtndTtDft6X6NpVxB5S nPohFvbolRHicqOjcQ0i9aRJ1Mi5NAc7hCrmxJl0Ixa2GmnVE+5qjjLqqjloTxTD79bl B2dzChLZL5K9/6jD3c0+VBo+ZhtDeuiIyw8SeQV5G8zZoNUJVODF8DxXssN6EFH/fwc3 s50Q== 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 b89si1292042pfj.207.2018.12.06.14.29.36; Thu, 06 Dec 2018 14:30:07 -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 S1726053AbeLFW1t (ORCPT + 99 others); Thu, 6 Dec 2018 17:27:49 -0500 Received: from mail.hallyn.com ([178.63.66.53]:53444 "EHLO mail.hallyn.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725935AbeLFW1s (ORCPT ); Thu, 6 Dec 2018 17:27:48 -0500 Received: by mail.hallyn.com (Postfix, from userid 1001) id AAA6DA67; Thu, 6 Dec 2018 16:27:46 -0600 (CST) Date: Thu, 6 Dec 2018 16:27:46 -0600 From: "Serge E. Hallyn" To: Kees Cook Cc: Christian Brauner , "Eric W. Biederman" , Daniel Colascione , LKML , Linux API , Andy Lutomirski , Arnd Bergmann , "Serge E. Hallyn" , Jann Horn , Andrew Morton , Oleg Nesterov , Aleksa Sarai , Al Viro , "linux-fsdevel@vger.kernel.org" , Tim Murray , linux-man , Florian Weimer , Thomas Gleixner , X86 ML Subject: Re: [PATCH v4] signal: add taskfd_send_signal() syscall Message-ID: <20181206222746.GB9224@mail.hallyn.com> References: <20181206121858.12215-1-christian@brauner.io> <87sgzahf7k.fsf@xmission.com> <878t12efg3.fsf@xmission.com> <20181206174129.taakmwekysbkaosu@brauner.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 06, 2018 at 10:30:40AM -0800, Kees Cook wrote: > On Thu, Dec 6, 2018 at 9:41 AM Christian Brauner wrote: > > I feel changing the name around by a single persons preferences is not > > really a nice thing to do community-wise. So I'd like to hear other > > people chime in first before I make that change. > > I don't think the name is hugely critical (but it's always the hardest > to settle on). My preference order would be: > > taskfd_send_signal() > pidfd_send_signal() > procfd_send_signal() > fd_send_signal() imo, either procfd_send_signal() or taskfd_send_signal() It seems to me that using flags later to specify sending to pgrp vs thread is fine: it's specifying how to interpret the 'fd' in 'procfd_send_signal()'. > But, agreed, I think fdkill() should not be used. > > -- > Kees Cook