diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-20 11:03:20 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-21 16:14:17 +0100 |
commit | 739790605705ddcf18f21782b9c99ad7d53a8c11 (patch) | |
tree | 8d357b05077c04b9100fd0835cd6dac2bd1040f0 /fs/netfs | |
parent | 9be182da0a7526f1b9a3777a336f83baa2e64d23 (diff) |
prlimit: do_prlimit needs to have a speculation check
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 'fs/netfs')
0 files changed, 0 insertions, 0 deletions