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 X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89FCCC433DF for ; Wed, 12 Aug 2020 05:56:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7440E20768 for ; Wed, 12 Aug 2020 05:56:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726510AbgHLF4C (ORCPT ); Wed, 12 Aug 2020 01:56:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726255AbgHLF4B (ORCPT ); Wed, 12 Aug 2020 01:56:01 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 993F4C06174A; Tue, 11 Aug 2020 22:56:01 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1k5jjy-00Dv7D-61; Wed, 12 Aug 2020 05:55:58 +0000 Date: Wed, 12 Aug 2020 06:55:58 +0100 From: Al Viro To: Linus Torvalds Cc: Arnd Bergmann , Christian Brauner , Christoph Hellwig , Linux API , linux-fsdevel , Linux Kernel Mailing List , Dominik Brodowski , syzkaller-bugs , syzbot Subject: Re: [PATCH] Re: KASAN: use-after-free Read in path_init (2) Message-ID: <20200812055558.GP1236603@ZenIV.linux.org.uk> References: <000000000000f0724405aca59f64@google.com> <20200812041518.GO1236603@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Tue, Aug 11, 2020 at 09:29:47PM -0700, Linus Torvalds wrote: > On Tue, Aug 11, 2020 at 9:15 PM Al Viro wrote: > > > > fix breakage in do_rmdir() > > > > putname() should happen only after we'd *not* branched to > > retry, same as it's done in do_unlinkat(). > > Looks obviously correct. > > Do you want me to apply directly, or do you have other fixes pending > and I'll get a pull request? Not at the moment - I can throw it into #fixes and send a pull request if you wish, but there won't be anything else in it...