aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins
diff options
context:
space:
mode:
authorArtem Savkov <[email protected]>2020-03-06 18:43:17 +0100
committerSteven Rostedt (VMware) <[email protected]>2020-03-11 10:37:12 -0400
commitd9815bff6b379ff46981bea9dfeb146081eab314 (patch)
tree9b5f536c2679ea760ac97c053da6abf86b918439 /scripts/gcc-plugins
parent2910b5aa6f545c044173a5cab3dbb7f43e23916d (diff)
ftrace: Return the first found result in lookup_rec()
It appears that ip ranges can overlap so. In that case lookup_rec() returns whatever results it got last even if it found nothing in last searched page. This breaks an obscure livepatch late module patching usecase: - load livepatch - load the patched module - unload livepatch - try to load livepatch again To fix this return from lookup_rec() as soon as it found the record containing searched-for ip. This used to be this way prior lookup_rec() introduction. Link: http://lkml.kernel.org/r/[email protected] Cc: [email protected] Fixes: 7e16f581a817 ("ftrace: Separate out functionality from ftrace_location_range()") Signed-off-by: Artem Savkov <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions