Files
linux/drivers/misc
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
..
2014-02-28 14:08:42 -08:00
2015-03-16 21:10:28 +01:00
2013-08-27 08:28:01 -07:00
2018-10-04 14:19:44 +05:30
2018-09-19 22:48:59 +02:00