Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2540638rdg; Mon, 14 Aug 2023 06:03:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEzaRtwPWhIaXWASa2BgwIN3nKUx7D52VsKD13Y/zwRODLyMkodNxWYl4HLaKbU1prid1SI X-Received: by 2002:a17:906:292a:b0:99c:b0c9:4ec0 with SMTP id v10-20020a170906292a00b0099cb0c94ec0mr8320650ejd.30.1692018189056; Mon, 14 Aug 2023 06:03:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692018189; cv=none; d=google.com; s=arc-20160816; b=fxSZVTut1NiFpRZoX2U63B6ZBQ0P/scULZh1CPJoi2ScASAwVa63P2p2BETZqFKqQC 8IZO91rNpHNW4FLUrKB97jsHfX5V2X9JsNxEQs27OclyfjVTrXM2k0AO935vr7WSpS2O 3PUoAdnYBsexTOzcddI6Eesqeo54eMhmfX+wCTPpXcIvpzeQrLrTKNh4Gn5EzX6r9ey2 kNLfhRSWyNGl2qwasPVcT2ushscBY7UL1iGiFyvBL5pT5W8rle0rsGZ0uOXXRzptuf+1 mLGmCej+yzr7acmszPLWHCWQHR7gg2fSiQ/cGsiQDuHThapap6pF+IF2AUUfCvirGYz0 HjVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=UnFq8cK/dpffTOxd/mAzwBFyBjuZ38mvKS1JaKUYa+Y=; fh=1K2312WHSYcZJbQjRpjy3gJS142bdyH4QCLQOvfQwb8=; b=KNJt0oLLVM1tKOGGdfvoo+8A8ZHmZYnClw0ro272hvu1BicdihU6G6Qexru/ScXBa2 9eMZnoop26MVFhDnWBcfYXyhVtWdArPfd5ZT+huP1P2rJf8iTs1NF7Qslzh4Y7aMHy1r CIMUk5Fimd9Ed8lVn7MnCTNXk3KjCdmudn6FId3g5FaLmQ1MLgfv3wE/F1rfCwpjkmPa GcelCFeVfmPwNSkemVpEnvev/1UoFtvVWL9GbK1F3dEefQr2edT7++Mv2q3iOBI6SWu7 Dk6dYekXc8JfwepHNKto+uEd2mxamBTU+mGdnu3Qny/BeswQ9oc8QdQCNlmIaCprIcQb vr+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@bitron.ch header.s=default header.b=LqKqitPk; 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 h19-20020a170906591300b009930d9d6b4csi7852997ejq.888.2023.08.14.06.02.37; Mon, 14 Aug 2023 06:03:09 -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=fail header.i=@bitron.ch header.s=default header.b=LqKqitPk; 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 S229966AbjHNMjM (ORCPT + 99 others); Mon, 14 Aug 2023 08:39:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230418AbjHNMi6 (ORCPT ); Mon, 14 Aug 2023 08:38:58 -0400 Received: from nov-007-i659.relay.mailchannels.net (nov-007-i659.relay.mailchannels.net [46.232.183.213]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 002BDE5B; Mon, 14 Aug 2023 05:38:53 -0700 (PDT) X-Sender-Id: novatrend|x-authuser|juerg@bitron.ch Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C1B086C0082; Mon, 14 Aug 2023 12:38:50 +0000 (UTC) X-Sender-Id: novatrend|x-authuser|juerg@bitron.ch X-MC-Relay: Neutral X-MailChannels-SenderId: novatrend|x-authuser|juerg@bitron.ch X-MailChannels-Auth-Id: novatrend X-Cold-Shoe: 6263835827e2b840_1692016730527_1977572546 X-MC-Loop-Signature: 1692016730527:1089382471 X-MC-Ingress-Time: 1692016730527 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bitron.ch; s=default; h=MIME-Version:Content-Transfer-Encoding:Content-Type:References: In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=UnFq8cK/dpffTOxd/mAzwBFyBjuZ38mvKS1JaKUYa+Y=; b=LqKqitPka07ght4saTNSkUYEjR rq04ITnySzAE1qoVlKxNWbQTSAFZsi49hUVCXX8ECbwBKXLyKj+1boiHTDcUrvcIeF0d63c/JhpC7 xxkcOBCd5/GyCpnMjp/NNZ/Ht; Message-ID: Subject: Re: [REGRESSION] fuse: execve() fails with ETXTBSY due to async fuse_flush From: =?ISO-8859-1?Q?J=FCrg?= Billeter To: Miklos Szeredi , Bernd Schubert Cc: "Eric W. Biederman" , Tycho Andersen , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, regressions@lists.linux.dev Date: Mon, 14 Aug 2023 14:38:44 +0200 In-Reply-To: References: <4f66cded234462964899f2a661750d6798a57ec0.camel@bitron.ch> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.1 MIME-Version: 1.0 X-AuthUser: juerg@bitron.ch X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 Mon, 2023-08-14 at 14:28 +0200, Miklos Szeredi wrote: > On Mon, 14 Aug 2023 at 14:07, Bernd Schubert=20 > > fuse: Avoid flush for O_RDONLY > >=20 > > From: Bernd Schubert > >=20 > > A file opened in read-only moded does not have data to be > > flushed, so no need to send flush at all. > >=20 > > This also mitigates -EBUSY for executables, which is due to > > async flush with commit 5a8bee63b1. >=20 > Does it?=C2=A0 If I read the bug report correctly, it's the write case th= at > causes EBUSY. Indeed, I see this when trying to execute a file after a process wrote to (created) that file. As far as I can tell, `ETXTBSY` can't happen on exec without the file being opened for writing and thus, I don't see this patch mitigating this bug. J=C3=BCrg