aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/crypto/sha1_avx2_x86_64_asm.S
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@redhat.com>2017-09-18 14:42:03 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2017-09-20 17:42:33 +0800
commitc66cc3be2951fad4d7d7f799baf57c8c5cc8d655 (patch)
treea107140c131e533b931a9a0e98a742df78feb92d /arch/x86/crypto/sha1_avx2_x86_64_asm.S
parentcrypto: x86/cast5 - Fix RBP usage (diff)
downloadlinux-dev-c66cc3be2951fad4d7d7f799baf57c8c5cc8d655.tar.xz
linux-dev-c66cc3be2951fad4d7d7f799baf57c8c5cc8d655.zip
crypto: x86/cast6 - 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. Use R15 instead of RBP. R15 can't be used as the RID1 register because of x86 instruction encoding limitations. So use R15 for CTX and RDI for CTX. This means that CTX is no longer an implicit function argument. Instead it needs to be explicitly copied from RDI. 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 '')
0 files changed, 0 insertions, 0 deletions