Greg Kroah-Hartman 9f8e45720e 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:19:58 +01:00
..
2023-01-14 10:16:24 +01:00
2023-01-04 11:39:23 +01:00
2023-01-04 11:39:23 +01:00
2020-08-12 10:58:02 -07:00
2023-01-14 10:15:20 +01:00
2020-11-14 11:26:04 -08:00
2020-07-27 14:31:12 -04:00