Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1517674pxx; Fri, 30 Oct 2020 11:52:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmJUD5ksYDyzFmB+RzdFEiHZxvXlI9mwdCgVLVZNfKdmtkTI0exxbGPET+8kmBUcv+4cfs X-Received: by 2002:a17:906:7c4b:: with SMTP id g11mr4067721ejp.469.1604083931209; Fri, 30 Oct 2020 11:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604083931; cv=none; d=google.com; s=arc-20160816; b=GxBhwP1Y1CEuMVsyPvtfyK8SE12ThMhfkX24K7p3CPoy3aN+uynp4s5IY7MGoPHOKQ d8JAT+waUQdvy8lldTZ9tUW72L+uKZdsqLer4rInCM5LbpG9yn0dF4iM8YZ654behZcD r0GlPo1c/ewbAcDE7CtE6MQvqPnkqSUkIqG24ymOc4keAIBu0CLUrA8OUSkbgcbv6rLI aqbZ1/rNhYpmfh81j2UXuVCq4PRedy4RtNohLpUfaJMSK1HqiQnh9YZGJx/pAAxwrCFw ckfF5A6alsuOf4pvvx2utruLsnooF0VkhDpsJxv38IOOHZPbSeUuPXF9HUMxV8JXCgZc ow7w== 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=7Q3gHHZ8tD+Hjc6pQkfTbrcBaPBEiikBUgh1kC4ryyI=; b=e00JMw9KX94SV21WpiAWFDCppYdE3pXr7Z66TO+jFa+QeFm2WZoHoZGFfI21/tkJvZ hYDTSxJeBbEWkF7XLfsxtjd5jOKzdQSBxRifg/DDNW1bc+0zYCWaUPPeut/8sMMJalUk s4s3v0EW9hUSay//WUjAlWIgchuYM1KQWJX3Z1WuYCZWKOboGJ/Eb3lau0rp9Hhh7YpA a5l5Ym5fD3w8ChD7UDd+bXSv7m36WTaV8zX463ZzabqXaxRmf1h7MZqDyxokGK4Xjgyn RIusD5o2x4nE+yC2wIbGBCUs62smHLtLB/amn3XLXfshD4VyhQxqB7UHqr/MdyQRMyJ7 T8kA== 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 bf27si5203870edb.140.2020.10.30.11.51.47; Fri, 30 Oct 2020 11:52:11 -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 S1727230AbgJ3StV (ORCPT + 99 others); Fri, 30 Oct 2020 14:49:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725975AbgJ3StV (ORCPT ); Fri, 30 Oct 2020 14:49:21 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8469AC0613CF; Fri, 30 Oct 2020 11:49:21 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kYZSg-00CDdq-FN; Fri, 30 Oct 2020 18:49:18 +0000 Date: Fri, 30 Oct 2020 18:49:18 +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: <20201030184918.GQ3576660@ZenIV.linux.org.uk> References: <20201030152407.43598-1-cai@redhat.com> <20201030184255.GP3576660@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 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...