aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorNathan Lynch <[email protected]>2024-05-30 19:44:12 -0500
committerMichael Ellerman <[email protected]>2024-06-28 22:28:58 +1000
commit0974d03eb479384466d828d65637814bee6b26d7 (patch)
tree9e61fa2740cb95cd3bb6a215534c526c025724a2 /tools/perf/util/scripting-engines/trace-event-perl.c
parentd5d1a1a55a7f227c0f41847b0598982f0a93170d (diff)
powerpc/rtas: Prevent Spectre v1 gadget construction in sys_rtas()
Smatch warns: arch/powerpc/kernel/rtas.c:1932 __do_sys_rtas() warn: potential spectre issue 'args.args' [r] (local cap) The 'nargs' and 'nret' locals come directly from a user-supplied buffer and are used as indexes into a small stack-based array and as inputs to copy_to_user() after they are subject to bounds checks. Use array_index_nospec() after the bounds checks to clamp these values for speculative execution. Signed-off-by: Nathan Lynch <[email protected]> Reported-by: Breno Leitao <[email protected]> Reviewed-by: Breno Leitao <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions