Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1644379pxx; Fri, 30 Oct 2020 15:26:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiOby0uYoeMp0eWY1wfMmDKhmp4VPvpOByrRLHKIGPIl0Q1F+OHOcvnF13+sY3ItPsvBY+ X-Received: by 2002:aa7:d1d5:: with SMTP id g21mr4934477edp.348.1604096773520; Fri, 30 Oct 2020 15:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604096773; cv=none; d=google.com; s=arc-20160816; b=HMOnEJK5cv2mNDmBPZokhLFcno8vn4X/trSRUzFX2BWd7hntwsnfIM7VRHaeUMERYp Asu8S9w94feWn7IYmg3dpifVYfObaxSO5gGWRurV/1Watfm0GfvsxT7y9Gfw5XmnDUZd JVCOCyRM3j2l0zkm/Tr8p2a3z9C3I25xLoSiZafedsy4up8D1sorH/N0OQxrYzAcg/cO RWl5Qqrc8ILHESUqqJyP+atGtP+1ye/9TvzV1t2skhOUVcmhmjQsl17c5xdCFUZUlnzN 7e+d8Qf1rdTVQdse/VariT9LSNUgcf5Y4JtHLvKW8L2UoUuu/BC4DZZhflsfMWWiqECe KJ9A== 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=dkao7Rr/AhtIF5EexLnJ/9k52QIHtVFQGhXnoNHOjkc=; b=k9kEgo1DBWWYRzpNhp6nse3Ono7rIHW3rEncuyK1U2d9rSA3GHlELXOTlAcQK9RLbr y4tJ7P561vtqXfghCgUdfTpzl3giIyHVLUxvys0h5XpHA1BF6Bt1IZM2iJsdolKuf73U wDce15sx9mOaCP6TJtP33GEz/IY8JrE+632DmMV7vyXqTr2ihp3/bW80+s03cCn47ak4 R0YGMSheIm5do7QiGODN+9Gr280RilIntXmFJ0lceBeJlMYCBvkyU7iTnc3J5rch2uJB K1KmFNxmWknHI67oJc4TzWiqsYrrUH3Nl5z4+Enu31XomxqWm9X8l41SR5nPzJkPD6UM 7bVg== 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 lz6si4522365ejb.116.2020.10.30.15.25.51; Fri, 30 Oct 2020 15:26:13 -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 S1725899AbgJ3WWU (ORCPT + 99 others); Fri, 30 Oct 2020 18:22:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbgJ3WWU (ORCPT ); Fri, 30 Oct 2020 18:22:20 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11769C0613D5; Fri, 30 Oct 2020 15:22:20 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kYcmj-00CJcS-NX; Fri, 30 Oct 2020 22:22:13 +0000 Date: Fri, 30 Oct 2020 22:22:13 +0000 From: Al Viro To: Jens Axboe Cc: Qian Cai , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] fs: Fix memory leaks in do_renameat2() error paths Message-ID: <20201030222213.GR3576660@ZenIV.linux.org.uk> References: <20201030152407.43598-1-cai@redhat.com> <20201030184255.GP3576660@ZenIV.linux.org.uk> <20201030184918.GQ3576660@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 30, 2020 at 02:33:11PM -0600, Jens Axboe wrote: > On 10/30/20 12:49 PM, Al Viro wrote: > > On Fri, Oct 30, 2020 at 12:46:26PM -0600, Jens Axboe wrote: > > > >> See other reply, it's being posted soon, just haven't gotten there yet > >> and it wasn't ready. > >> > >> It's a prep patch so we can call do_renameat2 and pass in a filename > >> instead. The intent is not to have any functional changes in that prep > >> patch. But once we can pass in filenames instead of user pointers, it's > >> usable from io_uring. > > > > You do realize that pathname resolution is *NOT* offloadable to helper > > threads, I hope... > > How so? If we have all the necessary context assigned, what's preventing > it from working? Semantics of /proc/self/..., for starters (and things like /proc/mounts, etc. *do* pass through that, /dev/stdin included)