UPSTREAM: KVM: arm64: Add guard pages for pKVM (protected nVHE) hypervisor stack
Map the stack pages in the flexible private VA range and allocate guard pages below the stack as unbacked VA space. The stack is aligned so that any valid stack address has PAGE_SHIFT bit as 1 - this is used for overflow detection (implemented in a subsequent patch in the series) Signed-off-by:Kalesh Singh <kaleshsingh@google.com> Tested-by:
Fuad Tabba <tabba@google.com> Reviewed-by:
Fuad Tabba <tabba@google.com> Signed-off-by:
Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220420214317.3303360-5-kaleshsingh@google.com (cherry picked from commit 1a919b17) Signed-off-by:
Will Deacon <willdeacon@google.com> Bug: 233587962 Bug: 233588291 Change-Id: I27367ca9ab78bfcc2711f6525b066436bfb5b264
Loading
Please sign in to comment