From patchwork Fri Mar 10 19:20:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Zwisler X-Patchwork-Id: 13169991 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id F035BC6FD19 for ; Fri, 10 Mar 2023 19:21:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 21C996B0075; Fri, 10 Mar 2023 14:21:10 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 17FC76B0078; Fri, 10 Mar 2023 14:21:10 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E263B6B007B; Fri, 10 Mar 2023 14:21:09 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id CDC046B0075 for ; Fri, 10 Mar 2023 14:21:09 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id ACF001C61BE for ; Fri, 10 Mar 2023 19:21:09 +0000 (UTC) X-FDA: 80553956658.21.DD345AF Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf25.hostedemail.com (Postfix) with ESMTP id EA990A001F for ; Fri, 10 Mar 2023 19:21:07 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=cQaNtV3X; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf25.hostedemail.com: domain of zwisler@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=zwisler@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678476068; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=fABhqsokhQoI9PRe9Ym3229p2H4mvRp4sRTFEjWsQ+g=; b=M5almUuXNjN3ggLJSvpI6OjqXrL0/KiGE5rPsPWNsN0hS65pPjOYWVMP+gqhi3cFnHTtn3 CkzNWpyy/muzG2je7UKfZkPVGo9l2DMvQRbsRp9uWmgDKCPm/yAdBBmkN1zAiJgoIlMCMj 8E/UIaBol2XwBV0S/QIwTLBDrpFKNWY= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=cQaNtV3X; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf25.hostedemail.com: domain of zwisler@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=zwisler@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1678476068; a=rsa-sha256; cv=none; b=YnVAacHtl8e+u502WMixTc6p0Gfh6Hof1OiaqcOete0SCge1eAjvZQvafM0xjUYgzvg71G A8pszbCdJPGj/XfkHOljekRjc+bnm7q5KkVUmKyhQMVZUmJiZfzTj45INGU2JShD/wHETd H008BYcalgaSlM5Ue3v3j1U4oeDCUZg= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 43F6BB823EB; Fri, 10 Mar 2023 19:21:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B580C4339B; Fri, 10 Mar 2023 19:21:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678476065; bh=h96RzPVmfu4a9Zs2dUbwmPcGcesOoRHMhOcR2gVxLLA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cQaNtV3XbPWoEfrXdeuLV5g9naMD/sFMoCZ6lxQb5RyxrksCAsnLrISfzDnf9mBO/ cUAIqaz+faLwjLk1rcXrKKJIoF0GFVjZkpumZk/CgeVwgIWGPWwC2D08xCMB61blw9 2Jgm4A9UVIa7GtRwWAT8g28cLlI9O9XMuhu9Xz6IeSD0V4ulxudAXQRRUPOdBOjcdZ 19+xhexZ5u+orIWCvWPU9sP1Ci+Ns0UqIFa2/j2LsrmOH1VDRyiFLnNmigDlsnnKiy BfSFSatEB7NW6auBhRRQeR+XlAjI8UqmsWgB8vLvIs4N7ll32/0N4Q8V99hGuu29rG 00wrjnDL2szEQ== From: Ross Zwisler To: linux-kernel@vger.kernel.org Cc: Ross Zwisler , "Tobin C. Harding" , Andrew Morton , Paolo Bonzini , Shuah Khan , Tycho Andersen , kvm@vger.kernel.org, linux-hardening@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH v3 2/3] leaking_addresses: also skip canonical ftrace path Date: Fri, 10 Mar 2023 12:20:49 -0700 Message-Id: <20230310192050.4096886-3-zwisler@kernel.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230310192050.4096886-1-zwisler@kernel.org> References: <20230310192050.4096886-1-zwisler@kernel.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: EA990A001F X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: 69agpmjtxqmzb5z6e3pj856jsia76gig X-HE-Tag: 1678476067-807316 X-HE-Meta: U2FsdGVkX1+jyb1cEcEWo0z/yY14MGJw9cmCVugD2vd9os/u9JSBW+xnhdXK5ctkblRHIcBf8BztsE1N16Fd1uM/1L4QwEPiB9Dn3Ov0z8b3y2VOhpZ3wRX1DiW0IX+oik8pAPMODBlqJEbRFBIJQw8SIV9kf1ipvH/75PY4CdT7KFDuEnDge6XJFx2op1IQY/McJcJRwMy1QKhraVYreGMlsIRTmcmFur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PRYq/IneqsTG30LPeyms+QQ49QZ5MFmZ+KXz8= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Ross Zwisler The canonical location for the tracefs filesystem is at /sys/kernel/tracing. But, from Documentation/trace/ftrace.rst: Before 4.1, all ftrace tracing control files were within the debugfs file system, which is typically located at /sys/kernel/debug/tracing. For backward compatibility, when mounting the debugfs file system, the tracefs file system will be automatically mounted at: /sys/kernel/debug/tracing scripts/leaking_addresses.pl only skipped this older debugfs path, so let's add the canonical path as well. Acked-by: Tycho Andersen Signed-off-by: Ross Zwisler --- scripts/leaking_addresses.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/leaking_addresses.pl b/scripts/leaking_addresses.pl index 8f636a23bc3f..e695634d153d 100755 --- a/scripts/leaking_addresses.pl +++ b/scripts/leaking_addresses.pl @@ -61,6 +61,7 @@ my @skip_abs = ( '/proc/device-tree', '/proc/1/syscall', '/sys/firmware/devicetree', + '/sys/kernel/tracing/trace_pipe', '/sys/kernel/debug/tracing/trace_pipe', '/sys/kernel/security/apparmor/revision');