[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200122101324.zitzy7doyh3nlzuh@gondor.apana.org.au>
Date: Wed, 22 Jan 2020 18:13:24 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Kees Cook <keescook@...omium.org>
Cc: Eric Biggers <ebiggers@...nel.org>, linux-kernel@...r.kernel.org,
x86@...nel.org, linux-crypto@...r.kernel.org,
Sami Tolvanen <samitolvanen@...gle.com>
Subject: Re: [PATCH v3] crypto, x86/sha: Eliminate casts on asm
implementations
On Tue, Jan 14, 2020 at 07:57:29PM -0800, Kees Cook wrote:
> In order to avoid CFI function prototype mismatches, this removes the
> casts on assembly implementations of sha1/256/512 accelerators. The
> safety checks from BUILD_BUG_ON() remain.
>
> Additionally, this renames various arguments for clarity, as suggested
> by Eric Biggers.
>
> Signed-off-by: Kees Cook <keescook@...omium.org>
> ---
> v3: fix missed variable name change, now correctly allmodconfig build tested
> v2: https://lore.kernel.org/lkml/202001141825.8CD52D0@keescook
> v1: https://lore.kernel.org/lkml/20191122030620.GD32523@sol.localdomain/
> ---
> arch/x86/crypto/sha1_avx2_x86_64_asm.S | 6 +--
> arch/x86/crypto/sha1_ssse3_asm.S | 14 ++++--
> arch/x86/crypto/sha1_ssse3_glue.c | 70 +++++++++++---------------
> arch/x86/crypto/sha256-avx-asm.S | 4 +-
> arch/x86/crypto/sha256-avx2-asm.S | 4 +-
> arch/x86/crypto/sha256-ssse3-asm.S | 6 ++-
> arch/x86/crypto/sha256_ssse3_glue.c | 34 ++++++-------
> arch/x86/crypto/sha512-avx-asm.S | 11 ++--
> arch/x86/crypto/sha512-avx2-asm.S | 11 ++--
> arch/x86/crypto/sha512-ssse3-asm.S | 13 +++--
> arch/x86/crypto/sha512_ssse3_glue.c | 31 ++++++------
> 11 files changed, 102 insertions(+), 102 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists