From patchwork Fri Jan 5 22:59:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobin Harding X-Patchwork-Id: 10147179 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 01E6460155 for ; Fri, 5 Jan 2018 23:00:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E3CF28988 for ; Fri, 5 Jan 2018 23:00:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0136B28992; Fri, 5 Jan 2018 23:00:07 +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 4142B28988 for ; Fri, 5 Jan 2018 23:00:06 +0000 (UTC) Received: (qmail 14175 invoked by uid 550); 5 Jan 2018 23:00:05 -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 14123 invoked from network); 5 Jan 2018 23:00:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobin.cc; h=cc :date:from:message-id:subject:to:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=xwRsstY0tEnnWzYCSK7s5c5dqNhX+hBG3vUP2Ms62 UU=; b=rbCV1oFYoinaDjaSmv5WM4WJHYa8w4tZllfUpotsBgegRWYGuGOoe+YS5 vbx6GsbxxoJ9POxG7cwsjJLLH9nRJkV91c1VC5qHVTeGJHMBHQeI372cDz7oy5bz EOUDFTKZQyAUjl0SY8SSvzVoyoNZESbIcKKaiM/FJQB99WtsQPaXjzncC1+9E0O2 t8G07zmbs+5WhbjYDFnCjA+iBOs2SAFMMmz5rmQOaSAFhH9CVZ2TezWQlbRhhFSW FnA6U3UOZK935cFATNDUqYrDfc4CcGtHi5FGHSpQ+BNjwfieRtPCm92AFZwayorD cTdTUmEmbL0vwTzQ5Uys6QJ2V2EqQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=xwRsstY0tEnnWzYCS K7s5c5dqNhX+hBG3vUP2Ms62UU=; b=PTV2ww09jw4opE35hIqNGu1gtI1nm9aIU T7x/8eFjsvX51vLCnh3eTlYrE+DSGtfHiZtY85OLWYJg3dixZYEvsspd1yCZTkOf 7gKGauEFjCkvgiOcIQ8r0roX+VqLMtnEMpG6Depg9s8KEUoE6DUvDdkodDxjt6pF bHAbHKg0RAqazvMIT+FG3pNXZLxhPiSEemCmxLSubMKBEEAT/oBz74MakwX33226 sRjQcNTImyGPa9eioiZC+TexUfS3EWt7ValDgJssJwRDmYMcyiOtybxh+PPrY3Qs 9c89Rb+N1nGWmS+yrTTS631L08d6QVKaMEhXKhN2XKi5Ya0rv9tqw== X-ME-Sender: From: "Tobin C. Harding" To: linux-kernel@vger.kernel.org Cc: "Tobin C. Harding" , kernel-hardening@lists.openwall.com, kaiwan.billimoria@gmail.com Date: Sat, 6 Jan 2018 09:59:32 +1100 Message-Id: <1515193172-20279-1-git-send-email-me@tobin.cc> X-Mailer: git-send-email 2.7.4 Subject: [kernel-hardening] [PATCH] leaking_addresses: add files to skip X-Virus-Scanned: ClamAV using ClamSMTP Script currently times out when parsing the following files: /proc/kallsyms /proc/sched_debug /proc/PID/smaps None of these files leak kernel addresses. We can skip parsing them. Add entries to list of files to skip. Signed-off-by: Tobin C. Harding --- scripts/leaking_addresses.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/leaking_addresses.pl b/scripts/leaking_addresses.pl index ce5d58f3e619..32e2fc9fc8c3 100755 --- a/scripts/leaking_addresses.pl +++ b/scripts/leaking_addresses.pl @@ -58,7 +58,9 @@ my @skip_parse_files_abs = ('/proc/kmsg', '/sys/firmware/devicetree', '/proc/device-tree', '/sys/kernel/debug/tracing/trace_pipe', - '/sys/kernel/security/apparmor/revision'); + '/sys/kernel/security/apparmor/revision', + '/proc/kallsyms', + '/proc/sched_debug'); # Do not parse these files under any subdirectory. my @skip_parse_files_any = ('0', @@ -71,7 +73,8 @@ my @skip_parse_files_any = ('0', 'snapshot_raw', 'trace_pipe_raw', 'ptmx', - 'trace_pipe'); + 'trace_pipe', + 'smaps'); # Do not walk these directories (absolute path). my @skip_walk_dirs_abs = ();