From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Laight Subject: RE: [PATCH v4] scripts: add leaking_addresses.pl Date: Tue, 7 Nov 2017 13:56:05 +0000 Message-ID: <063D6719AE5E284EB5DD2968C1650D6DD00B3BD1@AcuExch.aculab.com> References: <1510050731-32446-1-git-send-email-me@tobin.cc> Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8BIT Cc: "Jason A. Donenfeld" , Theodore Ts'o , Linus Torvalds , 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 , "kernel-hardening@lists.openwall.com" Return-path: In-Reply-To: <1510050731-32446-1-git-send-email-me@tobin.cc> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Tobin C. Harding > Sent: 07 November 2017 10:32 > > Currently we are leaking addresses from the kernel to user space. This > script is an attempt to find some of those leakages. Script parses > `dmesg` output and /proc and /sys files for hex strings that look like > kernel addresses. ... Maybe the %p that end up in dmesg (via the kernel message buffer) should be converted to text in a form that allows the code that reads them to substitute alternate text for non-root users? Then the actual addresses will be available to root (who can probably get most by other means) but not to the casual observer. David