Commit 96498cee authored by Kalesh Singh's avatar Kalesh Singh Committed by Matthias Männich
Browse files

ANDROID: 16K: Ensure stack expansion size is __PAGE_SIZE multiple



When expanding the stack, the range of the existing stack VMA is
modified to encompass the new faulting address.

The expansion must be done is multiples of __PAGE_SIZE size to
preserve the page size emulation invariants:

    1) The VMA is 16kB aligned
    2) The VMA is 16kB multiple-sized.

For x86_64, align down the faulting address by __PAGE_SIZE to
maintain these invariants.

Bug: 328138888
Bug: 345252092
Bug: 315325080
Bug: 302403436
Change-Id: I5e44e7204562959c3d860dcc52e364c4be8d0461
Signed-off-by: default avatarKalesh Singh <kaleshsingh@google.com>
parent 2d8f89ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment