Re: PING^1: [PATCH] x86: Check corrupted return address when unwinding stack

2022-10-17 Thread Hongtao Liu via Gcc-patches
On Wed, Oct 5, 2022 at 5:33 AM H.J. Lu wrote: > > On Wed, Sep 21, 2022 at 1:42 PM H.J. Lu wrote: > > > > If shadow stack is enabled, when unwinding stack, we count how many stack > > frames we pop to reach the landing pad and adjust shadow stack by the same > > amount. When counting the stack

PING^1: [PATCH] x86: Check corrupted return address when unwinding stack

2022-10-04 Thread H.J. Lu via Gcc-patches
On Wed, Sep 21, 2022 at 1:42 PM H.J. Lu wrote: > > If shadow stack is enabled, when unwinding stack, we count how many stack > frames we pop to reach the landing pad and adjust shadow stack by the same > amount. When counting the stack frame, we compare the return address on > normal stack

Re: [PATCH] x86: Check corrupted return address when unwinding stack

2022-09-30 Thread Jeff Law via Gcc-patches
On 9/21/22 14:42, H.J. Lu via Gcc-patches wrote: If shadow stack is enabled, when unwinding stack, we count how many stack frames we pop to reach the landing pad and adjust shadow stack by the same amount. When counting the stack frame, we compare the return address on normal stack against

[PATCH] x86: Check corrupted return address when unwinding stack

2022-09-21 Thread H.J. Lu via Gcc-patches
If shadow stack is enabled, when unwinding stack, we count how many stack frames we pop to reach the landing pad and adjust shadow stack by the same amount. When counting the stack frame, we compare the return address on normal stack against the return address on shadow stack. If they don't