[PATCH 08/12] x86/crypto: Fix RBP usage in sha256-avx-asm.S

2017-08-29 Thread Josh Poimboeuf
Using RBP as a temporary register breaks frame pointer convention and breaks stack traces when unwinding from an interrupt in the crypto code. Swap the usages of R12 and RBP. Use R12 for the TBL register, and use RBP to store the pre-aligned stack pointer. Reported-by: Eric Biggers

[PATCH 08/12] x86/crypto: Fix RBP usage in sha256-avx-asm.S

2017-08-29 Thread Josh Poimboeuf
Using RBP as a temporary register breaks frame pointer convention and breaks stack traces when unwinding from an interrupt in the crypto code. Swap the usages of R12 and RBP. Use R12 for the TBL register, and use RBP to store the pre-aligned stack pointer. Reported-by: Eric Biggers