Re: [PATCH] x86: Properly check register CFA offset

2017-07-26 Thread H.J. Lu
On Wed, Jul 26, 2017 at 12:04 PM, Uros Bizjak wrote: > On Wed, Jul 26, 2017 at 6:14 PM, H.J. Lu wrote: >> >> X86 epilogue saves register at CFA offset. Since its location on stack >> is computed as CFA - its CFA_OFFSET, CFA_OFFSET points the end of the >> saved register location on stack. This

Re: [PATCH] x86: Properly check register CFA offset

2017-07-26 Thread Uros Bizjak
On Wed, Jul 26, 2017 at 6:14 PM, H.J. Lu wrote: > > X86 epilogue saves register at CFA offset. Since its location on stack > is computed as CFA - its CFA_OFFSET, CFA_OFFSET points the end of the > saved register location on stack. This patch updates sp_valid_at and > fp_valid_at to properly chec

[PATCH] x86: Properly check register CFA offset

2017-07-26 Thread H.J. Lu
X86 epilogue saves register at CFA offset. Since its location on stack is computed as CFA - its CFA_OFFSET, CFA_OFFSET points the end of the saved register location on stack. This patch updates sp_valid_at and fp_valid_at to properly check register CFA offset. Tested on x86-64. OK for trunk if