Re: [PATCH v23 17/28] mm: Add guard pages around a shadow stack.

2021-03-22 Thread Kirill A. Shutemov
On Tue, Mar 16, 2021 at 08:10:43AM -0700, Yu-cheng Yu wrote: > INCSSP(Q/D) increments shadow stack pointer and 'pops and discards' the > first and the last elements in the range, effectively touches those memory > areas. > > The maximum moving distance by INCSSPQ is 255 * 8 = 2040 bytes and > 255

[PATCH v23 17/28] mm: Add guard pages around a shadow stack.

2021-03-16 Thread Yu-cheng Yu
INCSSP(Q/D) increments shadow stack pointer and 'pops and discards' the first and the last elements in the range, effectively touches those memory areas. The maximum moving distance by INCSSPQ is 255 * 8 = 2040 bytes and 255 * 4 = 1020 bytes by INCSSPD. Both ranges are far from PAGE_SIZE. Thus, p