Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3509878pxx; Mon, 2 Nov 2020 10:44:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtza8EqnLBj5Rx4Fh+RA8enZDC91lyMXNz6SBtECx1bq7w7txnBLZb64LR4U+582PoX40i X-Received: by 2002:a17:906:17d1:: with SMTP id u17mr14453740eje.6.1604342697050; Mon, 02 Nov 2020 10:44:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604342697; cv=none; d=google.com; s=arc-20160816; b=q4wgxyRqc5AehhcH3Uvo8UQ3udC9S+9OBZZV9o4wsBK0jQAUJkzNaDG2/i5Nu1cvzP MRgD+siLIvTpTM6JtX6F2IGxmIfaPSnkH5PB+IshrO64D2mZ3X7TFY2L2hb+fyb72bWG 2IfT0RihO37qdkzmRFWnViKI4/XvqWuin4QrprZogNvzQTVowAVSid2PFcDdJiK2dMMj n0gnRafXSj7NaR2WccW9bDGsTyxTxYa0B6WaW+P0hsrvf/t8sZO1rbyv1/aDMp4H7qZg mvvOES6P/l8nGCgEaRmbSsfvAONQ8eEcFTyvzb3qH+PpPh2hhiJkGYbqrjGao8k2tVCW LTUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:mime-version:user-agent:message-id :in-reply-to:date:references:cc:to:from; bh=X+grylGnde34HHx3/JSnletAgJE2q3UlVIvZ81BUh/s=; b=DMX5+1XecZQiXIez4AfUId1kBjbjq0/gJJD02xn+co2szPt4q9s9U7w/jGXRu3o7dV zTOEO/4ozTbzkjmB6PvBhlXSADQ0unKOA7IGEJPP26QwVp9G1AtcrgnQ23eapl2orbs/ MV3Aldsk5Ej+QHFXjl/q75S/IKHsEvO1nly9bA9RcXqIR+zScETZtbbKLAubvHML2Ud4 U3vroUtcO9P+SJzZtUMRC4g9w3gDPvgUHtA7LBLb3z1hYlAM6iNCTXn0wbYvusa9MMk+ TvtreSRO0CVBGFN6p9reouaqRpa/RhztEAvmdEJbtc4+H49jpzMrOqT0XT3yujkJKxf5 mong== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v17si3401785ejr.127.2020.11.02.10.44.34; Mon, 02 Nov 2020 10:44:57 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725929AbgKBSnN (ORCPT + 99 others); Mon, 2 Nov 2020 13:43:13 -0500 Received: from out02.mta.xmission.com ([166.70.13.232]:37978 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725789AbgKBSnN (ORCPT ); Mon, 2 Nov 2020 13:43:13 -0500 Received: from in01.mta.xmission.com ([166.70.13.51]) by out02.mta.xmission.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1kZenP-000rzp-GY; Mon, 02 Nov 2020 11:43:11 -0700 Received: from ip68-227-160-95.om.om.cox.net ([68.227.160.95] helo=x220.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.87) (envelope-from ) id 1kZenO-000226-GZ; Mon, 02 Nov 2020 11:43:11 -0700 From: ebiederm@xmission.com (Eric W. Biederman) To: Jens Axboe Cc: Al Viro , 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> <20201030222213.GR3576660@ZenIV.linux.org.uk> Date: Mon, 02 Nov 2020 12:43:09 -0600 In-Reply-To: (Jens Axboe's message of "Fri, 30 Oct 2020 17:21:39 -0600") Message-ID: <87y2jja9c2.fsf@x220.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1kZenO-000226-GZ;;;mid=<87y2jja9c2.fsf@x220.int.ebiederm.org>;;;hst=in01.mta.xmission.com;;;ip=68.227.160.95;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX181lbXNi0J03l5MfI6GEDv6cuRy7EmX6ps= X-SA-Exim-Connect-IP: 68.227.160.95 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa07.xmission.com X-Spam-Level: X-Spam-Status: No, score=0.5 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,T_TM2_M_HEADER_IN_MSG,T_TooManySym_01, T_TooManySym_02,T_TooManySym_03,XMSubLong autolearn=disabled version=3.4.2 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4865] * 0.7 XMSubLong Long Subject * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa07 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject * 0.0 T_TooManySym_03 6+ unique symbols in subject * 0.0 T_TooManySym_02 5+ unique symbols in subject X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Jens Axboe X-Spam-Relay-Country: X-Spam-Timing: total 581 ms - load_scoreonly_sql: 0.05 (0.0%), signal_user_changed: 11 (1.9%), b_tie_ro: 9 (1.6%), parse: 0.85 (0.1%), extract_message_metadata: 12 (2.0%), get_uri_detail_list: 1.00 (0.2%), tests_pri_-1000: 4.8 (0.8%), tests_pri_-950: 1.34 (0.2%), tests_pri_-900: 1.05 (0.2%), tests_pri_-90: 121 (20.9%), check_bayes: 119 (20.5%), b_tokenize: 5 (0.9%), b_tok_get_all: 5 (0.9%), b_comp_prob: 2.2 (0.4%), b_tok_touch_all: 102 (17.6%), b_finish: 0.92 (0.2%), tests_pri_0: 156 (26.9%), check_dkim_signature: 0.50 (0.1%), check_dkim_adsp: 2.5 (0.4%), poll_dns_idle: 238 (41.0%), tests_pri_10: 2.2 (0.4%), tests_pri_500: 267 (46.0%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH -next] fs: Fix memory leaks in do_renameat2() error paths X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jens Axboe writes: > On 10/30/20 4:22 PM, Al Viro wrote: >> 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) > > Don't we just need ->thread_pid for that to work? Are you proposing changing the pid of a kernel thread to get that? Currently it is an invariant in the kernel that pids do not change. Eric