Skip to content

lib/crypto: x86/sha: Follow the normal %rbp convention

Eric Biggers linux-crypto 1 version Applied

Status from this message: Applied to https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=libcrypto-next

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3lib/crypto: x86/sha1: Follow the normal %rbp conventionlib/crypto/x86/sha1-avx2-asm.S lib/crypto/x86/sha1-ssse3-and-avx.S+10 -90 replies
2/3lib/crypto: x86/sha256: Follow the normal %rbp conventionlib/crypto/x86/sha256-avx-asm.S lib/crypto/x86/sha256-avx2-asm.S lib/crypto/x86/sha256-ni-asm.S +1 more+18 -190 replies
3/3lib/crypto: x86/sha512: Follow the normal %rbp conventionlib/crypto/x86/sha512-avx-asm.S lib/crypto/x86/sha512-avx2-asm.S lib/crypto/x86/sha512-ssse3-asm.S+18 -150 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchArd Biesheuvel
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] lib/crypto: x86/sha: Follow the normal %rbp convention

This series updates the x86 SHA-1, SHA-256, and SHA-512 assembly code to set up %rbp before pushing GPRs rather than after, so that the frame pointer unwinder will generate call traces reliably.

This doesn't matter much, given that the ORC unwinder is the default, and the fallback to scanning the stack made call traces sort of "work" anyway. But it annoyed me that these assembly functions use the "wrong" %rbp convention, differing from the C code.

This series is targeting libcrypto-next.

Eric Biggers (3):
lib/crypto: x86/sha1: Follow the normal %rbp convention lib/crypto: x86/sha256: Follow the normal %rbp convention lib/crypto: x86/sha512: Follow the normal %rbp convention

 lib/crypto/x86/sha1-avx2-asm.S      | 10 +++++-----
 lib/crypto/x86/sha1-ssse3-and-avx.S |  9 +++++----
 lib/crypto/x86/sha256-avx-asm.S     | 10 +++++-----
 lib/crypto/x86/sha256-avx2-asm.S    | 10 ++++------
 lib/crypto/x86/sha256-ni-asm.S      |  9 +++++----
 lib/crypto/x86/sha256-ssse3-asm.S   |  8 ++++----
 lib/crypto/x86/sha512-avx-asm.S     | 11 ++++++-----
 lib/crypto/x86/sha512-avx2-asm.S    | 11 ++++++-----
 lib/crypto/x86/sha512-ssse3-asm.S   | 11 ++++++-----
 9 files changed, 46 insertions(+), 43 deletions(-)

base-commit: 6a50ce0af5c91fd665d65d357af8ae55db1df7d0

Signature · 1 line
2.56.0