Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1027991rdb; Fri, 9 Feb 2024 08:12:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IHkjTSdrHhAh/r8TvrNvLBK2hp7ktYfJiTiDqKZt/smNeRQJMp4DN49WfPB8nZOFeUuZOMd X-Received: by 2002:a17:902:c102:b0:1d9:f5dd:2480 with SMTP id 2-20020a170902c10200b001d9f5dd2480mr2043862pli.54.1707495138109; Fri, 09 Feb 2024 08:12:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707495138; cv=pass; d=google.com; s=arc-20160816; b=ouXDLb3dYqgy8V/4IIncByNYA4a/Ja9Qf8zTHTY4tfpi+AEVIruL0rKcfUZ4vnBJL1 iqJ/CRjTKqL53qYJyBDDB3ky1X12apCXegnb5YV97sz7Tgn6irRbiFi9ELdq1gkdnKir SrgOMkNKb64P1jXenqsoGwSMbEDB8Q8nJ0mp8tJklpnPgeExbgPjBxiYnaYvEktT8S2w jzpLvaPONJzye8aGZ3//znvv+NeK9Fp6uNTwv+2uc1Pe/0G9/EDGVzb6ksek6JztOsXs lXWIY35gfbL1HvSI24/qM5uLoubbBVvu7DpthjfM+1HlpS54b8KUjwC7ULEHjwScPu1D NrPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=N3dZ30XKrkBxm1GoWJv+xvGtBjtWNn6zJnx9lWsQkLA=; fh=0PYQq7UsAWqvOfFfECkksRICdzt4POaUtX4uHQBKg4c=; b=xqwYytoylF5bzN1hMdYkIV2Gz+ZqcUioUyhG4YhCSdt64k14SnDauPY8gltdyykChL SCg9aFSuwSzBlhQ9l6Gyhkk0iMUuTuyxve4ZrZKWDz7XYPBi/wZrj79fYrZLncXLvTWf RtiaRgl4HjrzIYjh/zL54raL1Gn2AIpXO5NEfsIodkwNLUfW+0V7PgwWujXr2DCQyYl6 20tj2AlnS7dBFrImW5iKRslcszDhsC2BZSJeRAqnYzcLZto9UbKysgUCb5oY8MormZv5 nZ/p48aBgu5CjrKO9gvO/gvbaWCooAJPpfQiOtw6ZOWVZmPeZcLLZUB7OMZbH7iIFIKx sXGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J9EqvZC0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-59554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59554-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCWwdMN+hTzEKVJRFOHASX+oPi2i01aOlO1bfqtYxbd8eN4AkVmgtgG+PBmlbwhsIQD6np+2JcrSbzLZ3dmf8zWhgtnAFgh1RDZySnCiLw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q1-20020a170902dac100b001d945458de9si1924580plx.310.2024.02.09.08.12.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 08:12:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J9EqvZC0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-59554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59554-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2866828A92A for ; Fri, 9 Feb 2024 15:49:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4DFCE7603D; Fri, 9 Feb 2024 15:49:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="J9EqvZC0" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 745916BB5F; Fri, 9 Feb 2024 15:49:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707493774; cv=none; b=i2kcEgvYW5rSw//vsaSxQzjl+TKu5x6KuRaWAXitorOAuyg0nvewMypvjtE4qbxJhWDbPWHUBpQ7BQQpYPTA8xCA2D8osTYAdPOk76ArCJOZUEvP3goCu6MriyT5mRnWcqOGKW9CaZFOwm9f8t3G3wbdLrtr4VcvMIRbU97ABow= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707493774; c=relaxed/simple; bh=k7tvZPpSMb4OW245Ntd0Rp1l7PgO3EQh14sovzKs2KU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EeI9zK/guzWysIYEK31KwpS7qQH131zDAwXq2QZ/4FLBnbbyBGyYtwK3y+5o8HQxsnavDYJlEM3+UGLBRBLmZVBIVxzROLaaeabN9riRphYBDcfkJmEhTc9uHzZDzzyA5lW/a/nz2ZaWBHK+MUpaXyYaI+ZdRyewCg+x+16U5GE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=J9EqvZC0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35E1CC433F1; Fri, 9 Feb 2024 15:49:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707493773; bh=k7tvZPpSMb4OW245Ntd0Rp1l7PgO3EQh14sovzKs2KU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J9EqvZC0iA4Kv/hbjuw6jBQuIRftl6sMLovxy5DTLF4LYcmibxM6Mc0hD7xDhFvF+ bMhUaOGrQp5PSU/w1cI90oDUdG2D12J6p34JlK+SHIn6NSmptCck2YS3PytcWWwdkV 1mTbolst3o5WIUR8QyKnFLWPw4LQzw0HzzB6dUJzEsNc6RplfDW/30qytBNZEcQzAW 2TxdXa1lBcSsZShm89/0MQ16TbswhzEI3b0lHZJrKOy1ySEIq5ukRrsuI3SMLixdKG JS98a06Of7nC6eP2f8XnGqHmYBck0Joo97kAFrBIQGNSFlNxv7e8qxCgB2cXatAT22 YgRYrMSHJp0KA== Date: Fri, 9 Feb 2024 16:49:29 +0100 From: Christian Brauner To: Oleg Nesterov Cc: Andy Lutomirski , "Eric W. Biederman" , Tycho Andersen , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] pidfd: change pidfd_send_signal() to respect PIDFD_THREAD Message-ID: <20240209-radeln-untrennbar-9d4ae05aa4cc@brauner> References: <20240209130620.GA8039@redhat.com> <20240209130650.GA8048@redhat.com> <20240209-stangen-feuerzeug-17c8662854c9@brauner> <20240209154305.GC3282@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240209154305.GC3282@redhat.com> On Fri, Feb 09, 2024 at 04:43:05PM +0100, Oleg Nesterov wrote: > On 02/09, Christian Brauner wrote: > > > > How do you feel about the following (untested...) addition? > > LGTM, but let me read this patch once again tomorrow, I have > a headache today. Bah, feel better! > > > I've played with PIDFD_SIGNAL_PROCESS_GROUP as well but that code is > > fairly new to me so I would need some more time. > > Heh, I was going to send another email to discuss this ;) > > Should be simple, but may be need some simple preparations. > > Especially if we also want PIDFD_SIGNAL_SESSION_GROUP. > > So the question: do you think we also want PIDFD_SIGNAL_SESSION_GROUP? Thought about this as well and my feeling is to wait until someone asks for it. Right now, we have a reason to add PIDFD_SIGNAL_PROCESS_GROUP because of Andy's use-case. If someone has a use-case for session groups then yes. Otherwise I'd just not bother?