Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2583731rdg; Mon, 14 Aug 2023 07:12:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLzSSxEoLA1HQOBnkrpB6VgydGKgdAt/RAYdO9JzbwSnc2vDaVxHIQgm/5MIWw6I8bukup X-Received: by 2002:a17:90b:3687:b0:268:c5c7:f7ed with SMTP id mj7-20020a17090b368700b00268c5c7f7edmr5669747pjb.30.1692022362863; Mon, 14 Aug 2023 07:12:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692022362; cv=none; d=google.com; s=arc-20160816; b=brKu3ap1aFwhS8XYJvgEZ9Okf9beOEFkNMWHFj3+5Y3hUYp8CeDxwiO0X6eJaULM6n 5DouhpzGr9uoaHG/S4uPz9CMeZomvxmtwb0ePlSRqqa5NWfB0ZWot/pS9fOE4fTF4yA3 zYRV88JptctFH3aTi/2li467y8Nu0gItlj1Av0rbwTPWbqefeMfkc1bP2eP3nvD2pffI UpsmO9i3lV9kGDxYi5TW9qUBwTsxzCSUa4BHF92wGK1Cjt1rS4Vc0EqHpQbEWC3hnkJa d3PHmO16czxQHO64LmY1F/HCFjQmv9t162LmtA95pgtahxEL8sBXhs9I4kYRpFwMMUWq dqwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:feedback-id:dkim-signature:dkim-signature; bh=ai7XWqBGUdniAkqv0bcRnyO+vIQGfDDb1O+pQtyLUcU=; fh=XjJg3dLRMrySQFSyJ+Zc/eftk8p1OWJZK0edMKwen5Y=; b=0l/Jm83UE0+0b1Po/nZnjwepn9H9FHKxKiGCJ/7TpYAfup/pSk3suCtEzESbBHcmAt 4ddYrHTySCNiog3Zc/XWC3GHPgi1QIhe+834a63yJz98gHdmmmVkPm/JqK3k0pA2jRd7 alCf0GiKoOzUosdSGgvTxa6Q61hspZGoPsawqLJ5GJfAdoFviNLDba+CQuq6UKxIBG1L 6OAcuYg8JLyBp1sbgr40nTQyZ7IrfeGPYgvtvHvFiInhR6LTr+XujHTXltPzbsSECnlY EMqtVDAAN3+Of7Px9N9Z9BZXOnawGP77PfcgMk2nIptaBT8tKMXcswm98Lzt75MnSoDh 89EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm1 header.b=gDc8zgbS; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=boolcNWQ; 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=fastmail.fm Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cq9-20020a17090af98900b00263a99b8448si8246201pjb.113.2023.08.14.07.12.30; Mon, 14 Aug 2023 07:12:42 -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=@fastmail.fm header.s=fm1 header.b=gDc8zgbS; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=boolcNWQ; 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=fastmail.fm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231611AbjHNNoz (ORCPT + 99 others); Mon, 14 Aug 2023 09:44:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231736AbjHNNor (ORCPT ); Mon, 14 Aug 2023 09:44:47 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02ADBE54; Mon, 14 Aug 2023 06:44:47 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 715135C00E0; Mon, 14 Aug 2023 09:44:46 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 14 Aug 2023 09:44:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1692020686; x=1692107086; bh=ai7XWqBGUdniAkqv0bcRnyO+vIQGfDDb1O+ pQtyLUcU=; b=gDc8zgbSY4hrwYIWF+zBrO9lseReBoT/MYr2sCx0Szu9d+VIEQe 9lxEN75Xx6x6v8BZJwoBGxLqVuZQ1o4L650lZ47/FzN7EI+EFQRbaOz8w75SyXHB PFVjZN2IKr42q7mp0yCT2yfwTSQE7QsfH2XKKi4GAB0GNc3dgb1MdrxpOHSoJ/VN brBq0Ts7xoqxfH4JW+WCA+nD5DzmLfQoRRX5PxQdOU8buQu0mn6I7IRgXY3/wtWP 95AtW21RIDUkI+u6jYoZiT9IOfCWa7Hvh/0bDYQrliTqdiVyK+0RBDpde3EQedjo olmsdO140H7BRIf2u+3chXooCqdGuvuRTiQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1692020686; x=1692107086; bh=ai7XWqBGUdniAkqv0bcRnyO+vIQGfDDb1O+ pQtyLUcU=; b=boolcNWQhRBQCKbPugiqPuF42wdD5u4jmPOZh8+TyXVOWgGWnEV /lWn7eFyUm4t8QeSMwTw8V5k2JkjG5UCzFVX/kEAQEu9+hcSMpI+pFTJ311dzJ2c YPRz7WQJAT1+H6a3muUUkvZd1KpKm1c6MiIgA9z9RP4tre23xHLIX4WOiKYJ4mH2 LRh/7GecSWxtrb59s60sb9SbyDn72znCJVlDCR43l0nHVBmbOgP2ViDW3V89Dg2G UG3YEJdGq9gkgfTg9ISf+0bHmS78Sj6dyYjq078+QqJZLTVuimwGaie80YDhomeP IitzA9YLPq8nYRid2nLhoTMlfPZ79CLmOrg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedruddtgedgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeeuvghr nhguucfutghhuhgsvghrthcuoegsvghrnhgurdhstghhuhgsvghrthesfhgrshhtmhgrih hlrdhfmheqnecuggftrfgrthhtvghrnhepfffhtddvveeivdduuedujeetffekkeelgfdv fefgueffieefjefgjeffhedttdefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepsggvrhhnugdrshgthhhusggvrhhtsehfrghsthhmrghilhdr fhhm X-ME-Proxy: Feedback-ID: id8a24192:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 14 Aug 2023 09:44:43 -0400 (EDT) Message-ID: <3a49282f-7d57-2756-fc20-54bc3f53a80d@fastmail.fm> Date: Mon, 14 Aug 2023 15:44:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [REGRESSION] fuse: execve() fails with ETXTBSY due to async fuse_flush Content-Language: en-US, de-DE To: =?UTF-8?Q?J=c3=bcrg_Billeter?= , Miklos Szeredi Cc: "Eric W. Biederman" , Tycho Andersen , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, regressions@lists.linux.dev References: <4f66cded234462964899f2a661750d6798a57ec0.camel@bitron.ch> From: Bernd Schubert In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, 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 8/14/23 14:38, Jürg Billeter wrote: > On Mon, 2023-08-14 at 14:28 +0200, Miklos Szeredi wrote: >> On Mon, 14 Aug 2023 at 14:07, Bernd Schubert >>> fuse: Avoid flush for O_RDONLY >>> >>> From: Bernd Schubert >>> >>> A file opened in read-only moded does not have data to be >>> flushed, so no need to send flush at all. >>> >>> This also mitigates -EBUSY for executables, which is due to >>> async flush with commit 5a8bee63b1. >> >> Does it?  If I read the bug report correctly, it's the write case that >> 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. Sorry, my fault, I should have read your message/report more carefully. Bernd