Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1399063rwb; Thu, 8 Dec 2022 10:06:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf76bvn8av2ahnPX2b2YwrbR3Y+a61D+FyUew2qNgXNQouGX/V7T3/uYir4KFsGH0eI1dCG6 X-Received: by 2002:aa7:c690:0:b0:46a:e2b8:1be9 with SMTP id n16-20020aa7c690000000b0046ae2b81be9mr49215934edq.182.1670522805734; Thu, 08 Dec 2022 10:06:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670522805; cv=none; d=google.com; s=arc-20160816; b=ZeEkT1hZSgMNfFk3b1HNu+t7orSCt5VghEqAj+ZwolOnyD/oU1qIEndOeabfxOo+1+ twrV/EOyjJEak8WmUwNeuWEAMo453mdtoulTXtAw3W8eh69l3hnWjpaEllecfbM6PA9y Y2rCp4mimm5wFtaWqVYqEWfeOzXH4rm/aWTBH6xW+h+EdIQV3WobJ+6SZU4Zb6JG4XYd hR2boZGrs62h3ajhg2QSRKCt5Q8TvnCgGgItyoBzUnpClIVJMpeAMRU50jlvb+uzLc3F magOYtkuK9v7k+fWHh0qgJaPJmofmuwpYaA9tfBwaJBaJUKMyq43YLTOHzbGOkNFPKKt Af9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=C8TXy9Fk8+/VGu61vKrcCcU3jfSCcH0UL/PnmjTog/Q=; b=PIiG5EfxDTMfuVvI6Zwm+h/BKHD73tqyoM62mqf32qjzdwjtScnOr+uNU7K57ooQKL ycLTTWLVPkRVTgtUsYe5vhJCL8r79X+ZsECw2uXkhKNQZK3ddXpLwdrO1/4VcEqoMYDI 4Aluk6sGySdHOaaeePsPfC/xe32zWVRW9Bv0P+B7C3kP/R8F3oRfhD0qSnKIbWIl5RyW MZvFXfG5kZ7Mmde253gl9zKXJAyk89WY4ZnBPv4LS+7Royvx2GqQN4cE/VdKO0dR/9tU q5/RjZvOKV6xJXt5Z2a2ljzd1PnYTekSh9zTUJcPr35BZS25wB+Ute/FN2udAchzWw7b rEUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tycho.pizza header.s=fm1 header.b=Ndnm5x+y; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Rm8PX8Mv; 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 sa30-20020a1709076d1e00b007ae3958c7besi18323230ejc.97.2022.12.08.10.06.28; Thu, 08 Dec 2022 10:06:45 -0800 (PST) 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=@tycho.pizza header.s=fm1 header.b=Ndnm5x+y; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Rm8PX8Mv; 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 S229877AbiLHRth (ORCPT + 72 others); Thu, 8 Dec 2022 12:49:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229847AbiLHRte (ORCPT ); Thu, 8 Dec 2022 12:49:34 -0500 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 375059B2A9 for ; Thu, 8 Dec 2022 09:49:33 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 091315C00DD; Thu, 8 Dec 2022 12:49:30 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 08 Dec 2022 12:49:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tycho.pizza; h= cc:cc: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=1670521770; x=1670608170; bh=C8TXy9Fk8+ /VGu61vKrcCcU3jfSCcH0UL/PnmjTog/Q=; b=Ndnm5x+y48/6cXmUhP1+nDdC5i lNJHYEPZWgRBW1PdJNVR3wjlmNy+XFBovGBYHpqoKQ25dkUCoJXSkpX9ozd6UVRf pq2LfTp1YFmR2NNIFXeJx+BEM9ajCozSxXl5JueOZOlG3QbnGoE2EhMsYFPvogdr gUQ2hIu1BEDUGAYZQhScWg+3CDG4TgwiwMXbEgQRhFcKBJ97lczllSPUV15lzkWF c0JPaVhalfpXTh8ESVvY58Izii9eXt8fl3IJPibt1yrmvujwafEbsxoE1gf39JLy lwnocGQUZbasVZMuYw1XHoorPwsvEjY2X4Cg/CNsCVF31U/QxOyimXjP5iiA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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= fm2; t=1670521770; x=1670608170; bh=C8TXy9Fk8+/VGu61vKrcCcU3jfSC cH0UL/PnmjTog/Q=; b=Rm8PX8MvBTjvGl6e464tif7hA3DfX/zV1jczJm7KnnKD R9XH9TybUEctphXVuh7IiH8LH3uQJKQUoaUDc/qAihbX6ewfalg1X2gHFg5QsTmR D2BNOXvcvLlIrrJMoHKMg9taJkbqq6YKs6+cH3BfL5cfSFPSk8d6H89ocENpopvq whvvxUfBZOq9AhpsoLuL2IOlLw7szYguht/fm90sVV6VAlQOiMA3fbtakFnkZGP8 YxKg18azrPb3XvSNSSenOGOxNIGrWO39sAcQNTPpx8S+GaDlmqEeJ8aDxG5w6ZNi 4RqC2YpoBZ/0m0Jlp4EAF7FHXitA2CkzzVs33M+q4w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddtgddutdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepvfihtghh ohcutehnuggvrhhsvghnuceothihtghhohesthihtghhohdrphhiiiiirgeqnecuggftrf grthhtvghrnhepueettdetgfejfeffheffffekjeeuveeifeduleegjedutdefffetkeel hfelleetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epthihtghhohesthihtghhohdrphhiiiiirg X-ME-Proxy: Feedback-ID: i21f147d5:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 8 Dec 2022 12:49:28 -0500 (EST) Date: Thu, 8 Dec 2022 10:49:27 -0700 From: Tycho Andersen To: Miklos Szeredi Cc: Eric Biederman , linux-kernel@vger.kernel.org, fuse-devel@lists.sourceforge.net, "Serge E . Hallyn" Subject: Re: [PATCH v3] fuse: In fuse_flush only wait if someone wants the return code Message-ID: References: <20221114160209.1229849-1-tycho@tycho.pizza> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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 Thu, Dec 08, 2022 at 03:26:19PM +0100, Miklos Szeredi wrote: > On Mon, 28 Nov 2022 at 16:01, Tycho Andersen wrote: > > > > Hi Milkos, > > > > On Mon, Nov 14, 2022 at 09:02:09AM -0700, Tycho Andersen wrote: > > > v3: use schedule_work() to avoid other sleeps in inode_write_now() and > > > fuse_sync_writes(). Fix a UAF of the stack-based inarg. > > > > Thoughts on this version? > > Skipping attr invalidation on success is wrong. Agreed, that looks like my mistake. > How about the attached (untested) patch? It passes my reproducer with no warnings or anything. Feel free to add: Tested-by: Tycho Andersen if you want to commit it. Tycho