Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp724159pxb; Wed, 1 Sep 2021 08:39:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2TRAzjShaB7twwJNPzp9QgJUHXLAqzKt7LQqjNWuiL05G4Hzw4CuHOY9MEkadmcI0y7Jf X-Received: by 2002:a92:de4b:: with SMTP id e11mr122968ilr.22.1630510768669; Wed, 01 Sep 2021 08:39:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630510768; cv=none; d=google.com; s=arc-20160816; b=x0qIoCdrK8SGiw5RZH5u9KqQDxnxAbkuQT+AwHcFNKb52poF0luo751739wxeDiWLg Ovwyfog8MnuVaXtqFc1HgDHaNJAwX4qtqVwdi2uMMNUkaMxQnUPAXOUfJzQgtuGdS7NU Oy9lI1PjIAn+boCO3edZ1szRv/6dLkZ/B7MHT277zBIyBtH4hWRROPeHJm2VuXIeaUf/ OJzc7IhESYT+m3f8ulVsfWE0Cl5mfCfWx58BFZUU3k3I6MudansKKJg2v63eXg55gbqN Zzh3M94PvhGSH82UZHxoovYS9GJmzi+ZJEkY4oUcxtPI1YmuOmGyitfyue0RwPoIx7E8 dWeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=TklxYXWYCon0R/adeCrDNz2/1lTkquP3hxQh5luKziw=; b=EVDnnQIdfR7FOosABOki16m60SusuM/L+UncSLBPNAlAGR2UOqUZTOoVJ3LpMU3dzu ZEidiHIk8E7d6rkNjqp01jwhd2V16wqAc2/MfZPRY2si7gAXlaLHbXiXqO1DKmybRx1I Wf0hbVG4HMAbisbKX5zcJpE3PdY7lYDOXoMYYMYibByT0VC5gQlI81arFKxYpu/MfHGZ G3wz5M0tYGVwMSMaSXsytmKX6HgFBCP2JagUPpZFAAmqFsXMxzkgAtb52PWQ8LKQVeLM XFX1mqBUDgSHmFvtq8Twqmh1LorKaoE+w2fjujoH4wLzvgM9jOaax+CYe+Yx+vDkgNAl zUhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o4si326363iom.0.2021.09.01.08.39.08; Wed, 01 Sep 2021 08:39:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343768AbhIAPgV (ORCPT + 99 others); Wed, 1 Sep 2021 11:36:21 -0400 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:39530 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244351AbhIAPgV (ORCPT ); Wed, 1 Sep 2021 11:36:21 -0400 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mLSCW-000H5h-E1; Wed, 01 Sep 2021 15:30:56 +0000 Date: Wed, 1 Sep 2021 15:30:56 +0000 From: Al Viro To: Dmitry Kadashev Cc: Jens Axboe , Christoph Hellwig , Stephen Brennan , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] namei: get rid of unused filename_parentat() Message-ID: References: <20210901150040.3875227-1-dkadashev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210901150040.3875227-1-dkadashev@gmail.com> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 01, 2021 at 10:00:40PM +0700, Dmitry Kadashev wrote: > After the switch of kern_path_locked() to __filename_parentat() (to > address use after free bug) nothing is using filename_parentat(). Also, > filename_parentat() is inherently buggy: the "last" output arg > always point to freed memory. > > Drop filename_parentat() and rename __filename_parentat() to > filename_parentat(). I'd rather fold that into previous patch. And it might be better to fold filename_create() into its 2 callers and rename __filename_create() as well. Let me poke around a bit...