All of lore.kernel.org
 help / color / mirror / Atom feed
From: jan.kiszka@siemens.com (Jan Kiszka)
To: cip-dev@lists.cip-project.org
Subject: [cip-dev] [PATCH 4.4-cip 0/6] Extend user-space ASLR range
Date: Fri, 9 Dec 2016 13:20:17 +0100	[thread overview]
Message-ID: <7c58c7d6-92fa-4b99-aa15-25c41243810c@siemens.com> (raw)
In-Reply-To: <1481241380.1860.120.camel@codethink.co.uk>

On 2016-12-09 00:56, Ben Hutchings wrote:
> This is a backport of changes in 4.5 to extend the range of Address
> Space Layout Randomisation for user-space processes.  When enabled, this
> should make some user-space vulnerabilities harder to exploit, but it
> can also cause some applications to fail if they currently use a large
> proportion of the virtual address space.
> 
> The default ASLR range remains the same, but it can be changed through
> kernel config (CONFIG_ARCH_MMAP_RND_BITS) or at run-time through sysctl
> (vm.mmap_rnd_bits).  (For 32-bit compat tasks, the range is controlled
> through CONFIG_ARCH_MMAP_RND_COMPAT_BITS and vm.mmap_rnd_compat_bits.)
> 
> This includes support for arm, arm64 and x86 (32- and 64-bit).  (arm64
> is not currently supported by CIP, but it was easier to include it in
> the backport than to leave it out.)
> 
> For this and other backports, I'm looking for feedback like:
> - Did I miss a follow-up fix or an earlier dependency?
> - Does this cause a regression (other than as explained above)?
> - Are you likely to use it?
> - Are there related features you want in 4.4?
> 
> Ben.
> 
> Daniel Cashman (6):
>   mm: mmap: add new /proc tunable for mmap_base ASLR
>   arm: mm: support ARCH_MMAP_RND_BITS
>   arm64: mm: support ARCH_MMAP_RND_BITS
>   x86: mm: support ARCH_MMAP_RND_BITS
>   drivers: char: random: add get_random_long()
>   mm: ASLR: use get_random_long()
> 
>  Documentation/sysctl/vm.txt      | 29 +++++++++++++++++
>  arch/Kconfig                     | 68 ++++++++++++++++++++++++++++++++++++++++
>  arch/arm/Kconfig                 |  9 ++++++
>  arch/arm/mm/mmap.c               |  3 +-
>  arch/arm64/Kconfig               | 29 +++++++++++++++++
>  arch/arm64/mm/mmap.c             |  8 +++--
>  arch/mips/mm/mmap.c              |  4 +--
>  arch/powerpc/kernel/process.c    |  4 +--
>  arch/powerpc/mm/mmap.c           |  4 +--
>  arch/sparc/kernel/sys_sparc_64.c |  2 +-
>  arch/x86/Kconfig                 | 16 ++++++++++
>  arch/x86/mm/mmap.c               | 12 +++----
>  drivers/char/random.c            | 22 +++++++++++++
>  fs/binfmt_elf.c                  |  2 +-
>  include/linux/mm.h               | 11 +++++++
>  include/linux/random.h           |  1 +
>  kernel/sysctl.c                  | 22 +++++++++++++
>  mm/mmap.c                        | 12 +++++++
>  18 files changed, 240 insertions(+), 18 deletions(-)
> 

Did you try to discuss the back-port topic with the KSPP folks or other
key persons involved in these patches? In the ideal case, the authors
can be CC'ed, do not get annoyed by "these crazy people doing legacy
stuff", and may even do some reviews.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux

  parent reply	other threads:[~2016-12-09 12:20 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-08 23:56 [cip-dev] [PATCH 4.4-cip 0/6] Extend user-space ASLR range Ben Hutchings
2016-12-08 23:57 ` [cip-dev] [PATCH 4.4-cip 1/6] mm: mmap: add new /proc tunable for mmap_base ASLR Ben Hutchings
2016-12-08 23:57 ` [cip-dev] [PATCH 4.4-cip 2/6] arm: mm: support ARCH_MMAP_RND_BITS Ben Hutchings
2016-12-08 23:57 ` [cip-dev] [PATCH 4.4-cip 3/6] arm64: " Ben Hutchings
2016-12-08 23:58 ` [cip-dev] [PATCH 4.4-cip 4/6] x86: " Ben Hutchings
2016-12-08 23:58 ` [cip-dev] [PATCH 4.4-cip 5/6] drivers: char: random: add get_random_long() Ben Hutchings
2016-12-08 23:58 ` [cip-dev] [PATCH 4.4-cip 6/6] mm: ASLR: use get_random_long() Ben Hutchings
2016-12-09 12:20 ` Jan Kiszka [this message]
2016-12-19 10:52   ` [cip-dev] [PATCH 4.4-cip 0/6] Extend user-space ASLR range Jan Kiszka
2017-01-03 23:56     ` Kees Cook
2017-01-04 14:51       ` Agustin Benito Bethencourt
2017-01-12 13:40       ` Ben Hutchings
2016-12-23 16:46   ` Ben Hutchings
2017-01-02 18:48     ` Agustin Benito Bethencourt
2017-01-16 10:35 ` Agustin Benito Bethencourt
2017-01-16 10:47   ` Agustin Benito Bethencourt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7c58c7d6-92fa-4b99-aa15-25c41243810c@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=cip-dev@lists.cip-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.