Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1031289rdb; Fri, 9 Feb 2024 08:17:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IFz5+v6CbnoQ2EAXCgykN05VtHxXuc2DkZVvnPWuTsSkKoHXn08IevrMRedguZdltA7PMMk X-Received: by 2002:a17:90b:185:b0:292:679c:1ace with SMTP id t5-20020a17090b018500b00292679c1acemr1832300pjs.14.1707495434279; Fri, 09 Feb 2024 08:17:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707495434; cv=pass; d=google.com; s=arc-20160816; b=Jeu8Y6/+PGaswfRSYbGhFTouuSn52+PhDPv5cYbtv8JFdIBC2+qs4bu10DeHDeNbUL jzgCqPcUGyzSbVOW5XB1NyMXQy0WYhWMHQNTB0YUD7my32Q+CZKeRkUbTqmKcYQKz/9t CTXzQEPRowjtuLhZL5rp66/Bg1z55ustYvVWnVLaz+o4R8ip7FDO+1ThOftgB6zxubhv KzmHQwBuy0WsjUDj2p6o9ZmZLzv2kwN1EqXgAZP7DcYG6pQTdTm1kPL63+og3s/5kJYC 2D+4Ef5d3ZpM2ylTazMEP73Zo+6VP4edR9AE3GIb/P66reTaaMhMCMC43C2VZB7TByEX FLdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent: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=9liaOJHkXmgoMLq2BOqbcJsWNZ7++m9AMPpRUz4DQBU=; fh=zACjxCB1HQD1pW9mjva+mecJMsJfa9W67JbBw7V3cuE=; b=Z794o+JM3c1PjFZs2CYjOVGnge9TkVftDudtcYd+z4hgQKLMBLONOsjluSApDUIn5j nzDXZOjPNMVcaFYW2ZowlDo1zVeKIjcrPL0OZgjfD0S80WqEsO+2lQQVaQMqFOxmL3Tu V4quk+lFClOXx6uFfkdTIsuviw8j/JP/i1h6pyQbTaY76fKmx/+JkPJR0/wNd9ltcLfu Oz4SAtvWrqCuMv0dfgRM+9abtHYS76rgc8FmqMj5cSh1CvzQKAIxUeYhaMUIj1Mz2sPe ZJOitJ8lXNgcUeGxxXKWkqeyuzGtAoRxg5YlZ9iAw00cHghDKL1DGfX82fxylLGU6MiN wFDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eJo24ZyD; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-59566-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=2; AJvYcCVPfbR/R1cMY60cDVO84mCxM6TznhnXk7VqA2BB/GWrYuvWJMLZ/vUEk8LM1aI4+6nK657A17groDf167EKV43M3dvzg/UhKV+ugglmdQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id gt12-20020a17090af2cc00b00296dfa1040dsi1846067pjb.141.2024.02.09.08.17.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 08:17:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59566-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=@redhat.com header.s=mimecast20190719 header.b=eJo24ZyD; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-59566-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 908FE28F941 for ; Fri, 9 Feb 2024 15:58:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1360576046; Fri, 9 Feb 2024 15:58:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="eJo24ZyD" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 C198D7603E for ; Fri, 9 Feb 2024 15:58:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707494290; cv=none; b=nWoGUz2cbnb0jiQjqNbqjmm/JMLeo1U8ZZSZDi52Ne9C9oG9SShlZgWKFDYwEnRhTicPFzV/h9ILZm9e44BM3n8Z2kCMSFGzcnjKyZmRfj7EqlVeroD4m5NfIOp08EaLCev6+hMnxzeLV7Ntlf5a+Iht05N3umnODHE2xo4wdDI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707494290; c=relaxed/simple; bh=9liaOJHkXmgoMLq2BOqbcJsWNZ7++m9AMPpRUz4DQBU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=I0Xfogzhyi+PNf4PiYBFjRjvkUYdQV8mBeaudpmE+GevFAnXP5MpDmbrWk4oNGCNHbZg8noPjPRef1+GBJrDBVeGP8HgppPhZNSSixKHhJXuXhhAkRtrxSuEoW7+Bz+bse1lyGDyYLer5MCS6gJ1t1IFvEqcWWo1tz8zYj4ln9I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=eJo24ZyD; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707494287; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9liaOJHkXmgoMLq2BOqbcJsWNZ7++m9AMPpRUz4DQBU=; b=eJo24ZyDMmPlsogtRIFAltPi97s9Ge5MoEKqiRqRoBTZf6pGygjRmGA8XziYjUEVXdL8S7 mhN9XNMaQDIMGI3JdF/+J5LuqRfg4jTYTgqB6Nr+8ftyZsvFEQ3wr9H0q08xKX0Hi+Qs2+ UZ0cuGgk//O784Hx86Eh4N7SNdzZIc4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-350-xcCQgqAgMLaBubu3R9dYCQ-1; Fri, 09 Feb 2024 10:58:04 -0500 X-MC-Unique: xcCQgqAgMLaBubu3R9dYCQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0544B185A780; Fri, 9 Feb 2024 15:58:04 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.226.84]) by smtp.corp.redhat.com (Postfix) with SMTP id 58FA840C9444; Fri, 9 Feb 2024 15:58:02 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Fri, 9 Feb 2024 16:56:47 +0100 (CET) Date: Fri, 9 Feb 2024 16:56:45 +0100 From: Oleg Nesterov To: Christian Brauner 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: <20240209155644.GD3282@redhat.com> References: <20240209130620.GA8039@redhat.com> <20240209130650.GA8048@redhat.com> <20240209-stangen-feuerzeug-17c8662854c9@brauner> <20240209154305.GC3282@redhat.com> <20240209-radeln-untrennbar-9d4ae05aa4cc@brauner> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240209-radeln-untrennbar-9d4ae05aa4cc@brauner> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 On 02/09, Christian Brauner wrote: > > On Fri, Feb 09, 2024 at 04:43:05PM +0100, Oleg Nesterov wrote: > > > > 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? OK, agreed. and I forgot to mention, if you want to add PIDFD_SIGNAL_PRGP you can look at __kill_pgrp_info(). Oleg.