From patchwork Thu Nov 9 05:09:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobin Harding X-Patchwork-Id: 10050117 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A52B1602D7 for ; Thu, 9 Nov 2017 05:10:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 938E12A9F5 for ; Thu, 9 Nov 2017 05:10:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 881BF2AA0C; Thu, 9 Nov 2017 05:10:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id A29DC2A9F5 for ; Thu, 9 Nov 2017 05:10:54 +0000 (UTC) Received: (qmail 3088 invoked by uid 550); 9 Nov 2017 05:10:23 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Delivered-To: mailing list kernel-hardening@lists.openwall.com Received: (qmail 1993 invoked from network); 9 Nov 2017 05:10:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobin.cc; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=75nD7xszyvi9G5AIe 7SmZBexb/vopdJ+dYF3g8XQDX0=; b=bo+FJIRn8xfm9hy6Pj6JHBv2tbmt72ab+ OFyfuAsWlxH+NRelNuj2ZnN+uoRB0MKlhrKWNbScdlAKW3V3pMO7E3gBZLiCdzMz CqvxKub0ZMRYjD2Xgzu82o93XDjPyTGJ+/L3iPIm3WF8z6XiCr44lXdRLGsz0bBU mmNuzftNwI1MOdlNz2fZR60NO5Hc9sIJRVSrBEbagBb+Bfe4BUlv0zR1ynhb2Ili 289KHpo7D8J44mtXwnnDKWowGP/RfKpWWMlvRugCE5IPeH5KCC/NT4kH0dkO9eTW b8R4x0nh7Hq1QsAUzs7Wu5iAN9r+TUnST5BCRlJKzJ7gTWkJ+DAlA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=75nD7xszyvi9G5AIe7SmZBexb/vopdJ+dYF3g8XQDX0=; b=byapwC7e SgoJVL6JlSPyZAUcXADxN9p3UgMSkEfhsQ2/8o+RcOclu1UNSOgejVj8KbpHei7m 9CeQb2IgIi/t2abNjc2HB1bqm3bQy1NGePWonfGpyXcjT7SRMs46I+3gSELOw3o9 cltM2Hq3LzbLql1a3g+FLLsyXjCAkyEJNGXdadHj2ybtuxkv/WpG2lUOPQFENruZ QCAeKHoYJrIn0vLtZ/nohrJvcB74SkF1y4+GkjZ+h81aKDHSau6FxiXb1Ia+QGiS sReYWAEX4/tFTad7W2x7l511ap3BcH3ZnAwQciW87zKjoY/D0hwvrqt/c2hhUoG+ ZQFP8dsE8dkG6w== X-ME-Sender: From: "Tobin C. Harding" To: Linus Torvalds Cc: "Tobin C. Harding" , "Jason A. Donenfeld" , Theodore Ts'o , Kees Cook , Paolo Bonzini , Tycho Andersen , "Roberts, William C" , Tejun Heo , Jordan Glover , Greg KH , Petr Mladek , Joe Perches , Ian Campbell , Sergey Senozhatsky , Catalin Marinas , Will Deacon , Steven Rostedt , Chris Fries , Dave Weinstein , Daniel Micay , Djalal Harouni , "Paul E. McKenney" , Andy Lutomirski , Peter Zijlstra , Michael Ellerman , David Miller , Network Development , linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com Date: Thu, 9 Nov 2017 16:09:32 +1100 Message-Id: <1510204175-10138-6-git-send-email-me@tobin.cc> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510204175-10138-1-git-send-email-me@tobin.cc> References: <1510204175-10138-1-git-send-email-me@tobin.cc> Subject: [kernel-hardening] [PATCH v2 5/8] scripts/leaking_addresses: add to exclude files/paths X-Virus-Scanned: ClamAV using ClamSMTP There are a couple more files that cause the script to stall. /sys/firmware/devicetree and its symlink /proc/device-tree, reported by Michael Ellerman. usbmon should be skipped were ever it appears. Reported by Kees Cook Add files to be excluded from parsing. Signed-off-by: Tobin C. Harding --- scripts/leaking_addresses.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/leaking_addresses.pl b/scripts/leaking_addresses.pl index 3f8c6e230962..0aac03a020a8 100755 --- a/scripts/leaking_addresses.pl +++ b/scripts/leaking_addresses.pl @@ -37,6 +37,8 @@ my @skip_parse_files_abs = ('/proc/kmsg', '/proc/kcore', '/proc/fs/ext4/sdb1/mb_groups', '/proc/1/fd/3', + '/sys/firmware/devicetree', + '/proc/device-tree', '/sys/kernel/debug/tracing/trace_pipe', '/sys/kernel/security/apparmor/revision'); @@ -61,6 +63,7 @@ my @skip_walk_dirs_any = ('self', 'thread-self', 'cwd', 'fd', + 'usbmon', 'stderr', 'stdin', 'stdout');