Re: [PATCH v3] powerpc/booke: Avoid link stack corruption in several places

2021-08-27 Thread Michael Ellerman
On Tue, 24 Aug 2021 07:56:26 + (UTC), Christophe Leroy wrote: > Use bcl 20,31,+4 instead of bl in order to preserve link stack. > > See commit c974809a26a1 ("powerpc/vdso: Avoid link stack corruption > in __get_datapage()") for details. > > > > [...] Applied to powerpc/next. [1/1] powerpc

Re: [PATCH v3] powerpc/booke: Avoid link stack corruption in several places

2021-08-24 Thread Segher Boessenkool
Hi! On Tue, Aug 24, 2021 at 07:56:26AM +, Christophe Leroy wrote: > Use bcl 20,31,+4 instead of bl in order to preserve link stack. You use $+4 actually, which is clearer than .+4 or just +4 (and I am surprised that the latter even works btw, I never knew :-) -- either way it looks like a typ

[PATCH v3] powerpc/booke: Avoid link stack corruption in several places

2021-08-24 Thread Christophe Leroy
Use bcl 20,31,+4 instead of bl in order to preserve link stack. See commit c974809a26a1 ("powerpc/vdso: Avoid link stack corruption in __get_datapage()") for details. Signed-off-by: Christophe Leroy --- v3: Use $+4 as destination instead of label v2: Added missing ; in LOAD_REG_ADDR_PIC() --- a