Files
linux/drivers
Kees Cook f6e2385809 BACKPORT: lkdtm: add bad USER_DS test
(cherry-picked from e22aa9d781)

This adds CORRUPT_USER_DS to check that the get_fs() test on syscall
return (via __VERIFY_PRE_USERMODE_STATE) still sees USER_DS. Since
trying to deal with values other than USER_DS and KERNEL_DS across all
architectures in a safe way is not sensible, this sets KERNEL_DS, but
since that could be extremely dangerous if the protection is not present,
it also raises SIGKILL for current, so that no matter what, the process
will die. A successful test will be visible with a BUG(), like all the
other LKDTM tests.

Change-Id: I1d2585de65032f0f6b9baea2a71f92bfc296c94b
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Satya Tangirala <satyat@google.com>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2018-10-04 14:19:44 +05:30
..
2018-07-22 14:25:52 +02:00
2018-02-25 11:03:46 +01:00
2018-02-25 11:03:51 +01:00
2018-08-22 07:48:38 +02:00
2016-09-24 10:07:35 +02:00
2018-07-25 10:18:17 +02:00
2017-07-06 11:07:40 +08:00