Re: [PATCH] mm/vmalloc: widen guard region to defeat ENTER-based stack pivot

From: H. Peter Anvin

Date: Sun Jun 28 2026 - 22:26:30 EST


On 2026-06-26 13:05, Xiang Mei wrote:
>
> Thanks for your questions and attention.
>
> 1) `enter` can do big enough stack pivoting (where we can't find many
> `add/sub/adc/sbb rsp, ` doing so)

Say what?

Using add/sub/lea on %rsp is probably more common than enter, because enter is
considered kind of slow.

gcc, I believe, will generate "leave" but not "enter" as a result.


> 2) `enter` is not rare since we can take part in the instruction.

This sentence doesn't parse.

-hpa