kernel-hardening.lists.openwall.com archive mirror
 help / color / mirror / Atom feed
* [kernel-hardening] [PATCH 0/2] introduce post-init read-only memory
@ 2015-11-24 21:38 Kees Cook
  2015-11-24 21:38 ` [kernel-hardening] [PATCH 1/2] x86: " Kees Cook
                   ` (2 more replies)
  0 siblings, 3 replies; 41+ messages in thread
From: Kees Cook @ 2015-11-24 21:38 UTC (permalink / raw)
  To: linux-kernel
  Cc: Kees Cook, Andy Lutomirski, Ingo Molnar, Thomas Gleixner,
	H. Peter Anvin, x86, Arnd Bergmann, Michael Ellerman, linux-arch,
	kernel-hardening

One of the easiest ways to protect the kernel from attack is to reduce
the internal attack surface exposed when a "write" flaw is available. By
making as much of the kernel read-only as possible, we reduce the
attack surface.

Many things are written to only during __init, and never changed
again. These cannot be made "const" since the compiler will do the wrong
thing (we do actually need to write to them). Instead, move these items
into a memory region that will be made read-only during mark_rodata_ro()
which happens after all kernel __init code has finished.

This introduces __read_only as a way to mark such memory, and uses it on
the x86 vDSO to kill an extant kernel exploitation method.

-Kees

^ permalink raw reply	[flat|nested] 41+ messages in thread

end of thread, other threads:[~2015-11-30 21:43 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-24 21:38 [kernel-hardening] [PATCH 0/2] introduce post-init read-only memory Kees Cook
2015-11-24 21:38 ` [kernel-hardening] [PATCH 1/2] x86: " Kees Cook
2015-11-25  0:34   ` [kernel-hardening] " Andy Lutomirski
2015-11-25  0:44     ` Kees Cook
2015-11-25  0:54       ` Michael Ellerman
2015-11-25 15:03         ` Kees Cook
2015-11-25 23:05           ` Michael Ellerman
2015-11-25 23:32             ` Kees Cook
2015-11-24 21:38 ` [kernel-hardening] [PATCH 2/2] x86, vdso: mark vDSO read-only after init Kees Cook
2015-11-25  9:13 ` [kernel-hardening] [PATCH 0/2] introduce post-init read-only memory Mathias Krause
2015-11-25 10:06   ` Clemens Ladisch
2015-11-25 11:14     ` PaX Team
2015-11-26 15:23     ` Daniel Micay
2015-11-25 11:05   ` PaX Team
2015-11-26  8:54     ` Ingo Molnar
2015-11-26  9:57       ` PaX Team
2015-11-26 10:42         ` Ingo Molnar
2015-11-26 12:14           ` PaX Team
2015-11-27  8:05             ` Ingo Molnar
2015-11-27 15:29               ` PaX Team
2015-11-27 16:30                 ` Andy Lutomirski
2015-11-29  8:08                 ` Ingo Molnar
2015-11-29 11:15                   ` PaX Team
2015-11-29 15:39                     ` Ingo Molnar
2015-11-29 18:05                       ` Mathias Krause
2015-11-30  8:01                         ` Ingo Molnar
2015-11-26 16:11       ` Andy Lutomirski
2015-11-27  7:59         ` Ingo Molnar
2015-11-27 18:00           ` Linus Torvalds
2015-11-27 18:03             ` Linus Torvalds
2015-11-27 20:03             ` Kees Cook
2015-11-27 20:09               ` Andy Lutomirski
2015-11-29  8:05                 ` Ingo Molnar
2015-11-30 21:14                   ` H. Peter Anvin
2015-11-30 21:33                     ` Kees Cook
2015-11-30 21:38                       ` Andy Lutomirski
2015-11-30 21:43                       ` H. Peter Anvin
2015-11-25 17:26   ` Kees Cook
2015-11-25 17:31   ` H. Peter Anvin
2015-11-25 18:54     ` Kees Cook
2015-11-25 19:06       ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).