summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-20 11:03:20 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-24 07:11:49 +0100
commitd3ee91e50a6b3c5a45398e3dcb912a8a264f575c (patch)
tree9c3ea51ab9770639d507baff2bc8738858babd08 /drivers
parent30f9ad9fb34e26f2a079d3b4fa424036b03c2e12 (diff)
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>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions