Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1277705

Re: [PATCH v3 0/4] Allow customizable random offset to mmap_base address.

From Daniel Cashman <dcashman@android.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 0/4] Allow customizable random offset to mmap_base address.
Date 2015-11-25 20:10 +0100
Message-ID <qyNC1-1Wc-11@gated-at.bofh.it> (permalink)
References <qwkkO-1pG-7@gated-at.bofh.it> <qywhQ-728-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 11/24/2015 04:39 PM, Andrew Morton wrote:

> mips, powerpc and s390 also implement arch_mmap_rnd().  Are there any
> special considerations here, or it just a matter of maintainers wiring
> it up and testing it?

I had not yet looked at those at all, as I had no way to do even a
rudimentary "does it boot" test and opted to post v3 first.  Upon first
glance, it should just be a matter of wiring it up:

Mips is divided into 12/16 bits for 32/64 bit (assume baseline 4k page)
w/COMPAT kconfig,  powerpc is 11/18 w/COMPAT, s390 is 11/11 w/COMPAT.
s390 is a bit strange as COMPAT is for a 31-bit address space, although
is_32bit_task() is used to determine which mask to use, and the mask
itself for 64-bit only introduces 11 bits of entropy, but while still
affecting larger chunks of the address space (mask is 0x3ff80, resulting
in an effective 0x7ff shift of PAGE_SIZE + 7 bits).

I could go ahead and add these to patchset v4 and as with the previous
architectures, rely on feedback from arch-specific maintainers to help
tune and test the values.

-Dan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 0/4] Allow customizable random offset to mmap_base address. Daniel Cashman <dcashman@android.com> - 2015-11-19 00:30 +0100
  [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base ASLR. Daniel Cashman <dcashman@android.com> - 2015-11-19 00:30 +0100
    Re: [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base  ASLR. Daniel Cashman <dcashman@android.com> - 2015-11-19 01:20 +0100
    Re: [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base  ASLR. Andrew Morton <akpm@linux-foundation.org> - 2015-11-25 01:50 +0100
      Re: [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base ASLR. Kees Cook <keescook@chromium.org> - 2015-11-25 01:50 +0100
        Re: [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base  ASLR. Daniel Cashman <dcashman@android.com> - 2015-11-25 20:20 +0100
    Re: [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base  ASLR. Michael Ellerman <mpe@ellerman.id.au> - 2015-11-25 05:50 +0100
      Re: [PATCH v3 1/4] mm: mmap: Add new /proc tunable for mmap_base  ASLR. Daniel Cashman <dcashman@android.com> - 2015-11-25 20:40 +0100
  Re: [PATCH v3 0/4] Allow customizable random offset to mmap_base  address. Andrew Morton <akpm@linux-foundation.org> - 2015-11-25 01:40 +0100
    Re: [PATCH v3 0/4] Allow customizable random offset to mmap_base  address. Daniel Cashman <dcashman@android.com> - 2015-11-25 20:10 +0100
      Re: [PATCH v3 0/4] Allow customizable random offset to mmap_base  address. Martin Schwidefsky <schwidefsky@de.ibm.com> - 2015-11-26 16:20 +0100
    Re: [PATCH v3 0/4] Allow customizable random offset to mmap_base  address. Michael Ellerman <mpe@ellerman.id.au> - 2015-11-26 08:10 +0100

csiph-web