Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp306371iob; Wed, 11 May 2022 15:05:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGVRAduVWXnRSYKwpePjjmZo6COWWsEM6crvpWAdIsBkTKqCY0YT6qZO36oKi7rXvRMFe4 X-Received: by 2002:a17:906:99c1:b0:6db:f0cf:e38c with SMTP id s1-20020a17090699c100b006dbf0cfe38cmr26886494ejn.692.1652306716857; Wed, 11 May 2022 15:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652306716; cv=none; d=google.com; s=arc-20160816; b=yDSSuni12jJiMLDh81j8HK6xfPutHEgW2IDZ9VWNBYT5dszvq91IR/H+olgCeJRRhk oFHpbrSDJMxe1StHWT3nrtHyd49v4eMNl0lD47/otTVuZiXppzbs7lb1rBs3vZIpyS7i tZFQ76/AQmmaKZjCRfI8nbt5NYCtr1oeR3Xt1ajkeb14/u3shIXrYHcdYSfEGd+Ro7af eXy3thlvgXhpodbWxc96jAlOM/4kXFpo4tbVDzy2ilh50NfisheTtMwlc97HYZiUoAN8 EO2vDJyw4Yt2MrOEBqzNeRS8ciixJjhOrafjYdbPnchdlDxzN3KbdLoYSYUXQopq8aJH IP7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yQGeRKstKMwle+FFENjDqj/4DWnPwpCL9cdUs5k3wq8=; b=CPxs/Dz1isvHtBQsrTApYTkqDWXgLT+kkh1W03PdKlRwZZRwIFRNif0o5vjbBHX9/2 MEeklKqptWex3szDOWKh7wN5zs996PRjNnrKuNHUa/24u5AmUW/oknMgshYeyQt2nmNt Ebhjsy5pwt/Tz6f2yrGQ71RyNN95S3yHhYIgzj3ZjW1OxivhwWddA/xbIwKMmkw7fHLV IayMK4Qq4iNrb8IbYU0VS+bZPZarwa3Nwus2lQTgvHqZcsAdk5fvx63S2juaCUX/+JmQ pqleNpAvZh6O022EabPfUN2WU/34PnDR+p7PCMrQk+u9TwI9wCmGWBvamslWqTAXbOxd 8wNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cl6G1xs8; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l18-20020a056402255200b00427b7dfb60esi4253167edb.289.2022.05.11.15.04.49; Wed, 11 May 2022 15:05:16 -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=@chromium.org header.s=google header.b=cl6G1xs8; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231402AbiEKLTc (ORCPT + 99 others); Wed, 11 May 2022 07:19:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232140AbiEKLT2 (ORCPT ); Wed, 11 May 2022 07:19:28 -0400 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE71F703C1 for ; Wed, 11 May 2022 04:19:27 -0700 (PDT) Received: by mail-yb1-xb31.google.com with SMTP id v59so3293122ybi.12 for ; Wed, 11 May 2022 04:19:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yQGeRKstKMwle+FFENjDqj/4DWnPwpCL9cdUs5k3wq8=; b=cl6G1xs8S2DBnMExmfplmkS+v3ZwHXxin4dhUJqoE+TixyjEpJFSmHj/6I8mWpYkWM /ZoJFQlqyvcjR24HJ93y579e3MR2Oy0Do+2rFAYonByg4rWr1eZrCOk5tJdYvvXkvREw J7hs16H3XaOmewYXqPuVKzAzHvlGgnGBIMIIs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yQGeRKstKMwle+FFENjDqj/4DWnPwpCL9cdUs5k3wq8=; b=zrwgRplqePZzbjXfEElRjEL1gEACRNgeeKFkFe1hoMsRoSUYrRIKckKzDAUcdfil7A 66kQgf3y8inmac+Y+FPIbODTuPlvby9nJAocvxgaHKL5EuxoxWZzffgRzMTv/NB/35IV hzBFU9XaJE6pGxHqi+PUFqHYDrbjUZgxtrMFdeYKPHNsQLumxo00/nCyWv35T/WkAkSR 1pmwIlp/YPq8lvAy3HjXL6xAwXuVQ9pGSdnyi4EEuAzb6KE7RQ+WRRlcJ0v4lO9094FU hGR9m8/b0M6lnrsJrxAZI5D120G8kffxuXLs3B5bA2bHT5vwRWp0Psmie8CaNV6U2bdo XE4Q== X-Gm-Message-State: AOAM533HWCvMC4msS6ZjmGJUsLJBIsPQdKX7EselatUjL7967FSxajPE q9o+IwBgAl992QIgPiNcJ4+Jpoi82s/0f+eNNcNYOQ== X-Received: by 2002:a25:cfc5:0:b0:647:39d4:49f5 with SMTP id f188-20020a25cfc5000000b0064739d449f5mr22874248ybg.595.1652267966978; Wed, 11 May 2022 04:19:26 -0700 (PDT) MIME-Version: 1.0 References: <20220511013057.245827-1-dlunev@chromium.org> In-Reply-To: From: Daniil Lunev Date: Wed, 11 May 2022 21:19:16 +1000 Message-ID: Subject: Re: [PATCH 0/2] Prevent re-use of FUSE superblock after force unmount To: Miklos Szeredi Cc: linux-fsdevel@vger.kernel.org, fuse-devel , linux-kernel@vger.kernel.org, Alexander Viro Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 > At a glance it's a gross hack. I can think of more than one way in > which this could be achieved without adding a new field to struct > super_block. Can you advise what would be a better way to achieve that? > But... what I'd really prefer is if the underlying issue of fuse vs. > suspend was properly addressed instead of adding band-aids. And that > takes lots more resources, for sure, and the result is not guaranteed. > But you could at least give it a try. We do have a limited success with userspace level sequencing of processes, but on the kernel level - it is all quite untrivial, as you mentioned. I did some research, and what I found pretty much a 9 years old thread which went nowhere at the end [1]. We would also prefer if suspend just worked (and we have a person looking into what is actually breaking with suspend), but there is an unbounded amount of time for how long the investigation and search for a solution may be ongoing given the complexity of the problem, and in the meantime there is no way to work around the problem. Thanks, Daniil [1] https://linux-kernel.vger.kernel.narkive.com/UeBWfN1V/patch-fuse-make-fuse-daemon-frozen-along-with-kernel-threads