diff options
author | Josh Poimboeuf <[email protected]> | 2017-09-18 14:42:00 -0500 |
---|---|---|
committer | Herbert Xu <[email protected]> | 2017-09-20 17:42:31 +0800 |
commit | 569f11c9f788959b640116b5bbd6d8a1f07326da (patch) | |
tree | 491fe651a7daa4fb738224b2e269ce9c8af4dd1d /mm/util.c | |
parent | bd6227a150fdb56e7bb734976ef6e53a2c1cb334 (diff) |
crypto: x86/blowfish - 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 R12 instead of RBP. R12 can't be used as the RT0 register because
of x86 instruction encoding limitations. So use R12 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 <[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]>
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions