Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4376027imw; Tue, 12 Jul 2022 07:00:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tgsL7KccA/YEEQTxrvLfUYQwk8qtU8TSgamadIs64pRE+hPF3jZiq/dyiqJ23N5V925BZ3 X-Received: by 2002:a17:907:6eac:b0:72b:7bb4:4ee1 with SMTP id sh44-20020a1709076eac00b0072b7bb44ee1mr4610616ejc.76.1657634453718; Tue, 12 Jul 2022 07:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657634453; cv=none; d=google.com; s=arc-20160816; b=E41VNU4ASenAw1VCvw5qEI/Hk8LiXop9tBp9rsrmYeYxYaREP5n/ugscyG4MqzkEHA DZ10l/iEB9hy3VsLf2AZEBB4ZaUiL/LxLHvuemUWgag2jERNU1Bi8YvzlYHoiBmGT4GD WM77nWY+Ns1L0FWL/gCCKa1AMIVNH/YlNrrBk7ziTN50dlHEfaRIXMdl8U6rOVIJOVg3 AB0ZzhOnl9l8IW4NCEynLjP4dnfv7Bt0FkM2alaAwpXL6YrjI+NdIJ5/pT1b6kHKeo/q 4Ctr4Ah5o1c+/IrWJNyCqcK0DUByaxpi2tehAoHYV395OEnoYBtXykFlu9qaguyZFZfL H+1A== 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=U63C9vKYqbyyQVXMseKFJL5UTTd7BOn74sOr5EP6CUM=; b=oh5lsDxEGb2xPGkXjh+I6JSezB7MnHjgR1JPY6hKxzlMk755uoQZAIzXsGTd76jkSS 6Ibg3Mkp56P9to0UYPtrUzV2Kn0TIdupUjIq5s6OqPGnPJCeDFer4Z3wiOMtXEcg6oTO uJ4HWsplbLuiROt3alu/DplGS0Fx00YKlYTQ6cw+wumdMeLoFRNoczxqdLOg062n7gU7 RJyhXu5OQTMFWMl2/Ubh754Qk/5aI5BSK5Cv75sNtn1K67OF1fOecUd9HRAgkUOJtBRl OK8TnQ5gYLXajQvSrid8V4ROvUTGBcFg96q5l+nCGFhG8ikHFa2a2/j20zH6ZHD2sxBI 1O4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tycho.pizza header.s=fm2 header.b=MbNJjCTt; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Fcd2Oxcz; 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 oq19-20020a170906cc9300b00707aefb3cc2si11384766ejb.510.2022.07.12.07.00.26; Tue, 12 Jul 2022 07:00:53 -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=MbNJjCTt; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Fcd2Oxcz; 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 S233174AbiGLNoh (ORCPT + 99 others); Tue, 12 Jul 2022 09:44:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233195AbiGLNoI (ORCPT ); Tue, 12 Jul 2022 09:44:08 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 167311EEC9; Tue, 12 Jul 2022 06:43:57 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id CBEEC5C00E9; Tue, 12 Jul 2022 09:43:53 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 12 Jul 2022 09:43:53 -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=1657633433; x=1657719833; bh=U63C9vKYqb yyQVXMseKFJL5UTTd7BOn74sOr5EP6CUM=; b=MbNJjCTtD2flfZ2hTQGRAS++5o zqXTGq+UznE4x4bwhzAXZjGutckkgY/Ocyyp12HgJvDlzFepqFGYZmF17v/jSOl3 3y6O8G434Indwh4khZQygy/2vkyJC07tnXSyd/Vx5krsh36o6cvkjEw5bsnkBSjQ +WwdrimTWSyVnlolxA8fK+LFP3TG2nJrFLuxZlTf5Ay1i9H9jvAnTsyslut8AEJf paKgHwkmqbT722AYzHjvJxOrb06siNqlGBSGtp2XH7q5ga3x7Ar4nqYMksQGs/+z utefzIMLPII2JDzvxZMRhyJjy2bRNcpCfdRDzshYGcUcJayFY0QlRHZEzR+w== 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=1657633433; x=1657719833; bh=U63C9vKYqbyyQVXMseKFJL5UTTd7 BOn74sOr5EP6CUM=; b=Fcd2Oxczk3F178MxWy3slksKMXCjtS3pStt7VwHyJlh9 oeOqT1jZd/vDQlkkKX3kAhe83Gg9aYxBjG/axX8utz7bV0TJSeEErpVHQUFi+yap XvvBkBDp68N4OL3TJzF3Gyw2gs2fp2o7SfjmPrSp6bUYnvcOuiZYDDqMzkSOOyfV YaEj6PzgQsNzziK8LroD4MwD8kyH578cBQt8EnaiL3iXu84fX+uh/LEnd3bYOsw/ WsN6sXdYKOjiAU4Jz25nXYuzyetSiWNofU0Qa5KNMOJZjCidMwwyMKu9CwyDAdBP daNvSTap4BiXnTwOixZpK66RbYhDlHuxmjJt/Nq54A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudejhedgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepvfihtghh ohcutehnuggvrhhsvghnuceothihtghhohesthihtghhohdrphhiiiiirgeqnecuggftrf grthhtvghrnhepueettdetgfejfeffheffffekjeeuveeifeduleegjedutdefffetkeel hfelleetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epthihtghhohesthihtghhohdrphhiiiiirg X-ME-Proxy: Feedback-ID: i21f147d5:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 12 Jul 2022 09:43:52 -0400 (EDT) Date: Tue, 12 Jul 2022 07:43:51 -0600 From: Tycho Andersen To: "Eric W. Biederman" Cc: Miklos Szeredi , Christian Brauner , fuse-devel , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: strange interaction between fuse + pidns Message-ID: References: <877d4jbabb.fsf@email.froward.int.ebiederm.org> <87zghf6yhe.fsf@email.froward.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87zghf6yhe.fsf@email.froward.int.ebiederm.org> 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, T_SCC_BODY_TEXT_LINE 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 Mon, Jul 11, 2022 at 06:06:21PM -0500, Eric W. Biederman wrote: > Tycho Andersen writes: > It is not different enough to change the semantics. What I am aiming > for is having a dedicated flag indicating a task will exit, that > fatal_signal_pending can check. And I intend to make that flag one way > so that once it is set it will never be cleared. Ok - how far out is that? I'd like to try to convince Miklos to land the fuse part of this fix now, but without the "look at shared signals too" patch, that fix is useless. I'm not married to my patch, but I would like to get this fixed somehow soon. > The other thing I have played with that might be relevant was removing > the explicit wait in zap_pid_ns_processes and simply not allowing wait > to reap the pid namespace init until all it's children had been reaped. > Essentially how we deal with the thread group leader for ordinary > processes. Does that sound like it might help in the fuse case? No, the problem is that the wait code doesn't know to look in the right place, so waiting later still won't help. Tycho