summaryrefslogtreecommitdiffstats
path: root/MAINTAINERS
diff options
context:
space:
mode:
authorNaoya Horiguchi2015-03-25 23:55:14 +0100
committerLinus Torvalds2015-03-26 00:20:30 +0100
commitf683739539e819e9b821a197d80e52258510837b (patch)
tree802b4a45c602f22691d90392fbfcafe97934eadf /MAINTAINERS
parentmm: fix anon_vma->degree underflow in anon_vma endless growing prevention (diff)
downloadkernel-qcow2-linux-f683739539e819e9b821a197d80e52258510837b.tar.gz
kernel-qcow2-linux-f683739539e819e9b821a197d80e52258510837b.tar.xz
kernel-qcow2-linux-f683739539e819e9b821a197d80e52258510837b.zip
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 <n-horiguchi@ah.jp.nec.com> Signed-off-by: Kazutomo Yoshii <kazutomo.yoshii@gmail.com> Reported-by: Kazutomo Yoshii <kazutomo.yoshii@gmail.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions