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-08-22 07:48:37 +02:00
2018-05-02 07:53:42 -07:00
2018-10-04 14:18:25 +05:30
2018-09-19 22:48:58 +02:00
2018-07-22 14:25:52 +02:00
2018-10-03 15:00:28 +05:30
2017-03-12 06:37:30 +01:00
2018-10-04 14:17:09 +05:30
2018-09-19 22:48:56 +02:00
2018-04-13 19:50:05 +02:00
2018-09-05 09:18:41 +02:00
2018-08-15 17:42:04 +02:00
2018-09-26 08:35:05 +02:00
2018-06-11 16:48:21 +05:30
2016-01-04 21:46:45 -05:00
2018-07-19 22:03:01 +05:30
2018-07-05 11:05:40 +01:00
2018-09-26 08:35:06 +02:00
2018-02-22 15:44:58 +01:00
2018-09-26 08:35:05 +02:00
2016-02-16 13:53:25 -08:00
2018-04-13 19:50:23 +02:00
2017-11-21 09:21:18 +01:00
2018-05-30 07:48:52 +02:00
2018-06-11 16:48:21 +05:30
2015-11-24 15:25:46 -08:00
2018-09-26 08:35:09 +02:00
2018-10-03 15:00:28 +05:30
2018-10-03 15:00:28 +05:30
2018-03-24 10:58:42 +01:00
2018-02-25 11:03:46 +01:00
2018-05-30 07:49:13 +02:00
2016-02-25 12:01:23 -08:00
2018-10-01 12:13:41 +01:00
2018-09-19 22:48:55 +02:00
2018-05-30 07:49:13 +02:00
2018-02-25 11:03:51 +01:00
2018-09-09 20:04:33 +02:00
2018-09-29 03:08:55 -07:00
2018-10-03 15:00:28 +05:30
2018-09-26 08:35:04 +02:00
2018-10-03 15:00:28 +05:30
2018-08-22 07:48:38 +02:00
2018-04-13 19:50:09 +02:00
2016-09-24 10:07:35 +02:00
2018-09-19 22:48:57 +02:00
2017-08-06 19:19:41 -07:00
2016-06-01 12:15:53 -07:00
2018-10-04 13:56:15 +05:30
2018-09-26 08:35:05 +02:00
2018-08-06 16:24:38 +02:00
2016-10-28 03:01:35 -04:00
2018-05-30 07:48:58 +02:00
2018-09-19 22:48:59 +02:00
2018-10-04 14:19:44 +05:30
2018-06-11 16:48:21 +05:30
2018-10-03 15:00:28 +05:30
2018-10-03 15:00:28 +05:30
2018-03-23 02:33:06 +00:00
2018-05-30 07:48:55 +02:00
2018-07-03 11:21:31 +02:00
2018-07-11 16:03:47 +02:00
2017-08-06 19:19:46 -07:00
2018-07-05 11:05:40 +01:00
2018-05-30 07:49:10 +02:00
2018-09-26 08:35:09 +02:00
2018-09-15 09:40:39 +02:00
2016-04-20 15:42:09 +09:00
2018-03-23 02:33:06 +00:00
2018-01-23 19:50:16 +01:00
2018-09-26 08:35:10 +02:00
2018-10-03 15:00:28 +05:30
2016-08-16 09:30:48 +02:00
2018-03-26 02:32:06 +00:00
2018-04-13 19:50:05 +02:00
2016-08-10 11:49:25 +02:00
2018-07-25 10:18:17 +02:00
2018-09-09 20:04:35 +02:00
2018-08-06 16:24:35 +02:00
2016-08-20 18:09:20 +02:00
2018-10-03 15:00:28 +05:30
2018-09-26 08:35:06 +02:00
2018-10-03 15:00:28 +05:30
2016-03-09 15:34:49 -08:00
2016-11-21 11:48:09 +08:00
2018-09-09 20:04:32 +02:00
2017-07-27 15:06:10 -07:00
2018-02-25 11:03:44 +01:00
2018-10-03 15:00:28 +05:30
2018-09-29 03:08:53 -07:00
2018-03-05 21:58:40 +05:30
2018-08-06 16:24:37 +02:00
2018-04-24 09:32:07 +02:00
2018-10-03 15:00:28 +05:30
2018-09-19 22:48:57 +02:00
2018-10-03 15:00:28 +05:30
2017-10-12 11:27:35 +02:00
2018-04-24 09:32:09 +02:00
2018-07-22 14:25:53 +02:00
2018-10-03 15:00:28 +05:30
2018-08-06 16:24:42 +02:00
2017-01-19 20:17:21 +01:00
2018-07-05 11:05:40 +01:00
2018-05-30 07:49:03 +02:00
2018-07-03 11:21:34 +02:00
2018-05-30 07:49:11 +02:00
2017-07-06 11:07:40 +08:00
2018-02-26 12:02:27 +08:00