• Tobin C. Harding's avatar
    leaking_addresses: add 32-bit support · 1410fe4e
    Tobin C. Harding authored
    Currently script only supports x86_64 and ppc64.  It would be nice to be
    able to scan 32-bit machines also.  We can add support for 32-bit
    architectures by modifying how we check for false positives, taking
    advantage of the page offset used by the kernel, and using the correct
    regular expression.
    
    Support for 32-bit machines is enabled by the observation that the kernel
    addresses on 32-bit machines are larger [in value] than the page offset.
    We can use this to filter false positives when scanning the kernel for
    leaking addresses.
    
    Programmatic determination of the running architecture is not
    immediately obvious (current 32-bit machines return various strings from
    `uname -m`).  We therefore provide a flag to enable scanning of 32-bit
    kernels.  Also we can check the kernel config file for the offset and if
    not found default to 0xc0000000.  A command line option to parse in the
    page offset is also provided.  We do automatically detect architecture
    if running on ix86.
    
    Add support for 32-bit kernels.  Add a command line option for page
    offset.
    Suggested-by: 's avatarKaiwan N Billimoria <kaiwan.billimoria@gmail.com>
    Signed-off-by: 's avatarTobin C. Harding <me@tobin.cc>
    1410fe4e
Name
Last commit
Last update
Documentation Loading commit data...
LICENSES Loading commit data...
arch Loading commit data...
block Loading commit data...
certs Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt Loading commit data...
.cocciconfig Loading commit data...
.get_maintainer.ignore Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...