]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/memcpy: Fix stack corruption for smaller sizes
authorSantosh Sivaraj <santosh@fossix.org>
Tue, 3 Sep 2019 21:43:58 +0000 (03:13 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 11 Sep 2019 23:27:00 +0000 (09:27 +1000)
commit01f0dc7d96973d8a4e1b7a1d109ca859aa9a992a
tree3d64b3e4bd6df2e322a47712bd65d72c46f77bb3
parent76661b9d368ee13df8deb23d300fd620a26326cf
powerpc/memcpy: Fix stack corruption for smaller sizes

For sizes lesser than 128 bytes, the code branches out early without saving
the stack frame, which when restored later drops frame of the caller.

Tested-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Santosh Sivaraj <santosh@fossix.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190903214359.23887-1-santosh@fossix.org
arch/powerpc/lib/memcpy_mcsafe_64.S