aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2019-07-31 12:54:28 -0500
committerDoug Ledford <[email protected]>2019-08-01 12:14:15 -0400
commit6497d0a9c53df6e98b25e2b79f2295d7caa47b6e (patch)
treefea447494129d074937be360a78b0cfcedaa1eea /lib/mpi/mpi-inline.h
parent770b7d96cfff6a8bf6c9f261ba6f135dc9edf484 (diff)
IB/hfi1: Fix Spectre v1 vulnerability
sl is controlled by user-space, hence leading to a potential exploitation of the Spectre variant 1 vulnerability. Fix this by sanitizing sl before using it to index ibp->sl_to_sc. Notice that given that speculation windows are large, the policy is to kill the speculation on the first load and not worry if it can be completed with a dependent load/store [1]. [1] https://lore.kernel.org/lkml/[email protected]/ Cc: [email protected] Signed-off-by: Gustavo A. R. Silva <[email protected]> Link: https://lore.kernel.org/r/20190731175428.GA16736@embeddedor Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions