Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6739162iob; Wed, 11 May 2022 04:27:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2nu2UaOjis6dFb04FqqI8QanfL/z7RaSDuUcwfue8GavirN2uTpT0xjCAZTlN+EgzBa6s X-Received: by 2002:a17:902:7586:b0:15e:c2fe:bad0 with SMTP id j6-20020a170902758600b0015ec2febad0mr24595829pll.72.1652268479449; Wed, 11 May 2022 04:27:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652268479; cv=none; d=google.com; s=arc-20160816; b=crLlsYoszYrnN0z1sJKCn2dXUACdpcjVXY1WUq21mDrChTPONw032BW/fyzgAG/Hjr mBiaPiJJaTPm71muIM3c9FQcBVRp1spcrH5FaRLGvp63WXZs4nPpMBiT08B9URzBSo0I MCJtXA0WXpZlz5YT7caaQoSUrzf2iGpnjH776TVlhCOqwytTsmVXMLoXngrJPUoQDFZv /oOG9b5cRTULegS8HvbdEc/tQi6azLPVTNePw1xmh/oWX2C0ONyr/mkvw1rOqjyJ9hZJ un/Sacg/aT4/sWpeazBpPAI8boOyv2vQCjlxwAKCOkM1I+a1a3L2fa/atKoVZpqPfLYi 0VYA== 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=e9RMvdxfaUgmFv28W78x2gPvdrNxAzfKB4dqdIX05kM=; b=YK0B1dTT+FC9iyLOMlsnbBSyShgFLQ/qEDgEY9Up9RY2r4y7yENZ9IjMN4kxvtflQb 23cz7QOhEkJmx7KsLbNc03q6mcFODblm5m3B4fYplPBMhnNLZPhtafpRtDV7qZqERkV3 Xj31Ux2LMaccMimnUCIio8aZlHYGwnZpVEiT2x4/ncIXqo+OhbC21yB1n5tlDiEr52A/ fNvKp3H3Eybh2adwEARu0UxQV6rgbg/hFBb8lIK3U31pepbgMpD6rWr0/TBdtKlkeZ3q GJ/2omYvunEW9/eOHx/WweE4HTS3a4T5tvxivUV0PQDxjsk6rUzBzpIHjFbJtaYxFFXZ WDmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=jUsxcGvM; 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 e8-20020a637448000000b0039d9d404482si559419pgn.570.2022.05.11.04.27.47; Wed, 11 May 2022 04:27:59 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=jUsxcGvM; 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 S237764AbiEKKfP (ORCPT + 99 others); Wed, 11 May 2022 06:35:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236201AbiEKKfL (ORCPT ); Wed, 11 May 2022 06:35:11 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 120646CA80 for ; Wed, 11 May 2022 03:35:08 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id c12so1982671edv.10 for ; Wed, 11 May 2022 03:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e9RMvdxfaUgmFv28W78x2gPvdrNxAzfKB4dqdIX05kM=; b=jUsxcGvMHY8GtTbYfp5So2fib+F6Jd8jOLdPWNb3IDtXLg0g+aX3UcVnd4j/fzW+Xe timyQuWT26SQqy3tfXt0O/l5VOUjBb3vKLQC9t7ht5dw7M6i2OZyHZCo9T9egWeAzx+Z SBN+JpPuwCVXUudpy7Sr5YvnYxT3/NxuCZsJs= 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=e9RMvdxfaUgmFv28W78x2gPvdrNxAzfKB4dqdIX05kM=; b=BPOrKXzoEnj69lBDjjEvzyTfXXxN+NeV2jilAj0oKkj5R7def2nf6m/FO1tUfvFmBh K84iv1BSs0Xs7dqnIHGZeSDpTipS3c+pct+GID07oCri2Fx7tO49aLWMyMgwdcffT9gt tLGbPO+gmmPRRHhQSaISHmybbs/AhqBtP8AkmX8ttxxNxZqdfduZIUi+7OyV0rNo/l8V sqGeMLEFmqyFL9mTp6NhV36hfStOSATUc9lRByYk0Zb3n/RpAcFpUEdFV5OMpqJVjRau Wvw4yszheaGkonP3W4HiUvWhIf+5QbF8gk4qU65NnbEzpKsQiqp2r4GNaxUcyFh6nj7g 9UmQ== X-Gm-Message-State: AOAM532935ix3XLTlihvdhRISidmGBkfu7PktTybiqXjaTOEFrD41WoG pd/BpRzbg+5SAuENRLAZvuagmxGU4MOBZHkLAUGcfQ== X-Received: by 2002:a05:6402:50d1:b0:428:1473:d173 with SMTP id h17-20020a05640250d100b004281473d173mr27578456edb.37.1652265306607; Wed, 11 May 2022 03:35:06 -0700 (PDT) MIME-Version: 1.0 References: <20220511013057.245827-1-dlunev@chromium.org> In-Reply-To: From: Miklos Szeredi Date: Wed, 11 May 2022 12:34:54 +0200 Message-ID: Subject: Re: [PATCH 0/2] Prevent re-use of FUSE superblock after force unmount To: Daniil Lunev 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=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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, 11 May 2022 at 11:37, Daniil Lunev wrote: > > > No progress has been made in the past decade with regard to suspend. > > I mainly put that down to lack of interest. > > > That is unfortunate. > > > It is a legitimate operation, but one that is not guaranteed to leave > > the system in a clean state. > Sure, I don't think I can argue about it. The current behaviour is a problem, > however, since there is no other way to ensure the system can suspend > reliably but force unmount - we try normal unmount first and proceed with > force if that fails. Do you think that the approach proposed in this patchset > is a reasonable path to mitigate the issue? 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. 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. Thanks, Miklos