Skip to content
Commit f5f893c5 authored by Kees Cook's avatar Kees Cook
Browse files

usercopy: Adjust tests to deal with SMAP/PAN



Under SMAP/PAN/etc, we cannot write directly to userspace memory, so
this rearranges the test bytes to get written through copy_to_user().
Additionally drops the bad copy_from_user() test that would trigger a
memcpy() against userspace on failure.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 4fbfeb8b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment