diff options
author | Christophe Leroy <[email protected]> | 2019-10-14 16:51:28 +0000 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2019-10-17 08:57:43 +1100 |
commit | d10f60ae27d26d811e2a1bb39ded47df96d7499f (patch) | |
tree | 04055f423810aea371f77a733419234e78f070f5 /tools/perf/util/trace-event-scripting.c | |
parent | 2272905a4580f26630f7d652cc33935b59f96d4c (diff) |
powerpc/32s: fix allow/prevent_user_access() when crossing segment boundaries.
Make sure starting addr is aligned to segment boundary so that when
incrementing the segment, the starting address of the new segment is
below the end address. Otherwise the last segment might get missed.
Fixes: a68c31fc01ef ("powerpc/32s: Implement Kernel Userspace Access Protection")
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/067a1b09f15f421d40797c2d04c22d4049a1cee8.1571071875.git.christophe.leroy@c-s.fr
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions