Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4806274pxy; Tue, 27 Apr 2021 13:07:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzObDz7xMviT4XveHz+qPTVu7LmBYl00QMfLT5BzSB45lMmJ5xS4dMi0jvAhinNFgGvCb4P X-Received: by 2002:a17:90a:fb4e:: with SMTP id iq14mr365pjb.33.1619554024774; Tue, 27 Apr 2021 13:07:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619554024; cv=none; d=google.com; s=arc-20160816; b=OTK/ir5tnKK5lZf5RapTW+2WgWzW3o2PaLPgzMAVbcP/ipWkwAERBAMJr5DKkHv5Vz epCa+9J+0Ra3OL+/ziyQA3FZ1YQeie1+EUKNweErWV87ND11wHMmtYLlt82jB3Q/h8VS xU00qLTvTTwS1TEMmkZtkRo8pnj7WtKBdgY4srmbjvrCcBdWrv6gjiwc1bInMPSAzlG2 2gtNcUTKqtiZy4pP1wyPEFlVCsRVI2RRebJzotRt4bEAAJa6Sn6TCLU2OvPy6zVVFQPg Qh4Yb8eVB3RlxdxwKMsI557nq2UNSOLBUDqIQ8j83Fw7Arec0NyflYeyGbO4ycJg7Yok Cl0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yRcc/vr5Chj3M+4Hm2av7mbAqZ86imiIi9qoDwUZ/zU=; b=A8meuO/eK9bVn2J0WTD+9VGcyqKHdJn+xL4XfwpOtUi9Vk/W32iEag8WabeSI2BSUa yoIj5Um7dub2MCB1gOUSpIqvh5vJ3CrbSnM9WKuZwezIH8PUSxIwZ4uyls2EPvZJvcCb zZcw5ijtrGTcv4Y/RvwzCI2RhUCx00QdFnSFLQDylnQ/G3JhNssthH7L8YwnTIw2A5tD 7UsrFut41fWL7mWyqu3QtawIBtuQ5cTGARiRtIV5ATC2loWDDeemoBJXaGGT9N0I0IHv cbd5BqyD1TAdsQGMJhf2z0nBDk1evjWckLleLIqGGkVfJvNOW99jfv82q7dPD2AFxTI8 TiUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=IRkv5P+h; 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 j9si1080291pgq.51.2021.04.27.13.06.36; Tue, 27 Apr 2021 13:07:04 -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=@linux-foundation.org header.s=google header.b=IRkv5P+h; 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 S235719AbhD0UGS (ORCPT + 99 others); Tue, 27 Apr 2021 16:06:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235576AbhD0UGR (ORCPT ); Tue, 27 Apr 2021 16:06:17 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BA18C061760 for ; Tue, 27 Apr 2021 13:05:33 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id j4so56086821lfp.0 for ; Tue, 27 Apr 2021 13:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yRcc/vr5Chj3M+4Hm2av7mbAqZ86imiIi9qoDwUZ/zU=; b=IRkv5P+hJ3HAvAVcYxfphR2IIalOpLukHJvNdIbyeYiLqB0zwJ4BoazBrHvbL7KeWQ YYkLIthfmcyOy+zftHPGy4a5Mdp6pRhBcLvLYvLaScIsMmWwXp0b3UxnZghldjA3FlIY iKXh7PqxoIO1WXdxmpi9PD3H48mfugN8DTiMY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yRcc/vr5Chj3M+4Hm2av7mbAqZ86imiIi9qoDwUZ/zU=; b=uRa/DvdchCduXRrM4bbPMIIthYXYQcgRIHFbhkhAWFsxfyvAQFOugNkuKYHIix3gww zlNkajo8bNGv9KEPtVNY1C1lHw0lkZGqazE+0b4hn+ikxgq0GveextECv381Y+i2jkfS oaJlthmMqkFbltowutY4XxfkFFlhFK9v5ifbGAPYdncP7ARnBOUeiFbL8GbsvVMJs9TX 1n/RDQVfIZt+Vu4npDl2s/+oTjdUcysgSlMK+ZG+DYdAn5PY7C4aUbbUAyT7dM8dIrT3 QOq8SVjSCZv5g68Wtg8bPIejClLLckIshoyuTBxqnvcdCQCpcnVFI1jfw8NU7mrOuaRA 3Sow== X-Gm-Message-State: AOAM530RUaGxWkP0PfX/0RL4YeSgoSL7j01OtCg4Zw/GNErcRg+6ERxU bq+mUY9msBCnD0hMjR1opwVzuJkf6W9wEaXc X-Received: by 2002:ac2:533b:: with SMTP id f27mr18163139lfh.244.1619553931321; Tue, 27 Apr 2021 13:05:31 -0700 (PDT) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com. [209.85.167.46]) by smtp.gmail.com with ESMTPSA id h22sm657744ljc.99.2021.04.27.13.05.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Apr 2021 13:05:30 -0700 (PDT) Received: by mail-lf1-f46.google.com with SMTP id h36so41394017lfv.7 for ; Tue, 27 Apr 2021 13:05:30 -0700 (PDT) X-Received: by 2002:a19:c30b:: with SMTP id t11mr5016247lff.421.1619553929885; Tue, 27 Apr 2021 13:05:29 -0700 (PDT) MIME-Version: 1.0 References: <20210427025805.GD3122264@magnolia> <20210427195727.GA9661@lst.de> In-Reply-To: <20210427195727.GA9661@lst.de> From: Linus Torvalds Date: Tue, 27 Apr 2021 13:05:13 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] iomap: new code for 5.13-rc1 To: Christoph Hellwig Cc: "Darrick J. Wong" , Jia He , Al Viro , linux-fsdevel , linux-xfs , Dave Chinner , Linux Kernel Mailing List , Eric Sandeen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 27, 2021 at 12:57 PM Christoph Hellwig wrote: > > I'm aware of %pD, but 4 components here are not enough. People > need to distinguish between xfstests runs and something real in > the system for these somewhat scary sounding messages. So how many _would_ be enough? IOW, what would make %pD work better for this case? 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. So I seriously don't understand the thinking where you claim that " components are not enough". Please explain why that could ever be a real issue. Linus