security: bug fix: incorrect bprm->vma_pages prevent capturing all stack pages

The bprm->vma_pages field is used for quota only and not accurate for
the number of pages used on the stack. Instead, the vma_pages function
should be used to get an exact count.

BUG=b/160721250
TEST=Ran test on GKE and internal pipeline.

Signed-off-by: Thomas Garnier <thgarnie@chromium.org>
Change-Id: I3fd5a93a4dd633df50eb057988a1f571ed100378
Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/2380
Reviewed-by: Vaibhav Rustagi <vaibhavrustagi@google.com>
1 file changed