All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Rutland <mark.rutland@arm.com>
To: park jinbum <jinb.park7@gmail.com>
Cc: kernel-hardening@lists.openwall.com,
	Kees Cook <keescook@chromium.org>,
	"AKASHI, Takahiro" <takahiro.akashi@linaro.org>
Subject: Re: [kernel-hardening] Introduction
Date: Thu, 12 Jan 2017 16:06:02 +0000	[thread overview]
Message-ID: <20170112160602.GA12583@leverpostej> (raw)
In-Reply-To: <CAErMHp-W=zcX-D10dbhzRG41-mjfVcKb2_+p4dxdXsnfizZuag@mail.gmail.com>

On Fri, Jan 13, 2017 at 12:06:31AM +0900, park jinbum wrote:
> Hello All,

Hi,

> I'd like to contribute to kernel self protection project.
> I've experienced ARM kernel, security solution on production.
> (kernel memory protection, contents protection, ...)
> 
> I'm interested in following topics.
> - Move kernel stack to vmap area (done on x86, other archs still need it)

FWIW, I'm looking at this for arm64 (and Takahiro-san is also looking at
this area). Making the stacks virtually mapped is fairly trivial, but
implementing reliable {under,over}flow handling is fairly involved.

32-bit ARM is also somewhat starved for vmalloc space, so ignoring the
difficulties in exception handling changes, I'm not sure that's going to
be widely deployable.

I believe it should be possible to implement THREAD_INFO_IN_TASK for arm
similarly to arm64, which would bring some benefit regardless.

Takahiro-san, were you looking into that at all?

> - KASLR for ARM

Given the small amount of VA space on 32-bit, and the potential of
kernel addresses to be determined by other means, I'm not sure that
there's much gain from this relative to the work involved.

> - protect ARM vector table as fixed-location kernel target

I'm not exactly sure what this means (I see it was taken from the KSPP
todo list?). Kees -- did you have a specific idea here?

On cores with VBAR, the vectors can be moved, so it might be possible to
dynamically allocate them at a random position. Otherwise, I was under
the impression that this was RO with DEBUG_RODATA selected.

... on that note, mandating DEBUG_RODATA for 32-bit ARM would be a good
step forward.

Thanks,
Mark.

  reply	other threads:[~2017-01-12 16:06 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-12 15:06 [kernel-hardening] Introduction park jinbum
2017-01-12 16:06 ` Mark Rutland [this message]
2017-01-13  8:23   ` AKASHI, Takahiro
2017-01-13 17:54     ` Kees Cook
2017-01-13 18:51       ` PaX Team
2017-01-13 19:06         ` Kees Cook
2017-01-13 19:26           ` Kees Cook
2017-01-13 20:38             ` Kees Cook
2017-01-13 23:09             ` PaX Team
2017-01-13 23:15               ` Kees Cook
2017-01-14 10:10                 ` PaX Team
2017-01-17 17:32                   ` Kees Cook
2017-01-17 18:43                     ` PaX Team
2017-01-13 20:35           ` PaX Team
2017-01-13 21:57           ` Daniel Micay
2017-01-13 22:04             ` Kees Cook
  -- strict thread matches above, loose matches on Subject: below --
2017-01-24  0:06 Jessica Frazelle
2017-01-25 19:37 ` Kees Cook
2017-01-26  4:12   ` Jessica Frazelle
2017-01-26 21:42     ` Kees Cook
2017-01-27 19:14       ` Jessica Frazelle
2017-01-30 20:02         ` Kees Cook
2015-12-17 23:34 Leibowitz, Michael
2015-12-18  0:36 ` Kees Cook
2015-12-18  0:48   ` Daniel Micay
2015-12-18 16:54     ` Schaufler, Casey
2015-12-18 21:11       ` Kees Cook
2015-12-18  1:00   ` Solar Designer
2015-12-18  2:42   ` David Windsor

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=20170112160602.GA12583@leverpostej \
    --to=mark.rutland@arm.com \
    --cc=jinb.park7@gmail.com \
    --cc=keescook@chromium.org \
    --cc=kernel-hardening@lists.openwall.com \
    --cc=takahiro.akashi@linaro.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.