Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5840505rwd; Wed, 24 May 2023 07:27:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ532SWU1AyRf4jzTvppXEdjbdYyxvQey5++C0Iiu3tP+omQz5dlyCX75fqQfCj7yQbbieCw X-Received: by 2002:a05:6a20:9153:b0:10a:9f45:e3f with SMTP id x19-20020a056a20915300b0010a9f450e3fmr14313231pzc.12.1684938472488; Wed, 24 May 2023 07:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684938472; cv=none; d=google.com; s=arc-20160816; b=jHxBlQ3tmedIt0oeA9SAMRSpaoSrgfCFaZCsbo5zJ+wuQLBEZuZzlALl6Jx0Ih7RHz TeNWVkEUjGgMV5oUxpNKm90yAortB8Rkynd7dE/RKHgMMx9xBO/fgeZyWyaNJ45WpXyZ ZmuVhNGpLHLuSF8oWgEnf50bdkdOp+6OLpCV24wwSCTQUXtaTxRiuCWlwJDlOD8nbkme KoWgWzHa47OfVSgxa6u5fGDiH3cEUTZ7WbUxq/JM75rGOiFxqBpcbBe60Xag9b6oxlor qn6iCvad4ZAwBK9P33iFbMbsdD1LMF+MyvOBSt6o4bqlWQ5jHlZg5ZbZqy3ww5ga2xp7 WnvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=iPDHvMEUis0KqFn0g9sdEWNou1uipYbK1YxLUoZQd9c=; b=ahnb1JOr8oYH1JRAjG3DOdtF4RYJ2YBt0Rj3ddthapaKOtRyKWc3g3o6LkROTlQs48 ln0iho/Bym/jEsVKmiB/ei5N/2QF/fBJv82fRTV3LHoxZKbkIyp9lgrH8CDrJKNbriGf ogLFsdPYbzbfHUsZiSzbsHTnQU7pyAielzGkDshhpKRrWp5qnA9mBWi/9rc/uuUjYtMa xCNzYJFwz4DCMoa7QL4YrV/YMgyixp7lP77xPR78XUMAgIyR66Kv3Ph39fAOPv0iTwzT 1tfgVAkH0FQryrCFDQdQX11VtxI47A2b8KtZSlZPE5WAVPh8eVA0OOcMgjCo/F1Gbv6Y ih6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CycOpfWu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z11-20020a17090acb0b00b002470ea7f67fsi1488300pjt.3.2023.05.24.07.27.37; Wed, 24 May 2023 07:27:52 -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=@redhat.com header.s=mimecast20190719 header.b=CycOpfWu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230408AbjEXOLo (ORCPT + 99 others); Wed, 24 May 2023 10:11:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230021AbjEXOLm (ORCPT ); Wed, 24 May 2023 10:11:42 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DBA4E7 for ; Wed, 24 May 2023 07:10:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684937457; 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=iPDHvMEUis0KqFn0g9sdEWNou1uipYbK1YxLUoZQd9c=; b=CycOpfWu+sTlV7HaVUqju48wWI0tk/gOlSaQFyNdjJhgZ098cr8pS5d1zYPRDEkhgCGGeU mfMcOOYP+ikUHS9UIQtJmEfzdvqPVGSRfxTIGevzHLd8cFqaETzZbCjIcwVARowO7FBWjl N+DgOFOSQDud8PLqIIlji1C9kQg7tmo= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-549-wrRr0K_BP-6rHN-OLbSdNw-1; Wed, 24 May 2023 10:10:49 -0400 X-MC-Unique: wrRr0K_BP-6rHN-OLbSdNw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E7A3B80027F; Wed, 24 May 2023 14:10:43 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.226.231]) by smtp.corp.redhat.com (Postfix) with SMTP id 3E5B7407DEC6; Wed, 24 May 2023 14:10:40 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Wed, 24 May 2023 16:10:27 +0200 (CEST) Date: Wed, 24 May 2023 16:10:23 +0200 From: Oleg Nesterov To: "Eric W. Biederman" Cc: Mike Christie , linux@leemhuis.info, nicolas.dichtel@6wind.com, axboe@kernel.dk, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, mst@redhat.com, sgarzare@redhat.com, jasowang@redhat.com, stefanha@redhat.com, brauner@kernel.org Subject: Re: [PATCH 3/3] fork, vhost: Use CLONE_THREAD to fix freezer/ps regression Message-ID: <20230524141022.GA19091@redhat.com> References: <20230522025124.5863-1-michael.christie@oracle.com> <20230522025124.5863-4-michael.christie@oracle.com> <20230522123029.GA22159@redhat.com> <20230522174757.GC22159@redhat.com> <20230523121506.GA6562@redhat.com> <87bkib6nxr.fsf@email.froward.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87bkib6nxr.fsf@email.froward.int.ebiederm.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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 05/23, Eric W. Biederman wrote: > > I want to point out that we need to consider not just SIGKILL, but > SIGABRT that causes a coredump, as well as the process peforming > an ordinary exit(2). All of which will cause get_signal to return > SIGKILL in this context. Yes, but probably SIGABRT/exit doesn't really differ from SIGKILL wrt vhost_worker(). > It is probably not the worst thing in the world, but what this means > is now if you pass a copy of the vhost file descriptor to another > process the vhost_worker will persist, and thus the process will persist > until that copy of the file descriptor is closed. Hadn't thought about it. I am fighting with internal bugzillas today, will try to write another email tomorrow. But before that, I would like to have an answer to my "main" question in my previois email. Otherwise I am still not sure I understand what exactly we need to fix. Oleg.