Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3007194rwj; Mon, 19 Dec 2022 11:38:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXvqSWXxoez0tVWLJNROLohvuF1/LMmKCYZfPTWtTvR5dgA2LPcLHlx0e3Cg1R6HVMPEp4J6 X-Received: by 2002:a05:6402:4006:b0:46c:d5e8:2fc9 with SMTP id d6-20020a056402400600b0046cd5e82fc9mr18207178eda.13.1671478691997; Mon, 19 Dec 2022 11:38:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671478691; cv=none; d=google.com; s=arc-20160816; b=uNiZxLOiU6t51LyOfrphvP+JPcYvdQFuGU39sVN/53E6ThTm8Qx6fbtNhyMYpG7ET6 VAc2qppeYejzYv5kU8JY99aGEqSM8uns3+qtOnCfaT1Wzdsbbt9rR4iJ5KgsPc1TJwoB 5tJ3flOQIU86DZB8nRvTbCuJNKvMGwCExDHTvu6SgD6jVEON98IJ7nbfgdyyF0slSiyy zFQNVMJEwil4wOtcaoYxvHeQkmUuQ3ipoEjEmdxynpZcdGHYIBGym+6byNALiEwqg8jd l0dOThXejBN8g6vkKIZiaR1qXVS+Ube/NMzpTj+pHQjwQCaSr7/QIf1JYtXeXp3/X9VE CbHQ== 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=rjUsL417U0iV5j5xNXkCITEEN+5bMG2rGdx4wSKwQDE=; b=wxiGPWz/b6eOK/0rzKFqztKPFd6K9uXnGGc5xp50beSfvnlmbCpdB1z3WQxEwW9WgL jmRLKylkk9QVCziAGseKWh8Q/OfbvsH9D4LIpVs/FauPeGNuph92oH3QSucIlPIOPGsv pkTZGTkPnRO42FIlO2Zy/s8VHMmF7ai5tJChqQakQP2VFrQKUGC+tOV0ZQi9gVRieEXG 8soj0d1kL+lViQU41o9fWdMVXEix7ZQ7hoYQZt/5nb5AQe1/oEcy9QXeN3uqkiqfnrJO rKKc/gjz51kAu23QTm3jp5wKQYKgsY6cGDcMm5ejoMMYakzyWgQpVZUe5EYkGBRpSSKa G12g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tycho.pizza header.s=fm1 header.b=lJMbYQxj; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=oulPqgvA; 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 ds1-20020a0564021cc100b00479cceade09si3079046edb.276.2022.12.19.11.37.54; Mon, 19 Dec 2022 11:38:11 -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=lJMbYQxj; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=oulPqgvA; 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 S232445AbiLSTR0 (ORCPT + 70 others); Mon, 19 Dec 2022 14:17:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232674AbiLSTRC (ORCPT ); Mon, 19 Dec 2022 14:17:02 -0500 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 467CE12D2F for ; Mon, 19 Dec 2022 11:16:52 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id BEA8A320025E; Mon, 19 Dec 2022 14:16:49 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 19 Dec 2022 14:16:50 -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=1671477409; x=1671563809; bh=rjUsL417U0 iV5j5xNXkCITEEN+5bMG2rGdx4wSKwQDE=; b=lJMbYQxjl7JexG9ECtnoyb3bDl AwiXT/9IE1P/V0FHHRP8PVY2uAylvMYpZ39uB5WVO5R9x9nr6ojQzYQdar7k78L3 hFB1i6WS0+1FeABEHl3/ujbAXobKXGxpteobl/f830hQGZ3mzHOGrRb584b7ueeR yd8igHbj6jbTPSqT7HufTi/IPA+Assp0Ny/Ij8c/zFiGbn7P/zXByWWPnlxKMjSK N1Ye8g1MgI2+5kjoKTXUeSBNeWXtvrFxz7z5AUQoxaLxfS5KMbILLDYPekd9lerN 94RIyxrKxtUQS26pnrLT2L4+x+UINkpbIPAx9oo2rAC6S1j/hPdu5wy5zI7A== 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=1671477409; x=1671563809; bh=rjUsL417U0iV5j5xNXkCITEEN+5b MG2rGdx4wSKwQDE=; b=oulPqgvAkYRRLyvl0/1vjmmms3Y+ZwR7FMGT7b+TGI2E 5Mi4ou80pOEzT1LqqF9oswKfRxS7BZaLxRtFWq/FIGDk+OdzSeoK79bn4SWFcqS0 2ACpmTVpMtLKZ/u5veydv7X8282cJ0PWiPJyil5Pe97IA/epUUQSkTQtB7xp3yFM 9JvG2LVm+Jxsyd7Omc7KQoTi+2wDrwY8d8OSghH4/OvwASXOU3h03Y7D9rxqMTIo XKmXaP5Z3Lu4dMe8dVxqhrWniw1UQNJfgtiDa1AnKszIbfeszACdSDoSCGgeOCvA vmTRtWRjQpQ5Dm7DCSwBLlIRhPGeEwubOpdCGZAOsg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgeefgdeliecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefvhigthhho ucetnhguvghrshgvnhcuoehthigthhhosehthigthhhordhpihiiiigrqeenucggtffrrg htthgvrhhnpeeutedttefgjeefffehffffkeejueevieefudelgeejuddtfeffteeklefh leelteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hthigthhhosehthigthhhordhpihiiiigr X-ME-Proxy: Feedback-ID: i21f147d5:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 19 Dec 2022 14:16:47 -0500 (EST) Date: Mon, 19 Dec 2022 12:16:46 -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 10:49:30AM -0700, Tycho Andersen wrote: > 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. Ping, thoughts on landing this? Thanks, Tycho