aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorNaoya Horiguchi <[email protected]>2015-03-25 15:55:14 -0700
committerLinus Torvalds <[email protected]>2015-03-25 16:20:30 -0700
commitf683739539e819e9b821a197d80e52258510837b (patch)
tree802b4a45c602f22691d90392fbfcafe97934eadf /tools/perf/scripts/python/bin/stackcollapse-report
parent3fe89b3e2a7bbf3e97657104b9b33a9d81b950b3 (diff)
mm/pagewalk.c: prevent positive return value of walk_page_test() from being passed to callers
walk_page_test() is purely pagewalk's internal stuff, and its positive return values are not intended to be passed to the callers of pagewalk. However, in the current code if the last vma in the do-while loop in walk_page_range() happens to return a positive value, it leaks outside walk_page_range(). So the user visible effect is invalid/unexpected return value (according to the reporter, mbind() causes it.) This patch fixes it simply by reinitializing the return value after checked. Another exposed interface, walk_page_vma(), already returns 0 for such cases so no problem. Fixes: fafaa4264eba ("pagewalk: improve vma handling") Signed-off-by: Naoya Horiguchi <[email protected]> Signed-off-by: Kazutomo Yoshii <[email protected]> Reported-by: Kazutomo Yoshii <[email protected]> Acked-by: David Rientjes <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions