diff options
author | Peter Zijlstra <[email protected]> | 2020-03-05 10:21:30 +0100 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2020-03-20 13:06:22 +0100 |
commit | d8a738689794c42c3844284b99ddf165d10a724e (patch) | |
tree | fe08aebdea08225ef9c23a99fb87401169261c76 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | d1c9f7d117195da6229408d31d01ee011425fc68 (diff) |
x86/optprobe: Fix OPTPROBE vs UACCESS
While looking at an objtool UACCESS warning, it suddenly occurred to me
that it is entirely possible to have an OPTPROBE right in the middle of
an UACCESS region.
In this case we must of course clear FLAGS.AC while running the KPROBE.
Luckily the trampoline already saves/restores [ER]FLAGS, so all we need
to do is inject a CLAC. Unfortunately we cannot use ALTERNATIVE() in the
trampoline text, so we have to frob that manually.
Fixes: ca0bbc70f147 ("sched/x86_64: Don't save flags on context switch")
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions