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=-3.8 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 780A8C433F5 for ; Tue, 7 Sep 2021 21:54:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4671260238 for ; Tue, 7 Sep 2021 21:54:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245324AbhIGVzz (ORCPT ); Tue, 7 Sep 2021 17:55:55 -0400 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:49766 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232037AbhIGVzx (ORCPT ); Tue, 7 Sep 2021 17:55:53 -0400 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNj3G-0028IM-2x; Tue, 07 Sep 2021 21:54:46 +0000 Date: Tue, 7 Sep 2021 21:54:46 +0000 From: Al Viro To: Stephen Brennan Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] namei: fix use-after-free and adjust calling conventions Message-ID: References: <20210901175144.121048-1-stephen.s.brennan@oracle.com> <87tuiwrrhn.fsf@stepbren-lnx.us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87tuiwrrhn.fsf@stepbren-lnx.us.oracle.com> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 07, 2021 at 02:43:48PM -0700, Stephen Brennan wrote: > >From the links in the blame it seems this was suggested by Linus > here[1]. The core frustration having been with the state of > __filename_create() and friends freeing filenames at different times > depending on whether an error occurred. Sure, but that's an argument for IS_ERR(), not the IS_ERR_OR_NULL() shite...