]> Git Repo - linux.git/commit
crypto: x86/sha256-avx2 - Fix RBP usage
authorJosh Poimboeuf <[email protected]>
Mon, 18 Sep 2017 19:42:08 +0000 (14:42 -0500)
committerHerbert Xu <[email protected]>
Wed, 20 Sep 2017 09:42:36 +0000 (17:42 +0800)
commitd3dfbfe2e6e7ecd620531d5201314ad14c4ed5b3
tree3ca1e7bf788cdc1a2c3f3b5e58e0cf7f4d99e1e2
parent673ac6fbc74f835e2125df9ee39e8a2a423832e2
crypto: x86/sha256-avx2 - Fix RBP usage

Using RBP as a temporary register breaks frame pointer convention and
breaks stack traces when unwinding from an interrupt in the crypto code.

There's no need to use RBP as a temporary register for the TBL value,
because it always stores the same value: the address of the K256 table.
Instead just reference the address of K256 directly.

Reported-by: Eric Biggers <[email protected]>
Reported-by: Peter Zijlstra <[email protected]>
Tested-by: Eric Biggers <[email protected]>
Acked-by: Eric Biggers <[email protected]>
Signed-off-by: Josh Poimboeuf <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
arch/x86/crypto/sha256-avx2-asm.S
This page took 0.050798 seconds and 4 git commands to generate.