Greg Kroah-Hartman 96b02125dd prlimit: do_prlimit needs to have a speculation check
commit 739790605705ddcf18f21782b9c99ad7d53a8c11 upstream.

do_prlimit() adds the user-controlled resource value to a pointer that
will subsequently be dereferenced.  In order to help prevent this
codepath from being used as a spectre "gadget" a barrier needs to be
added after checking the range.

Reported-by: Jordy Zomer <jordyzomer@google.com>
Tested-by: Jordy Zomer <jordyzomer@google.com>
Suggested-by: Linus Torvalds <torvalds@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-24 07:17:59 +01:00
..
2023-01-18 11:41:42 +01:00
2020-01-17 19:48:42 +01:00
2021-02-07 15:35:49 +01:00
2020-01-09 10:19:54 +01:00
2019-07-08 19:36:47 -07:00
2019-07-08 19:36:47 -07:00