Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp78768pxy; Tue, 27 Apr 2021 23:19:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfrGCpzMZwKw/cOzDfeaKI+qC5bEJQYbOf47JMjxQ7xgjiqWcENTCo5hKcvPqHm90h8NXW X-Received: by 2002:a17:906:3f88:: with SMTP id b8mr27847930ejj.36.1619590799034; Tue, 27 Apr 2021 23:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619590799; cv=none; d=google.com; s=arc-20160816; b=m2QBKizWjM3CMJDaI9EHJ8Jgl8myFDqNJcrd8L0Qz4EtIMOHGLaQfnAVm0MeEx04/R 2ZMNZGgwwsDPPwkyb1CKSpyVFctYzhJivlg3nMOr1meCsysJ2YVp94zhJqrhvYyzncMb ttBwdCTImvz0YRYnAJwtXUfqI+scEwznft5/h29Jlg/yLFtwPXaL8Lq488hDqlZSZJYD E6wGfFLziJb0VQQEmPHe2rNB6vs6PBVRSOLis7faW1g1Htv0+kgAqkR4qQ2+cXw/D+sT dMpjQWjFuN7esKU1Y3v8pIWM9V3grYFARMb6pxoUH95d5qQYg+xbk6ZlAXEBKiMasnXa FHGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=N9VZQISmVqoWMAqNowC6LOnSvbowgCE0SkA6gT2yDpY=; b=FbLp5NtoT40vAUkC39BsMsRRcmtSjUOFTJJVZu7Bk+P/zf4JbPgvqFrFRVSAhhuwXX GQSr9JqtTLBPu5BPow3e2ZFKPogXa0vceT1pkbdyQMc9Q4GOJITwBBLBqoPfZ9qNqMG3 gu8Jsi48Bti6+yzRxuZl2BkA3lCfTc8s9100zOYNhgpjDNRp1LUE053FmcFZifbPDENv 2IegfUdMwlAKPi3PV3blS+JLR48OoDTnUOrNXlX4so0CJ2ptSXIf773NvMsG/us/dIAT v4w2DFDAlHqMYUh3ycjdPebtfet7hZkzRJdB6L//brzaPf6TagVNqJZf4d0CmvqKsTQ5 ddKw== 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 e6si4828128edz.445.2021.04.27.23.19.35; Tue, 27 Apr 2021 23:19:59 -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 S235914AbhD1GRz (ORCPT + 99 others); Wed, 28 Apr 2021 02:17:55 -0400 Received: from verein.lst.de ([213.95.11.211]:47975 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbhD1GRx (ORCPT ); Wed, 28 Apr 2021 02:17:53 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 7252F68B05; Wed, 28 Apr 2021 08:17:06 +0200 (CEST) Date: Wed, 28 Apr 2021 08:17:06 +0200 From: Christoph Hellwig To: Linus Torvalds Cc: Christoph Hellwig , "Darrick J. Wong" , Jia He , Al Viro , linux-fsdevel , linux-xfs , Dave Chinner , Linux Kernel Mailing List , Eric Sandeen Subject: Re: [GIT PULL] iomap: new code for 5.13-rc1 Message-ID: <20210428061706.GC5084@lst.de> References: <20210427025805.GD3122264@magnolia> <20210427195727.GA9661@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 27, 2021 at 01:05:13PM -0700, Linus Torvalds wrote: > So how many _would_ be enough? IOW, what would make %pD work better > for this case? Preferably all. > Why are the xfstest messages so magically different from real cases > that they'd need to be separately distinguished, and that can't be > done with just the final path component? > > If you think the message is somehow unique and the path is something > secure and identifiable, you're very confused. file_path() is in no > way more "secure" than using %pD4 would be, since if there's some > actual bad actor they can put newlines etc in the pathname, they can > do chroot() etc to make the path look anything they like. Nothing needs to be secure. It just needs to not scare users because they can see that the first usually two components clearly identify this is the test file system.