Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1583650pxx; Fri, 30 Oct 2020 13:36:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFZZ/FBjWDSQbadc3tESb7kXa7HreSZxAIyK/AcgNsEj+uFDDi23Tx4hhTrUPVuxf0TWTy X-Received: by 2002:a17:906:6a94:: with SMTP id p20mr4135583ejr.499.1604090192973; Fri, 30 Oct 2020 13:36:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604090192; cv=none; d=google.com; s=arc-20160816; b=tWZLPXcb+6dmdr+uTJqSsOIO3BvoYqiH/R9ZWXxz+ywRPggZFHTzEqZUpTsLLnDwEN YUadnbGTGVo49KZ8SBMIW3JVUQfkrPjete0LWH2Rf87HuZVyqReetHLF09npKNFjUowr hYcP7af0LOdIE0HOTN+yScB46T5GyZFoMilCUBo/rz0eOu1beRNu79X/ylT4x1ZEC5DT KdcuGlrEzi/JAh4jl428g1HF/9s77P37pZISdmnonscoZQTkzP/LyAXErGPvMXMvxFO+ ClZz+e/fUU+mWorxF5RxfqJtD8OpP2p+J/qzGJelM1olZH+AtoTWmYyxdzXP4hTZKC92 e+qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=ZUMZnZrv3DNPK13JwZfcoujpzkEHK3LguFa4dVLLup0=; b=nIcGn6/Di9wOPKgkKebk/6VEbpZJmTb2fmwY8/xtbtsn+RYa7OPrV23WTII/Q8laro IgvduttEIVjXOvtQiCQK7sGRqeT6iYDJmjY54LLU5Ck/xd79UO9SDe2sFn3JZ8leYaZ2 XN6az/Ud5biE8mAcEM/aMT0zRw684b2iwT85D5WlNHFYPlETWWwNHbbTNge1wSCqU8pn Vz+m/dylo0bvwj37XS9bKlrFWxPg4CqtoU3DQ01jRi0WX1zAkyTjbZo9iW2b288fEf3T iXLKGwuq0gomC8ylAASIivHwjoDJumZNoF6wtdxH7BNandRQ5LdjXazyTOLX5sTa7OWE 7Tug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=r3PeCdqi; 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 lw7si4792796ejb.149.2020.10.30.13.36.10; Fri, 30 Oct 2020 13:36:32 -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; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=r3PeCdqi; 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 S1727364AbgJ3Ued (ORCPT + 99 others); Fri, 30 Oct 2020 16:34:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727651AbgJ3UdQ (ORCPT ); Fri, 30 Oct 2020 16:33:16 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F059AC0613D2 for ; Fri, 30 Oct 2020 13:33:15 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id x13so6171831pgp.7 for ; Fri, 30 Oct 2020 13:33:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ZUMZnZrv3DNPK13JwZfcoujpzkEHK3LguFa4dVLLup0=; b=r3PeCdqiSugEFLqlJoHQqglokJqiYiHlgE5831zwqovtVsQs4oJ+iYam9uaNrkG+/o dVTYF8JRTxdJeEyuZt4UCYDdWbNvdp8ymNFg/JFMd3/fNDXscSkNz7E1EtLRtOJ1+B9m 6E3UuSTuj8DkzgZDtodWILJedvlrZ1gDccwW7gxgEgwMIkffv+BpMqs0fdrzbB3Dv2Wd TtLA5z9xX3Eu9a02tO2bPWvSYJGq/69FONdyzvF2G5R5Qg3YGZ9m6qpI8waCvmYBKWP/ v/m8ohBMEmwa+Z0jEc5tYuPTIM/WM0eZA2XTP8az8uWSt7N88yqvTk4ulgfRkdYeE3ii ucWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ZUMZnZrv3DNPK13JwZfcoujpzkEHK3LguFa4dVLLup0=; b=Md9gTQ8k8bQCEieIClUtkdGQRggOT126ZLLrbxzVzwtZrbWnQI4/b/iCNDzpzdVDtv cqp+HMJsQ0MlL+0x8X5ESwjwKJg6ddjBjLslbmc08XLnFnHSRdqfEKkexVQQ1R5BrLME 6Z/ZKW2IHx/WPC2KJFe/kd08xde1jv9olck9PF38sscIjz00fLKMg+uysdVQ6EOOaR+V Pem7sRVln/sV6r7MP227eHjfOQ8GOwG+BUZ+dK9ro+iDHd1A8jTaKofShflo9jLJDQfs xqsNMwJjxC+tp581DhCtfmMuSaIj4Fq9rgCd5ATz7cG20q213AoR/L5Q8VmJaR1UKj20 djOg== X-Gm-Message-State: AOAM531PS7bRkLPemX5iEabRdHC5muqR4h8tSltITVpQkHCG4D0rzHS5 XFWsLIGE4HP1UT//v4y6eskCgH71F+BDqQ== X-Received: by 2002:a17:90b:1204:: with SMTP id gl4mr4146839pjb.157.1604089995058; Fri, 30 Oct 2020 13:33:15 -0700 (PDT) Received: from [192.168.1.134] ([66.219.217.173]) by smtp.gmail.com with ESMTPSA id w31sm4233793pjj.32.2020.10.30.13.33.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Oct 2020 13:33:14 -0700 (PDT) Subject: Re: [PATCH -next] fs: Fix memory leaks in do_renameat2() error paths To: Al Viro Cc: Qian Cai , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <20201030152407.43598-1-cai@redhat.com> <20201030184255.GP3576660@ZenIV.linux.org.uk> <20201030184918.GQ3576660@ZenIV.linux.org.uk> From: Jens Axboe Message-ID: Date: Fri, 30 Oct 2020 14:33:11 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201030184918.GQ3576660@ZenIV.linux.org.uk> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -- Jens Axboe