Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5535334rwb; Wed, 17 Aug 2022 20:45:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Muy0J0QfI8U/DBxHIumb+Jj9IK9RFDqLn3L1GhtyTI+41nRd+wLtJeuXCbe5fotTHknlO X-Received: by 2002:a17:902:d58b:b0:16d:c9ff:3c26 with SMTP id k11-20020a170902d58b00b0016dc9ff3c26mr965733plh.10.1660794350390; Wed, 17 Aug 2022 20:45:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660794350; cv=none; d=google.com; s=arc-20160816; b=zm14VZZnoQsgtfIIy/GHXIlztIUbnQRWBDYNZzYBORL65dhol6SHTgVmqf3dutGm4J XoAhU0stJFOcsrcDxi+rbEdP/3BdWcBcS7830BLRz1kBSqfNWpLG7IkcxDKpezInaZT3 O8na+qouNSkx2U187NHNbrHcQwFCZBW8/f/ooBszN2pprXUhVxwgSd0Tk85dw2jCbK8a 1JRO+glRn7QYdEQqDCcdIE7V7DwgV/6gm0eV/le+u5OoCli7xfXuZOUNVw0cHDjN0WSH yVBN3JycDAbGn9cJ/3cSSyh8MmgUWtozma1ABMHjk89U48HF/9lyRhH/R2aDTn5BkjXg vfSg== 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 :dkim-signature; bh=ASEUGz7cWLg+rQ8611/fIqPtCeFG8olFVXzJbYSDQzs=; b=Yee6jG6WTtLwidMp/wtWTdnGd5mipKmOrOqu55oL1Ev3+VupPh5y8QJ9Ggd8eDm4F0 NTjvvDAfK2KFJmF0DqJfRqPLJZlngz9l+FeyVf6/Ku7P8hC7KhCjhCdOgLC0Dq1Dyg0u wra4MdeTVUUzdXD8iOCwyoB1LtEbmNRL6mHp0oS+DdcRErwdx/NLiHR1w5svLdC+jX6T 9Hz/K2Y4zKqhU6+/cIuz2fSqgbftXgnoat4zQmjRyJgQ5jhbwAzaeenaB73v3jHeqpmL sib5U4r4z96IvSYbmsY4NJqc5P+0+Pm8WgMrORvN/Zkk1hmTlUhLsCEhXi/metwjs7Qp amNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=Pueurmcq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r16-20020a635d10000000b0040de79f8b78si436707pgb.500.2022.08.17.20.45.38; Wed, 17 Aug 2022 20:45:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=Pueurmcq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242909AbiHRC7Z (ORCPT + 99 others); Wed, 17 Aug 2022 22:59:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242901AbiHRC7Y (ORCPT ); Wed, 17 Aug 2022 22:59:24 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC76445F69; Wed, 17 Aug 2022 19:59:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ASEUGz7cWLg+rQ8611/fIqPtCeFG8olFVXzJbYSDQzs=; b=Pueurmcq0kfuZIQ+jCxKjdrRP9 Kg241jyA1XznTr/9t2Dfz1ODc36s+/y73GuvXl7uBs2Akp03PgjoitVPNuYM4v5Km/L/U57VYn9Gq UGdcNsCVkNzOQkS+h057cz3jWOXDDQ3DGZdccjj/1rNnH2nxTpBYluxy1QypaA0bC6ddT/6fxC3mD 1U5JinSOFv0kYDwFbD+yKQq4JJUQPAOfU1p6zMKJ1lMxA2wDtU9F5YNQeKX6r9LXE1g1nUu9HR3SN YJPW4od+SXh6w/rIHuh+KAqHyJf790Eq8WXmEL/5GA1AAFR8EAaq7D8tVY/kzJTsGT5BRRDmsTRRr 5E+rWbzg==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.95 #2 (Red Hat Linux)) id 1oOVkg-005abP-Ac; Thu, 18 Aug 2022 02:59:22 +0000 Date: Thu, 18 Aug 2022 03:59:22 +0100 From: Al Viro To: linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 4/5] ksmbd: don't open-code %pf Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Al Viro --- fs/ksmbd/vfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ksmbd/vfs.c b/fs/ksmbd/vfs.c index 78d01033604c..a0fafba8b5d0 100644 --- a/fs/ksmbd/vfs.c +++ b/fs/ksmbd/vfs.c @@ -1743,11 +1743,11 @@ int ksmbd_vfs_copy_file_ranges(struct ksmbd_work *work, *total_size_written = 0; if (!(src_fp->daccess & (FILE_READ_DATA_LE | FILE_EXECUTE_LE))) { - pr_err("no right to read(%pd)\n", src_fp->filp->f_path.dentry); + pr_err("no right to read(%pf)\n", src_fp->filp); return -EACCES; } if (!(dst_fp->daccess & (FILE_WRITE_DATA_LE | FILE_APPEND_DATA_LE))) { - pr_err("no right to write(%pd)\n", dst_fp->filp->f_path.dentry); + pr_err("no right to write(%pf)\n", dst_fp->filp); return -EACCES; } -- 2.30.2