diff options
author | 2018-06-08 11:53:41 +0200 | |
---|---|---|
committer | 2018-06-15 23:06:48 +0800 | |
commit | f044a84e040b85cd609851ac88ae8b54b2cc0b75 (patch) | |
tree | 29a62e2d18f271335ba95eed8b9863fb0684927c /crypto/morus640.c | |
parent | crypto: arm64/aes-blk - fix and move skcipher_walk_done out of kernel_neon_be... (diff) | |
download | linux-f044a84e040b85cd609851ac88ae8b54b2cc0b75.tar.gz linux-f044a84e040b85cd609851ac88ae8b54b2cc0b75.tar.bz2 linux-f044a84e040b85cd609851ac88ae8b54b2cc0b75.zip |
crypto: don't optimize keccakf()
keccakf() is the only function in kernel that uses __optimize() macro.
__optimize() breaks frame pointer unwinder as optimized code uses RBP,
and amusingly this always lead to degraded performance as gcc does not
inline across different optimizations levels, so keccakf() wasn't inlined
into its callers and keccakf_round() wasn't inlined into keccakf().
Drop __optimize() to resolve both problems.
Signed-off-by: Dmitry Vyukov <dvyukov@google.com>
Fixes: 83dee2ce1ae7 ("crypto: sha3-generic - rewrite KECCAK transform to help the compiler optimize")
Reported-by: syzbot+37035ccfa9a0a017ffcf@syzkaller.appspotmail.com
Reported-by: syzbot+e073e4740cfbb3ae200b@syzkaller.appspotmail.com
Cc: linux-crypto@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/morus640.c')
0 files changed, 0 insertions, 0 deletions