Received: by 10.223.164.202 with SMTP id h10csp294265wrb; Wed, 22 Nov 2017 21:16:26 -0800 (PST) X-Google-Smtp-Source: AGs4zMZv5wKE5rB9OIiyTDKCQAA3eNQy/gmJJOqw6sMxFc4R3jVARS0U10/QxQuTMNzrSwV8XTtI X-Received: by 10.99.138.194 with SMTP id y185mr22617171pgd.290.1511414186665; Wed, 22 Nov 2017 21:16:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511414186; cv=none; d=google.com; s=arc-20160816; b=PTg1RS/SfKcYjIYnfuuR5NX0ZEg/OGUDEjs7UZEmP6rxPFT1ewaT68Zn3SFbBjXePP +v1CZahuhA0z3D3+8tCNtXfQcF4wJ9FaL3yPXWC3uEFTR7j3oWI7eRj9zPAJ1cIZ4cIU 8+Bk8THfpz63ki2J5fgq6uGmtCYUquz9HWsrkqawsFmYh7Fd3NbfJpNVtTWYYJdCZnYU fIzs9ODt8YJIXuxkAyfMxpke9HnUr1U7DTDMefd3I0KdZvtAOl7JYl7O+DgSl/n7G5LK pvadozDuAE2/ysrLcnv9wc8LO1TDfH7mpqabM16fCNKGEWkswpuymlNZoY7ASStyg10h Zyjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :date:cc:to:from:subject:message-id:dkim-signature :arc-authentication-results; bh=ThJtdp6XDsJbPIBA0JdjoVIcQk5Y1QaQtMZKU19o/Ss=; b=PSaNGX1G0RbI/b9kiNuX49plG7CYKlk7GJ1bsM03FsxOQRuYnpgT25TVFeEONZusib buM5sCabITHDOTt04PJxKEAABp2bUou01qU7K1STNsSouy3c/gX6CR76m2zh/Zd7sOUU 6QsNgmmV1qUUuPjxVvBPWVyM0BZS4lSxXqJLJrMOFahyTmWxHLiYk24v4Er0Hj2CdftL 0/eQ0tnAqQXnouGjzMGxB9As2f1N1VGCW3CIAOIUY6hBZlYmHMscg/dFrPr39KHoregV xAT2mmMnYhCY69uoUo72y5QDOa8RV9QMlNgj1K6dzQnnrQsa3z3dKAdFE7xS3RUKzgHC hq3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DkI50LPO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10si1056187pgq.339.2017.11.22.21.16.14; Wed, 22 Nov 2017 21:16:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DkI50LPO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751615AbdKWFPg (ORCPT + 77 others); Thu, 23 Nov 2017 00:15:36 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:39339 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750724AbdKWFPf (ORCPT ); Thu, 23 Nov 2017 00:15:35 -0500 Received: by mail-it0-f68.google.com with SMTP id x13so8917562iti.4 for ; Wed, 22 Nov 2017 21:15:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:mime-version :content-transfer-encoding; bh=ThJtdp6XDsJbPIBA0JdjoVIcQk5Y1QaQtMZKU19o/Ss=; b=DkI50LPOK/jxBmvdzHJyONE1eMfiKqFcsoKY8nrfKp5vbIfN0cl2Ii6QnjAUxyHxxV v2Ue8XtC4xpL/TbROfi03uE5Aq5YMPiHnlMcrZOet4DmYCdrCLysFG0kokU7WM1iZFy7 E9iMcNFztQSmU9OrJxyUbbG5Z26gJpTOxBmL9fmwTn86j8apdHIb7WYBJ1i5gOnZvsTx BMCPzJ0B8tB5/SuNKJJifQl1z2jlg/Br1H+MOtAkmyIZEFIIiHibXk3zHen4jtMFTOtx kVje+iWvnVUNvgRlY7EsiVSUYFEWLrEXS4Wal8IH/Y4o1j+C8RyWJCJDMJ6UVeSEM/21 7snQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:mime-version :content-transfer-encoding; bh=ThJtdp6XDsJbPIBA0JdjoVIcQk5Y1QaQtMZKU19o/Ss=; b=rGT9sdrXMwTrTQYCDFsJ9UB0Imkxa6N8bHWJwA87/MePWDKsfF+q9cz1R9eSU62qhP u8dZmPf1PWjqJE3CUD5pJZ/rb5sYNRvO2c8wpwpmelmshvJDYOBzW5aJ7C+vk8NAF3C/ OFb42rFCF3Pfos90S5ul8A+5QaOvRrk5xaZO+nxbAalxyWUfXa8awb68vj80UCkMeyJf 5kzug8drb04WiEQMq21pwzh8BzqIu6Nf7GqjQdFLOXvVhxm2NaLpc9agy8ppxoFg42rf Qr+fdjeOpQml9p8wd0xKlxAjl0ZGAf+S+sCQqfmppZCM8zrdmy3IBgjjkcGF+hHHVN1S 5g7g== X-Gm-Message-State: AJaThX5plfbUn+5OEQY+vfH8dNxd92zg+SjOdl0DYeVic1G1yE+shz5G AHBvwL8eZrWvwyAXQikw6MU= X-Received: by 10.36.108.81 with SMTP id w78mr10473813itb.140.1511414134833; Wed, 22 Nov 2017 21:15:34 -0800 (PST) Received: from klaptop ([49.207.58.167]) by smtp.gmail.com with ESMTPSA id g79sm2907411itb.29.2017.11.22.21.15.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Nov 2017 21:15:34 -0800 (PST) Message-ID: <1511414131.12425.14.camel@gmail.com> Subject: [PATCH 2/2] scripts: leaking_addresses: help screen updates From: kaiwan.billimoria@gmail.com To: "Tobin C. Harding" Cc: linux-kernel@vger.kernel.org, "kernel-hardening@lists.openwall.com" Date: Thu, 23 Nov 2017 10:45:31 +0530 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.2 (3.26.2-1.fc27) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The current leaking_addresses.pl script only supports showing "leaked" 64-bit kernel virtual addresses. This patch modifies the "help" screen in the following manner: - the '--raw', '--suppress-dmesg', '--squash-by-path' and '--squash-by-filename' option switches are only meaningful when the '--input-raw=' option switch is used. So, indent the 'Help' screen lines to reflect the fact. - an additional example demonstrating usage of the new '--page-offset' parameter. Feedback welcome.. Signed-off-by: Kaiwan N Billimoria --- diff --git a/scripts/leaking_addresses.pl b/scripts/leaking_addresses.pl index 7ca218221486..3832abb743d7 100755 --- a/scripts/leaking_addresses.pl +++ b/scripts/leaking_addresses.pl @@ -105,10 +105,10 @@ 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. + --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. --page-offset= PAGE_OFFSET value (for 32-bit kernels). -d, --debug Display debugging output. -h, --help, --version Display this help and exit. @@ -124,6 +124,10 @@ Examples: # View summary report. $0 --input-raw scan.out --squash-by-filename + # (On a 32-bit system with a 2GB:2GB VMSPLIT), pass PAGE_OFFSET value + # as a parameter + $0 --page-offset=0x80000000 + Scans the running (32 or 64 bit) kernel for potential leaking addresses. EOM From 1587311029942834634@xxx Wed Dec 20 13:49:21 +0000 2017 X-GM-THRID: 1584862006295659597 X-Gmail-Labels: Inbox,Category Forums