Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp519742imn; Wed, 27 Jul 2022 12:27:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vyQkPpzbRC1jFKe6MMRB5BAIrUcaDQ0p/vWDcdFHruH/Vw5ZMsYPcRjLgU1yuKrL2zOerx X-Received: by 2002:a17:907:a218:b0:72b:8aae:3f8c with SMTP id qp24-20020a170907a21800b0072b8aae3f8cmr19124280ejc.191.1658950037193; Wed, 27 Jul 2022 12:27:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658950037; cv=none; d=google.com; s=arc-20160816; b=QxhEhYNH6xFUpH3yM8+m3dB6imR2u7OvPCezF3laUQSQYXl4+uNu7Yga6eZhyoW7no iIrUQCquuR71QVXPP7gVekbujrd3fkhy6D6bjS0bgt6y7zYS0jzV9Cspj7/UEov5vX1c LGnplh/Sm1leV1o/BQOAwRXZL10OLGB66iy2ZtwHI3cgqKiZFbQyEYQCiUaj5tJF1yOc PyViz78tZ9phFDkexI/0bbu6QSQBLjM9dAIQ0JBiMxMj+EodHesnbvP7uoKwFlsJ6tas djnnNJu/jTBGHy99RMCaS3kgOlXx0BE5zX7xLuHMKa283x1pexlNMcb0Fjq1VsUA6knD 9R4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=qIWv+ZMtF2lt0YMNEhnDHuA6uaYCrHAWKeY3aG5HYac=; b=s9reL+R/nYaHIYQoAOv1HxRa50jh2/KZ7khk+lhUWRU5zdEl8+x1ClDJlSy2wDN1Ib RyNTxb/Zdpv+lfegLI4D6d7gXpuE2EFp6w2j/QQWOvGBOfp7WOibF4fOBOJkhBH59LF8 fk6ybmrRiid4cmRg2ddb39MM6KJQ2ReWPDvEvhQTd/dLB+SIAOHEBFp8V7IHqJuwHE28 h8cKWnu0XZ4TwbL7eiJBAg+8C/obrfTnB9MdFSzBoOPtsvhj5jCGnG2OGCX7+khhpAyj j/tfKAvaWHo+0RdeVRzjUL7CKqDQT8TidF/k+7qYuraJAXSOCKLuH9g6lEk00zjc//dp s0mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tycho.pizza header.s=fm2 header.b=bbkvSchr; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=sHaFahFV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w22-20020a056402129600b0043ccf4904b0si958019edv.341.2022.07.27.12.26.51; Wed, 27 Jul 2022 12:27:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@tycho.pizza header.s=fm2 header.b=bbkvSchr; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=sHaFahFV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234418AbiG0TDY (ORCPT + 99 others); Wed, 27 Jul 2022 15:03:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232410AbiG0TCn (ORCPT ); Wed, 27 Jul 2022 15:02:43 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66D7A10D6 for ; Wed, 27 Jul 2022 11:18:10 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 982905C0156; Wed, 27 Jul 2022 14:18:09 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 27 Jul 2022 14:18:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tycho.pizza; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1658945889; x=1659032289; bh=qIWv+ZMtF2 lt0YMNEhnDHuA6uaYCrHAWKeY3aG5HYac=; b=bbkvSchrtgoiEmiUyW+gU6LRiA cwth1Swzn5uiGk0d6GYSbxGzJFbonJlgGXYlhfy7RmayejCE2GZ+YuxmiJ6SHpta INE7qCmHLhx7gUWt9RULcYoXNUnRK/mL628UH7g5sZv3I56lVyG9z5Ay2BOLx4GJ b6YSsPABvzgavQLs7FGnqKULr39OLAN66pNjyYIIfw3+8ZMVJhYm3XhaEZifKl7J t9Lic3Jt1xGF8X6gtPEorC2oJjLzAqQJmtYE4wphuhmVDDJM99uaUQ1o8xk3rMmn qynUjB7EQBOft7liFmV5uiT//2sNdA8h/QlHPCk5ACZJUqCqsaiMBqm+I5rQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1658945889; x=1659032289; bh=qIWv+ZMtF2lt0YMNEhnDHuA6uaYC rHAWKeY3aG5HYac=; b=sHaFahFVqjrOvnXYD16N4CO7W2Jjk+pJIgmKRg+tuF+p /lWhDoFM8bQvJ+S024rYP0bAXqa4CS9xNbCphJLvJf2uWjnKA/fg7baehYZqQZoK gzyJidGRPXmzAeeUXMHM4+S/CbFgOe6GUcv8HE2uai2/KSX8/ZizuhFv9LCZFiLZ uqm0Ulk5pc3AHJ6zs6gg1ElGkVWVDxNrc627GiGMcEabxvTTHFKWiVeF6FjaOIUg ca+fiyAu0hhVwNyCMkuNhhbqBKH2AYIQt+fZHqfqEz6hAyyuXs4G6sQrr+9+bsH7 HUQLs3QVZlcV/zzuuU7lJm8i7KwzPdmxskCqiciuBg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdduvddguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefvhigt hhhoucetnhguvghrshgvnhcuoehthigthhhosehthigthhhordhpihiiiigrqeenucggtf frrghtthgvrhhnpeelveduteeghfehkeeukefhudfftefhheetfedthfevgfetleevvddu veetueefheenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthihtghhohesthihtghhohdrphhi iiiirg X-ME-Proxy: Feedback-ID: i21f147d5:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 27 Jul 2022 14:18:07 -0400 (EDT) Date: Wed, 27 Jul 2022 12:18:06 -0600 From: Tycho Andersen To: Oleg Nesterov Cc: "Serge E. Hallyn" , "Eric W . Biederman" , Miklos Szeredi , linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched: __fatal_signal_pending() should also check PF_EXITING Message-ID: References: <20220713175305.1327649-1-tycho@tycho.pizza> <20220720150328.GA30749@mail.hallyn.com> <20220721015459.GA4297@mail.hallyn.com> <20220727175538.GC18822@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220727175538.GC18822@redhat.com> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 27, 2022 at 07:55:39PM +0200, Oleg Nesterov wrote: > On 07/27, Tycho Andersen wrote: > > > > Hi all, > > > > On Wed, Jul 20, 2022 at 08:54:59PM -0500, Serge E. Hallyn wrote: > > > Oh - I didn't either - checking the sigkill in shared signals *seems* > > > legit if they can be put there - but since you posted the new patch I > > > assumed his reasoning was clear to you. I know Eric's busy, cc:ing Oleg > > > for his interpretation too. > > > > Any thoughts on this? > > Cough... I don't know what can I say except I personally dislike this > patch no matter what ;) > > And I do not understand how can this patch help. OK, a single-threaded > PF_EXITING task sleeps in TASK_KILLABLE. send_signal_locked() won't > wake it up anyway? > > I must have missed something. What do you think of the patch in https://lore.kernel.org/all/YsyHMVLuT5U6mm+I@netflix/ ? Hopefully that has an explanation that makes more sense. Tycho