aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2018-08-15 10:50:41 -0500
committerGreg Kroah-Hartman <[email protected]>2018-09-12 09:31:00 +0200
commitde916736aaaadddbd6061472969f667b14204aa9 (patch)
tree540add0d0bf39d78d40664c1d6687b2444c27acd /tools/perf/scripts/python/call-graph-from-sql.py
parent86503bd35dec0ce363e9fdbf5299927422ed3899 (diff)
misc: hmc6352: fix potential Spectre v1
val is indirectly controlled by user-space, hence leading to a potential exploitation of the Spectre variant 1 vulnerability. This issue was detected with the help of Smatch: drivers/misc/hmc6352.c:54 compass_store() warn: potential spectre issue 'map' [r] Fix this by sanitizing val before using it to index map 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://marc.info/?l=linux-kernel&m=152449131114778&w=2 Cc: [email protected] Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions