From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C662C3DA7A for ; Thu, 5 Jan 2023 15:16:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234079AbjAEPPc (ORCPT ); Thu, 5 Jan 2023 10:15:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbjAEPP1 (ORCPT ); Thu, 5 Jan 2023 10:15:27 -0500 Received: from mail.hallyn.com (mail.hallyn.com [178.63.66.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BF8A4FCE2 for ; Thu, 5 Jan 2023 07:15:24 -0800 (PST) Received: by mail.hallyn.com (Postfix, from userid 1001) id 969D2652; Thu, 5 Jan 2023 09:15:22 -0600 (CST) Date: Thu, 5 Jan 2023 09:15:22 -0600 From: "Serge E. Hallyn" To: Tycho Andersen Cc: Miklos Szeredi , 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: <20230105151522.GA4600@mail.hallyn.com> References: <20221114160209.1229849-1-tycho@tycho.pizza> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 03, 2023 at 07:51:22AM -0700, Tycho Andersen wrote: > 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 Thanks for pushing on this, Tycho. I'd suggest sending a clean new version incorporating Miklos' fix. -serge