Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11937961rwl; Tue, 3 Jan 2023 06:56:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXsLx+d3QiAKGmShc/K42quyyOMACfHWH/1uMQAVPje58sxbCvQ+FifRkBAncgn+PpjdjUug X-Received: by 2002:a17:90a:f2d4:b0:21a:b64:3488 with SMTP id gt20-20020a17090af2d400b0021a0b643488mr47647867pjb.44.1672757807016; Tue, 03 Jan 2023 06:56:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672757807; cv=none; d=google.com; s=arc-20160816; b=oO04FOq7uy3q2HJQyY5VYzPFW1pfgtw+0AzMCrfm0qAGDZ5hUPAFx7t7KnwQetfX9m gLU0aEtgJJl9gtj2Gd0sADHWLg29GST82L1NkSOcZdNe18EGgBojEEKJmldFCfy5sef9 tfE9BYwGw2ry9MjCc4W00Bu/GbsoIonhtU+s5Yko3fiiRtIT1I4YST8COhtjBeHKL39n 86QzAHRiXxusECdANYH0fvwe5kJ0iQEN7wVoiAwIsUKEmdRp5K0TYfYxbE8/PuHAWhQc puscqB+yPyEbomM94X7vgJHh0NbnalYpqkPB77WbGdxbWj9z5MHZOI+qyrCzsv8T1wlS a7Jg== 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=rKKF4pyesR/u1WYNk8McfGW3/FiMIIo4fxZlRkxOFw8=; b=lWrZ+5DiXE0kLN/m2qsR4QL6xY3A8q6m1BNLuQ5YoHhCOZdQSW6UElHOj3tQIeogu2 9yfMz7BduUlaj+Z/yDY5Fm2aEriO06H02F9iNvc62+xghcb4RJdJbZBp6RV2S1AlcpVp unqTaR/p+BEX7WurIwwhQTkOzjAf0fP7kKP0tz9tmp43vfT5qGya1qBwyonNKfJGsWah zwJPhAxJVtivWbOvOO/f6flyvMBGStLXcErTRi9qUtHPqPMqE2yWEI85RQYDXmzhQV1Q bQr/D0jtL9heUdU6N4GjvKnC+2D4OoV7OwIoaeXcXG+dpwnNMaQqVhZyCis/poGU0Bww BZfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tycho.pizza header.s=fm1 header.b=t8QeHA+c; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=S5LUXTaa; 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 o16-20020a17090ac71000b002199a16366csi30087978pjt.173.2023.01.03.06.56.39; Tue, 03 Jan 2023 06:56:46 -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=t8QeHA+c; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=S5LUXTaa; 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 S233511AbjACOvd (ORCPT + 60 others); Tue, 3 Jan 2023 09:51:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237290AbjACOv3 (ORCPT ); Tue, 3 Jan 2023 09:51:29 -0500 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 343D1EE1E for ; Tue, 3 Jan 2023 06:51:28 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id D69785C008E; Tue, 3 Jan 2023 09:51:25 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 03 Jan 2023 09:51:25 -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=1672757485; x=1672843885; bh=rKKF4pyesR /u1WYNk8McfGW3/FiMIIo4fxZlRkxOFw8=; b=t8QeHA+cqNDLXfsO4EqgHufSz1 W1fuCLgncTKZSFtJa1Fp7+0sLrb63PhgTsLZmYf9/ASkKWuvnfH+7JRaVZP8gKns O3QNAy/Z6tew4Ie2Sc1XXKiuv7LYBZzcNGSUR/oP3iYLnDTaNLBUqT/NHTat5WvS MlfDXEdkfvLsYnDhxGkv+qsTxtRukOL9JUB5zX98W0Y+BkbAYie6wF0KIsbXgd61 qXoR61XTqppV56QavdzzrSBGjFlTy4jwyOqLVSBTev8fFLBoRbpWAPdmb2Niog6y wLCteMPG6PLYzyWnlPmz3+i/StuDuRpfU9a8NBKsDD5tlBRRdhpje+cKjlKA== 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=1672757485; x=1672843885; bh=rKKF4pyesR/u1WYNk8McfGW3/FiM IIo4fxZlRkxOFw8=; b=S5LUXTaaHwhYpV8i9Aw+4m5awhzByHcndFKDbT3M2jtY 1GGyylcThrSdJTrbrnh7jC3AouMt3g/qOFtTHOGLu1jpoU62EPloM+dzsvxLL8Pd a6z7iI+v6SS9ewpp3CkD2A8hwU+3Q00HgoJyjvSdrjJRyc4wW8nIM3zpvqYe35TZ lwkDKNxgEWsY3oBQ0sBEt1wRmdujiYIqvQ7rZ/0gPaG5yUqVQ/QTPuyRlIpTK3T3 ImdApsh5VvuwbElm/su3nlplfHXE95fxnfZtx8jn1AnrkSsfd+5wbny2CxN0sp3K loPKFTnAs5HO3vncECxi9l0EVdcnrO8j/L4ImxXBNA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrjeeggdeilecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefvhigthhho ucetnhguvghrshgvnhcuoehthigthhhosehthigthhhordhpihiiiigrqeenucggtffrrg htthgvrhhnpeeutedttefgjeefffehffffkeejueevieefudelgeejuddtfeffteeklefh leelteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hthigthhhosehthigthhhordhpihiiiigr X-ME-Proxy: Feedback-ID: i21f147d5:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 3 Jan 2023 09:51:23 -0500 (EST) Date: Tue, 3 Jan 2023 07:51:22 -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 Mon, Dec 19, 2022 at 12:16:50PM -0700, Tycho Andersen wrote: > 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? Happy new year all. Any update here? Thanks, Tycho