aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/python/tracepoint.py
diff options
context:
space:
mode:
authorMasami Hiramatsu <[email protected]>2020-12-03 04:50:37 +0000
committerBorislav Petkov <[email protected]>2020-12-06 08:58:13 +0000
commit4e9a5ae8df5b3365183150f6df49e49dece80d8c (patch)
tree3f10655b516680582aceaaae84846f4e53465d26 /tools/perf/python/tracepoint.py
parentx86/platform/uv: Fix UV4 hub revision adjustment (diff)
downloadkernel-4e9a5ae8df5b3365183150f6df49e49dece80d8c.tar.gz
kernel-4e9a5ae8df5b3365183150f6df49e49dece80d8c.zip
x86/uprobes: Do not use prefixes.nbytes when looping over prefixes.bytes
Since insn.prefixes.nbytes can be bigger than the size of insn.prefixes.bytes[] when a prefix is repeated, the proper check must be insn.prefixes.bytes[i] != 0 and i < 4 instead of using insn.prefixes.nbytes. Introduce a for_each_insn_prefix() macro for this purpose. Debugged by Kees Cook <[email protected]>. [ bp: Massage commit message, sync with the respective header in tools/ and drop "we". ] Fixes: 2b1444983508 ("uprobes, mm, x86: Add the ability to install and remove uprobes breakpoints") Reported-by: [email protected] Signed-off-by: Masami Hiramatsu <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Srikar Dronamraju <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/160697103739.3146288.7437620795200799020.stgit@devnote2
Diffstat (limited to 'tools/perf/python/tracepoint.py')
0 files changed, 0 insertions, 0 deletions