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.

TEST=Ran test on GKE and internal pipeline.

Signed-off-by: Thomas Garnier <>
Change-Id: I3fd5a93a4dd633df50eb057988a1f571ed100378
Reviewed-by: Vaibhav Rustagi <>
1 file changed