[v2, 2/2] powerpc/vdso: Avoid link stack corruption in __get_datapage()

Michael Ellerman mpe at ellerman.id.au
Fri Oct 2 17:47:09 AEST 2015


On Fri, 2015-25-09 at 04:01:40 UTC, Michael Neuling wrote:
> powerpc has a link register (lr) used for calling functions. We "bl
> <func>" to call a function, and "blr" to return back to the call site.

<snip, geez that was long>

> For the benchmark in tools/testing/selftests/powerpc/benchmarks/gettimeofday.c
>   POWER8:
>     64bit gets ~4% improvement
>     32bit gets ~9% improvement
>   POWER7:
>     64bit gets ~7% improvement
> 
> Signed-off-by: Michael Neuling <mikey at neuling.org>
> Reported-by: Aaron Sawdey <sawdey at us.ibm.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/c974809a26a13e40254dbe3c

cheers


More information about the Linuxppc-dev mailing list