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


Groups > linux.kernel > #1416671

[PATCH 0/5] lkdtm: add usercopy and rodata, fix atomic

From Kees Cook <keescook@chromium.org>
Newsgroups linux.kernel
Subject [PATCH 0/5] lkdtm: add usercopy and rodata, fix atomic
Date 2016-06-08 00:00 +0200
Message-ID <rHxct-85W-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


This adds several new tests to lkdtm.

To test non-executability of .rodata, lkdtm's build method shifted
around a bit requiring a source file rename. But after some objcopy
magic, there is now an architecture-agnostic way to write functions
into .rodata.

The atomic under/overflow test was split so that each case could be
individually tested.

The biggest addition are the usercopy tests (in preparation for
CONFIG_HARDENED_USERCOPY, based on grsecurity/PaX's PAX_USERCOPY).
This tests both directions (copy_to_from, copy_from_user) of the
three error conditions that are checked for: wrong object size,
wrong stack frame, and wrong object markings.

Unless anyone has blocking comments, I'll send a pull to Greg
for this to land in -next soon.

-Kees

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


Thread

[PATCH 0/5] lkdtm: add usercopy and rodata, fix atomic Kees Cook <keescook@chromium.org> - 2016-06-08 00:00 +0200

csiph-web