Re: [PATCH v2] powerpc: Avoid link stack corruption in misc asm functions

2021-08-27 Thread Michael Ellerman
On Tue, 24 Aug 2021 07:56:35 + (UTC), Christophe Leroy wrote: > bl;mflr is used at several places to get code position. > > 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 detai

[PATCH v2] powerpc: Avoid link stack corruption in misc asm functions

2021-08-24 Thread Christophe Leroy
bl;mflr is used at several places to get code position. 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 --- v2: Use $+4 instead of label ; squas