vg_scan_all_valid_memory: Don't prod any page unless we're sure we
need to.  Poking pages unnecessarily can cause a page fault which
under some rare circumstances can cause the kernel to extend the stack
segment all the way down to the poked page, which is seriously bad.

Fixes a bug shown by --trace-children=yes --skin=addrcheck
--leak-check=yes when running OpenOffice 1.0.1 on SuSE 8.1. This
distro seems to run with no stack limit, which is one prerequisite of
this bug.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1386 a5019735-40e9-0310-863c-91ae7b9d1cf9
1 file changed