Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1009648rdb; Fri, 9 Feb 2024 07:44:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IEiGCs45ZtUNRVLuXWQouJ+YcoCQdAx+jgt/DN+I5JV1y75EXzm6L1I2JG/E4ovL5YHWhaA X-Received: by 2002:a05:6870:5586:b0:219:257a:da0d with SMTP id qj6-20020a056870558600b00219257ada0dmr1989579oac.51.1707493479635; Fri, 09 Feb 2024 07:44:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707493479; cv=pass; d=google.com; s=arc-20160816; b=OKceyqdUulVD9AUwmt3RA2K+/eCLfcE/FN6NVDObPolO6yfqvDNLpNa1XwJVjdUlmp /J944tJIrcIxmjixQjXhq++qJQOwiz3SE3Z26V1D082gTSQf/abWPhfR+vSyQ8BTdSza NS9Zy7B7JmX7rVqjrb5ZiYJqdFrSrBo+EYffJCzbk0SBuQguDHQvKrRapUxDNJLl/BNg aJkZtI54RMHZm7biZ5JVXNIQzkRUunNDghhAkWamB6Uy/6S9ZreUtZX7Mf8cY/VeMJGH aVt4p5N3vyCDkGFimmyJYJagCAMZHDNqyS4fnX3Jvy6VPb1zehLmVFL9pHhd3sgmFDoq NvIA== 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=8laP6uomvxanGYT7yrAFbIjiqPGzbWck4Bytm/WmMvk=; fh=nA8gCKE9+sWN68FHRbh2/gwYiox2RA7LkEFcrjv36zQ=; b=vH3W/lk/aJYL7KAghe0S+1EzzqXNa9avV5wP4miYubISgZuqkFk3HJkfsMrzhNBtOf 05Eo6mi60sK1Bd+ONAaoH7k6/8SDx8ZCMN1sqgWdV6hbTkVYxoTf+E8BprTmxUkMAI3c TgARYy0TFIoJ9yKCUs8kxiaU5IqpB1ap1Sd+SfkRJFFtRbUB08CxVzWnH9iyz+PRQTGX j3RTCWvHoB2YRsdKQEoCKnXjUiOTRAR/3RElkrUV1HNLvYgW3/vOdP1I2cN+gSPxXSZ4 /yiMbnStKYKgJkjLal/fTJ67o42pZS2TWcltnlh4vVn3WVAPdP/pLRQqjTqHtBC44NVI Cb/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LccG94XZ; 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-59549-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59549-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; AJvYcCWRto+ueemdEZv0bFjOd8CDMy7+kTO+r2JORM3BgwqtS3qtxVY3obKTLFib50dJCEnC+YqaHBomT8+ydUH0TAueeosxn1bnfJfjrg20HA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w22-20020ac87e96000000b0042c44e321d2si2082869qtj.206.2024.02.09.07.44.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 07:44:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59549-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LccG94XZ; 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-59549-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59549-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 623491C23689 for ; Fri, 9 Feb 2024 15:44:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 52C1574E3F; Fri, 9 Feb 2024 15:44:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="LccG94XZ" 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 23C2474E28 for ; Fri, 9 Feb 2024 15:44:30 +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=1707493472; cv=none; b=YLbMFjogvoA3Awjk5Qnm0F+MfFJac/XiwxYbncW1b98sPH1BWT9hn67AlhstN5TrXfZOnI7RGIncNqJZC6YlKoqyIQ3L8AV646AdF42nZ+m+XMkMghUbcwGI7LutvUC7uFAft0P8Yx2i5CV+8rBnGXZd7WflUrbCID4LOKxhMEI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707493472; c=relaxed/simple; bh=8laP6uomvxanGYT7yrAFbIjiqPGzbWck4Bytm/WmMvk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=U9QlBx/Qkm+7AK/hNhP/D7InbenTdNWM1uzU3SA6tc7NBlDWnw1VCY2zYxV/avGDPW41Gvf3uGQbNS/D++PamElYDXTPN8gjjiPj5SF2tmYzq/reTGkxG66cX/aNj4nI6k8B/52FHfbXajrgYFA/r7sP3EbJKH1QCIKMj5B17t0= 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=LccG94XZ; 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=1707493470; 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=8laP6uomvxanGYT7yrAFbIjiqPGzbWck4Bytm/WmMvk=; b=LccG94XZHRxVh66M3VNm/U1L7m+x1iYadhSCZTVod8itImpdh3mg/qF49fVoi/E/GZSAKN dAW0vG5WLLhPEQSrNCo+Pexf0bWUe3mbp4jReJ6hjlfY9VWbuPqkckAB3yXv99DJMRANTk lsXh0oZ+B2kPIKYZaS9RA68KnuVS3s4= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-584-tcF3PfSbMDufhk5k1eOCwA-1; Fri, 09 Feb 2024 10:44:25 -0500 X-MC-Unique: tcF3PfSbMDufhk5k1eOCwA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (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 AEEB338130B4; Fri, 9 Feb 2024 15:44:24 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.226.84]) by smtp.corp.redhat.com (Postfix) with SMTP id 0EC362166B31; Fri, 9 Feb 2024 15:44:22 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Fri, 9 Feb 2024 16:43:08 +0100 (CET) Date: Fri, 9 Feb 2024 16:43:05 +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: <20240209154305.GC3282@redhat.com> References: <20240209130620.GA8039@redhat.com> <20240209130650.GA8048@redhat.com> <20240209-stangen-feuerzeug-17c8662854c9@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-stangen-feuerzeug-17c8662854c9@brauner> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 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. > 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? Oleg.