summaryrefslogtreecommitdiff
path: root/arch/x86/crypto/sha256-ssse3-asm.S
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@redhat.com>2017-09-18 22:42:08 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-09-20 12:42:36 +0300
commitd3dfbfe2e6e7ecd620531d5201314ad14c4ed5b3 (patch)
tree3ca1e7bf788cdc1a2c3f3b5e58e0cf7f4d99e1e2 /arch/x86/crypto/sha256-ssse3-asm.S
parent673ac6fbc74f835e2125df9ee39e8a2a423832e2 (diff)
downloadlinux-d3dfbfe2e6e7ecd620531d5201314ad14c4ed5b3.tar.xz
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 <ebiggers@google.com> Reported-by: Peter Zijlstra <peterz@infradead.org> Tested-by: Eric Biggers <ebiggers@google.com> Acked-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/x86/crypto/sha256-ssse3-asm.S')
0 files changed, 0 insertions, 0 deletions