Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2624329rdb; Wed, 4 Oct 2023 06:59:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHlF5zlHU6ltNo4cv19hixZqI+xENtygINt+nVUZgDV1TMPRkWekcXdG+eanIM9RYXJop0/ X-Received: by 2002:a17:90b:1917:b0:274:9ace:e9eb with SMTP id mp23-20020a17090b191700b002749acee9ebmr2092274pjb.3.1696427963826; Wed, 04 Oct 2023 06:59:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696427963; cv=pass; d=google.com; s=arc-20160816; b=Z1sxBpUOWUUazPzAaCuqzy7reRmhTmTYzVcAApaC1v3CYEhp8+LroBLzfz/0Y476YV wycsRQvSxnNhA/dLmKZkrpHNH1Hf840fpMmV4sfc8QNOY0VLPVQdEKTZFD8ZTCSZrf2x Wwkm1YZSYpT9oEJf23giMTNoisGguQB5itBNttR6Lox0xNAzU9Pvg32ixH1eGsOsf9Fn Uj92RxhlHCOzXVg/VKA6svAIlcLfeKeUbYqloMycCgTXY0drpMJFXni6weMCE5tp9LSx 75vuuK4oBzT5xQOVdm6N9qrVSbqN9FPuB/LIMIsigJVw7VUtNGbAo2LI/3xZU+DiPrwk XHWQ== ARC-Message-Signature: i=2; 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:dkim-signature; bh=kADOC6162V5NCcVVMP9gX8MPZmEiYTw9JdB0/cprF7Y=; fh=h4fk4ffINPDfi/bQ4qG959//CSrh6cBYjEAgGWjLkr0=; b=oU6uy8ub9hg3VrbYM1ECFPG40UufJsxyHKLkwOg4f3ttJc3Fn7Crapkk8ZPUG2lmB7 JeL77kUBGpLTWPKF0zQnc8O+LSKOsECdvolcrDfzgv4dh6JdHcLyHhBjTMH0Sud8tj9Q Naefrbtgz3tineStfYX0HdRGhMXw9SE4FEueqf8tG7nEWIRfQtC/B5D663lMi6EoBW7y WqnhoaDuXJMa8q/ONXkfAACRMLGS8D9Y/XmOTfINSu5zu2ViBc82p2tsakKjeWyO33TS 0/7wfRNfqgYLCDicEiAv0HmvzWHhdLEfhZG2hs+FhFRgrOtIHQUdpJfeNAX7ZYrQB53H O6Mg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@templeofstupid.com header.s=dreamhost header.b=S4fhHYhp; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id p18-20020a17090b011200b0026f4d1e6940si1479407pjz.160.2023.10.04.06.59.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 06:59:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@templeofstupid.com header.s=dreamhost header.b=S4fhHYhp; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 1FD7382685C7; Wed, 4 Oct 2023 06:59:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242711AbjJDN6Z (ORCPT + 99 others); Wed, 4 Oct 2023 09:58:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242695AbjJDN6Y (ORCPT ); Wed, 4 Oct 2023 09:58:24 -0400 Received: from bee.birch.relay.mailchannels.net (bee.birch.relay.mailchannels.net [23.83.209.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9E01AB for ; Wed, 4 Oct 2023 06:58:20 -0700 (PDT) X-Sender-Id: dreamhost|x-authsender|kjlx@templeofstupid.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id E9C25361C84 for ; Wed, 4 Oct 2023 13:58:19 +0000 (UTC) Received: from pdx1-sub0-mail-a237.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id DF71C36208B for ; Wed, 4 Oct 2023 13:58:18 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1696427898; a=rsa-sha256; cv=none; b=v11tcbL1pu6eAPyuJXT3MDZXbKWxf1j/A+mC0pwuNEAnvlGy9HVm1txqKjmm8bAtx/okPP 0wUMSutXbLVxwT0xF8ab0fz/Ln8q4oMDHz7BPfuFuht4HRTaMVcS8eGSumO1VovvBYk/kW +7EXLwgv7o/hXMat+5hMAbvNSmLyGvkoKZWkm5TXKPClUKMTWOf68KfnhDtN+GUXZSzsIM i3o1c0A9YwOcB89CsTaCJwohKCrPvV78lUpvGy0e2yNcBlQL2M/CY54x50dOPcwnLuB5ev 3e2sgOya6GJSmIQyfUILi+mgJPFo6u9zGxGx3px4lSSVO+/ChQdtxvJcD8tvfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1696427898; 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:dkim-signature; bh=kADOC6162V5NCcVVMP9gX8MPZmEiYTw9JdB0/cprF7Y=; b=RSISFzoQ5bLYA/xdH9kUUGYMzPT3j4D92p0Wj0rhl3rTGgbZzcOmnF1mVHd6SWDpwqEZdB E83ZFOhkHIczoxNuUF+41JUOMpMyobShl3mbBsCUh9mAPBOWcrhQpm+tpeyJklY24591fR Z6gCPeYOHvpsvpn0Iuaz/dvJ8/1KcQ3T3ToakLPGgATPoEe6q0ytv+yNCtGYL5qQ5U6qVO rWH7Wcbn/xjbapE4FO3qcDnP/Fcf5fUYgNUxHcAhV2ba8iqZH4NhtFTEM/G8ClUOSVj5up W6E4FS5JaehQ6IYTnTTCvEtGJaRbsQFr8EGvhNNYhYhT1RbsBFD8xsaMR7TmPA== ARC-Authentication-Results: i=1; rspamd-7c449d4847-8xnst; auth=pass smtp.auth=dreamhost smtp.mailfrom=kjlx@templeofstupid.com X-Sender-Id: dreamhost|x-authsender|kjlx@templeofstupid.com X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|kjlx@templeofstupid.com X-MailChannels-Auth-Id: dreamhost X-Minister-Spicy: 4aca0aff540bb1d0_1696427899777_3967111885 X-MC-Loop-Signature: 1696427899777:70600680 X-MC-Ingress-Time: 1696427899776 Received: from pdx1-sub0-mail-a237.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.99.159.71 (trex/6.9.1); Wed, 04 Oct 2023 13:58:19 +0000 Received: from kmjvbox (c-73-231-176-24.hsd1.ca.comcast.net [73.231.176.24]) (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) (Authenticated sender: kjlx@templeofstupid.com) by pdx1-sub0-mail-a237.dreamhost.com (Postfix) with ESMTPSA id 4S0x9Q3nnRz97 for ; Wed, 4 Oct 2023 06:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=templeofstupid.com; s=dreamhost; t=1696427898; bh=kADOC6162V5NCcVVMP9gX8MPZmEiYTw9JdB0/cprF7Y=; h=Date:From:To:Cc:Subject:Content-Type; b=S4fhHYhp4gEL1RaIuHV620uZhsqzqrdJ3GIwlu1drzYjj3/Gk11iIEAxgaXaA3b9f G9NYQrPshq+55QGsCTzfTIq+tNy1xiy/ack0oQmG4W67wXxrB5+43ucl3kWLYR41ls hajJToc9PfyqC51ALG966BHGInqgfy3II0J8l9Wu3K2aY1OxPSUWW8vqcCnMEvAoFi GLxvgyAU3USAjr1Wtv+96wlGCbsjqVqd914kOdKToLji30kqT9ZnNTwHFDudc5VL/F HDRgKYtzcjkUVDWajFR9Ry6qXeHE9MB1tiAnNKcED6XYqn2xFNm/svNzScw13npuss DSo/uUFVDbWXQ== Received: from johansen (uid 1000) (envelope-from kjlx@templeofstupid.com) id e0100 by kmjvbox (DragonFly Mail Agent v0.12); Wed, 04 Oct 2023 06:58:14 -0700 Date: Wed, 4 Oct 2023 06:58:14 -0700 From: Krister Johansen To: Bernd Schubert Cc: Miklos Szeredi , linux-fsdevel@vger.kernel.org, Miklos Szeredi , linux-kernel@vger.kernel.org, German Maglione , Greg Kurz , Max Reitz Subject: Re: [resend PATCH v2 0/2] virtiofs submounts that are still in use forgotten by shrinker Message-ID: <20231004135814.GA2051@templeofstupid.com> References: <97163cdf-ab2c-4fb8-abf2-738a4680c47f@fastmail.fm> <20231003164823.GA1995@templeofstupid.com> <18552fc7-184c-4bc7-9154-c885fae06d31@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18552fc7-184c-4bc7-9154-c885fae06d31@fastmail.fm> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 04 Oct 2023 06:59:21 -0700 (PDT) On Wed, Oct 04, 2023 at 12:54:49AM +0200, Bernd Schubert wrote: > > > On 10/3/23 18:48, Krister Johansen wrote: > > On Tue, Oct 03, 2023 at 12:18:42AM +0200, Bernd Schubert wrote: > > > > > > > > > On 10/2/23 17:24, Krister Johansen wrote: > > > > Hi, > > > > I recently ran into a situation where a virtiofs client began > > > > encountering EBADF after the client / guest system had an OOM. After > > > > reproducing the issue and debugging, the problem is caused by a > > > > virtiofsd submount having the nodeid of its root dentry fogotten. This > > > > occurs because it borrows the reference for this dentry from the parent > > > > that is passed into the function. > > > > > > Please also note that there will be merge conflicts with atomic open patches > > > from Dharmendra/me. Although probably not too difficult to resolve. > > > > Sure. I'm happy to reparent, resolve those conflicts, re-test, and send > > another revision when we're ready. I suspect there are going to be > > additional changes requested on the v2. With that in mind, I'll hold > > off for the moment unless it is going to cause headaches for you. > > I certainly also didn't mean that you should check for merge conflicts, it > was more an annotation that it might come up - depending on the merge order. > Please don't stop to do improvements, resolving merge conflicts shouldn't be > difficult. > I'm going to add you to the atomic open patch series to keep you updated, if > you don't mind. Thanks, no objections from me. I'm willing to help with any conflict resolution or retesting tasks, if anything turns out to be non-trivial. My goal is to get these patches to the state where they're acceptable. I'm happy to make additional changes, or work against a different branch. -K