Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6647725iob; Wed, 11 May 2022 02:11:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLYLys38geg2IAWAfusBbRVBNTeTjWD8u3cZ3+NJxcZ0ZCLnxFUAe1lAt6UVFYUt5Bls5i X-Received: by 2002:a17:906:a089:b0:6ef:e9e6:1368 with SMTP id q9-20020a170906a08900b006efe9e61368mr23427052ejy.626.1652260308876; Wed, 11 May 2022 02:11:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652260308; cv=none; d=google.com; s=arc-20160816; b=hg7bY38TKOzDGSPdP7gZrhIkwXO3Wkf7F9zF27Np7DdHDVJ8e1wIsQ79eMK/38w9+x xw32Wh5xmEmyyEvJTgnB0vgE7RyVZmd7lEc2p1OTn7ayZro+eKwO+NltNH/h5/qRg7i7 BzQfixXqOX/tpIhNlQt1UhjGVYpDMmvXhJsW6E1f5e2slbgEdtNoYwVg4eGY5+/lCkMM skmt3hxEZ9WWi81tQSkwtNvh+P8Gy2WcD2f+GEOgNZEzRGnOK3xfnCYDHAmiH27idCn9 L8r0nEvHBumtwZU7QxaNgRqmcvQeZAo/WC31akxfri2fKrE2YjywFZ1eRIRCTsAIN4m6 v8SA== 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=ye0GeoFlH0Q5xQn/Exi4I46k1+mTgeZ6ainsE7f2pPw=; b=AzutHjYR+RxK1jUVydExqfT0598JbnTEOUIYbePAPJfCFpkVOOJDN9T+IHqLSibCYT 2bVlTpjSafid5BLCHCzEvZ4IZ5WSw0xUwodPiqSzsAsd/OxPT3BWjBf5zq/WCCV89wNk 2JFMTMjTErBwhqBsZa9keE97axoRrXL2eT89ONH0+CGCCzju+rGD5xSe6ZIG8LEZwLxL vZSZ+whQqUyi67TrVzsObZ38RWfz28Xe6ZTuEnmemmu+FVl3w1YtSOPSN7MHa83tqS5R 1NL7Avc0P3XF0oFdqcT5Sj5j/ba3+WZo4j5+18bYIQEDGaqlOVs9cYwsOD1LZaOVWVRF 2STw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mvVvcnzC; 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 f22-20020a170906561600b006e8da072889si1612716ejq.687.2022.05.11.02.11.23; Wed, 11 May 2022 02:11:48 -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=mvVvcnzC; 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 S243088AbiEKHg7 (ORCPT + 99 others); Wed, 11 May 2022 03:36:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243045AbiEKHgw (ORCPT ); Wed, 11 May 2022 03:36:52 -0400 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BB0356C18 for ; Wed, 11 May 2022 00:36:49 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id g28so2315548ybj.10 for ; Wed, 11 May 2022 00:36:49 -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=ye0GeoFlH0Q5xQn/Exi4I46k1+mTgeZ6ainsE7f2pPw=; b=mvVvcnzCo/y23SA18SaXjXk0Omw4MackwuHVWKPq8e1TXTCOGgfj8MuNY/3cRGCg6r lgK318RmKvj0bklEoFCIX+kf0Z58pQtq6BcChCOVP0mPTcuzVJmfVo03h7xAHY5jIvgC eUpbBCO1VNuneayutgr0JkXTI5W5Llhid1Whk= 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=ye0GeoFlH0Q5xQn/Exi4I46k1+mTgeZ6ainsE7f2pPw=; b=iskVUjv+d+j/PK3NCSZ0tCzu0y9cIp9maUoHg1DFEltj2SmhLlrYSlDVR9XkB3NX1A 0Z4/xgGFTYMQliOVpquyDaWEiEhxNjlNwf0eAZuCZEE8zwkJu6o8OuHqZo7oFfuf4kPJ CPjmS/Vnx0Fyh4GyRrIi/7nS45+OOS723HqsXhojRdesrLGm9bNnoNHO7V5fjRMPiEfs qKuXHUnv+iEZx7weC7Rk//iXTIBPQoVVmoJ5VYMkVVBLsse4A6B/bDAjeHkQI1O6L0sw FqN3vNZ9tRPVL3cKW0bb3fBKoY3XZYXoITwEtepS5q4DLyTWASomsdC9Hy4KopKyWSmG kiYQ== X-Gm-Message-State: AOAM530u7fx0dxQMDqKYNXzZJrSd29IEACvucyAmIJ26Ka+kn1kVoKmA IJm4hDQbSxZo6twJYh6kc5VKWsd+nNHEuu0QV98dRPpNXo7YVA== X-Received: by 2002:a25:20a:0:b0:645:74e4:8cc9 with SMTP id 10-20020a25020a000000b0064574e48cc9mr21733176ybc.518.1652254608456; Wed, 11 May 2022 00:36:48 -0700 (PDT) MIME-Version: 1.0 References: <20220511013057.245827-1-dlunev@chromium.org> In-Reply-To: From: Daniil Lunev Date: Wed, 11 May 2022 17:36:37 +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=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 Wed, May 11, 2022 at 5:07 PM Miklos Szeredi wrote: > > On Wed, 11 May 2022 at 03:31, Daniil Lunev wrote: > > > > Force unmount of fuse severes the connection between FUSE driver and its > > userspace counterpart. > > Why is forced umount being used in the first place? To correctly suspend-resume. We have been using this force unmount historically to circumvent the suspend-resume issues which periodically occur with fuse. We observe FUSE rejecting to remount the device because of the issue this patchset attempts to address after the resume if there are still open file handles holding old super blocks. I am not sure if fuse's interaction with suspend is something that has been resolved systematically (we are also trying to figure that out). Regardless of that, doing force unmount of a mount point is a legitimate operation, and with FUSE it may leave the system in a state that is returning errors for other legitimate operations. Thanks, Daniil