Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1087356rwl; Thu, 5 Jan 2023 08:30:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXuNQMk3kabyjp/LKcr8q7Qqo/+e13H2sNVunpJrnMRxaKbv59+mtNs41+z+gMZnAIDclz0t X-Received: by 2002:a17:90a:7101:b0:21f:e5c:9852 with SMTP id h1-20020a17090a710100b0021f0e5c9852mr54071158pjk.1.1672936240184; Thu, 05 Jan 2023 08:30:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672936240; cv=none; d=google.com; s=arc-20160816; b=TfM/zD63x3PowgPMM5R2/4Vw3tMqSZ4zNlky2uzTTGv6ujtZOwY6sgyBEXkdYjUWye 0RPODchzagt/BVNM8Yshd08A+DrnX2ZqGCmBgdTFekaVTwn04lKqml4vTSFBGNNlHAMy oL6cWdu2BcibpqXsacGQUMh2osslq10M177JaCqpKL5nMkXxGBG+5wH14/1JFRThwUc3 ClLvTgGR9xUKNGFacLUYYI7fiDpI2UHI+v+jQLz2RF8MCkDbL5Vn4/DozhkP2/y9O5Dg d8ZtFAuRdjGipXhmhVqHOpEMMEUHAtuPyekyJyCWhVePP9uD6bX41Fpbz5TwygxFO3Ga +4WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=yFn52zqtqnf9fii8gvIGJ2hjFEzqYCsTi+/ZbBSiPws=; b=rdDt8GKZzfs44yboGpy7janQiKN3S3OO3Te7gfttIo+su8XDy6oaePzMkBe3wsApFS qIBVR517SvqPEFPRKxiTx9JRZftxhY1vwFIr4zPJ9yH4ZdnkqQ7CEXJwrUrELHRXzYyZ bXuaIFOJX+W9SLHd7uXaQj+oCvNjvdYVX9qghuLJ/ItucU9fOrlszKuEjDV3CpNDIOVR 7ECZmOI4+4UL+ZY/8YYwF4v3JrOzaBJuszNJ+DK+/5CwsaMBF0VAzslQwh07Wknde3fI w1Y0q9HKBMAHTAIKfgXFMp9inAsyTab3QtZpI0ujNS10MzwCfJ6OTc+yo4YKT5d0lweR ghFw== ARC-Authentication-Results: i=1; mx.google.com; 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 pw1-20020a17090b278100b002192eb3532bsi2285675pjb.116.2023.01.05.08.30.32; Thu, 05 Jan 2023 08:30:40 -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; 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 S233772AbjAEPPb (ORCPT + 55 others); Thu, 5 Jan 2023 10:15:31 -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) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 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