From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751191AbdKIFJy (ORCPT ); Thu, 9 Nov 2017 00:09:54 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:55563 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750736AbdKIFJw (ORCPT ); Thu, 9 Nov 2017 00:09:52 -0500 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 Subject: [PATCH v2 0/8] scripts/leaking_addresses: add summary reporting Date: Thu, 9 Nov 2017 16:09:27 +1100 Message-Id: <1510204175-10138-1-git-send-email-me@tobin.cc> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds summary reporting to the script. First we do some clean up. Then we implement changes that were first posted as [PATCH v4] scripts: add leaking_addresses.pl Additionally; files (and paths) to skip is amended, thanks to Michael Ellerman and Kees Cook. Support for scanning PowerPC (64 bit) is added, with thanks to Michael Ellerman. File read timeout is added, we set the timer before parsing each file. Suggested by Kees Cook. $ perl scripts/leaking_addresses.pl --help Usage: scripts/leaking_addresses.pl [OPTIONS] Version: 0.01 Options: -o, --output-raw= Save results for future processing. -i, --input-raw= Read results from file instead of scanning. --raw Show raw results (default). --suppress-dmesg Do not show dmesg results. --squash-by-path Show one result per unique path. --squash-by-filename Show one result per unique filename. -d, --debug Display debugging output. -h, --help, --version Display this help and exit. Examples: # Scan kernel and dump raw results. scripts/leaking_addresses.pl # Scan kernel and save results to file. scripts/leaking_addresses.pl --output-raw scan.out # View summary report. scripts/leaking_addresses.pl --input-raw scan.out --squash-by-filename Scans the running (64 bit) kernel for potential leaking addresses. thanks, Tobin. Changes since v1: - Basically everything except the summary reporting, including re-write of the cover-letter. Tobin C. Harding (8): scripts/leaking_addresses: use tabs not spaces scripts/leaking_addresses: remove dead code scripts/leaking_addresses: remove command line options scripts/leaking_addresses: fix comment typo scripts/leaking_addresses: add to exclude files/paths scripts/leaking_addresses: add summary reporting scripts/leaking_addresses: add support for ppc64 scripts/leaking_addresses: add timeout on file read scripts/leaking_addresses.pl | 369 +++++++++++++++++++++++++++++++++---------- 1 file changed, 282 insertions(+), 87 deletions(-) -- 2.7.4