Re: [PATCH 0/3] crypto: x86/sha1 - regression and other fixes

2014-03-25 Thread Mathias Krause
On 24 March 2014 18:29, chandramouli narayanan mo...@linux.intel.com wrote:
 On Mon, 2014-03-24 at 17:10 +0100, Mathias Krause wrote:
 The recent addition of the AVX2 variant of the SHA1 hash function wrongly
 disabled the AVX variant by introducing a flaw in the feature test. Fixed
 in patch 1.

 The alignment calculations of the AVX2 assembler implementation are
 questionable, too. Especially the page alignment of the stack pointer is
 broken in multiple ways. Fixed in patch 2. In patch 3 another issue for
 code alignment is fixed.

 Please apply!

 Mathias Krause (3):
   crypto: x86/sha1 - re-enable the AVX variant
   crypto: x86/sha1 - fix stack alignment of AVX2 variant
   crypto: x86/sha1 - reduce size of the AVX2 asm implementation

  arch/x86/crypto/sha1_avx2_x86_64_asm.S |8 ++--
  arch/x86/crypto/sha1_ssse3_glue.c  |   26 --
  2 files changed, 18 insertions(+), 16 deletions(-)

 Your fixes are the right on mark. I went through your patches and tested
 them and found to be correct.

Thanks for double-checking!

 Sorry for causing regression and missing alignment issues in the patches
 I submitted.

No problem with that. But as I'm not subscribed to the linux-crypto
mailing list I haven't seen your earlier submissions. Otherwise I
would have objected earlier. ;)

Thanks,
Mathias
--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 0/3] crypto: x86/sha1 - regression and other fixes

2014-03-25 Thread Herbert Xu
On Mon, Mar 24, 2014 at 09:19:44PM +0100, Marek Vasut wrote:
 On Monday, March 24, 2014 at 05:10:36 PM, Mathias Krause wrote:
  The recent addition of the AVX2 variant of the SHA1 hash function wrongly
  disabled the AVX variant by introducing a flaw in the feature test. Fixed
  in patch 1.
  
  The alignment calculations of the AVX2 assembler implementation are
  questionable, too. Especially the page alignment of the stack pointer is
  broken in multiple ways. Fixed in patch 2. In patch 3 another issue for
  code alignment is fixed.
  
  Please apply!
 
 Nice,
 
 Reviewed-by: Marek Vasut ma...@denx.de

All applied.  Thanks Mathias!
-- 
Email: Herbert Xu herb...@gondor.apana.org.au
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 0/3] crypto: x86/sha1 - regression and other fixes

2014-03-24 Thread Mathias Krause
The recent addition of the AVX2 variant of the SHA1 hash function wrongly
disabled the AVX variant by introducing a flaw in the feature test. Fixed
in patch 1.

The alignment calculations of the AVX2 assembler implementation are
questionable, too. Especially the page alignment of the stack pointer is
broken in multiple ways. Fixed in patch 2. In patch 3 another issue for
code alignment is fixed.

Please apply!

Mathias Krause (3):
  crypto: x86/sha1 - re-enable the AVX variant
  crypto: x86/sha1 - fix stack alignment of AVX2 variant
  crypto: x86/sha1 - reduce size of the AVX2 asm implementation

 arch/x86/crypto/sha1_avx2_x86_64_asm.S |8 ++--
 arch/x86/crypto/sha1_ssse3_glue.c  |   26 --
 2 files changed, 18 insertions(+), 16 deletions(-)

-- 
1.7.10.4

--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 0/3] crypto: x86/sha1 - regression and other fixes

2014-03-24 Thread H. Peter Anvin
On 03/24/2014 09:10 AM, Mathias Krause wrote:
 The recent addition of the AVX2 variant of the SHA1 hash function wrongly
 disabled the AVX variant by introducing a flaw in the feature test. Fixed
 in patch 1.
 
 The alignment calculations of the AVX2 assembler implementation are
 questionable, too. Especially the page alignment of the stack pointer is
 broken in multiple ways. Fixed in patch 2. In patch 3 another issue for
 code alignment is fixed.
 
 Please apply!
 

Yikes.  Yes... the alignment calculation is confused in the extreme.

-hpa


--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 0/3] crypto: x86/sha1 - regression and other fixes

2014-03-24 Thread chandramouli narayanan
On Mon, 2014-03-24 at 17:10 +0100, Mathias Krause wrote:
 The recent addition of the AVX2 variant of the SHA1 hash function wrongly
 disabled the AVX variant by introducing a flaw in the feature test. Fixed
 in patch 1.
 
 The alignment calculations of the AVX2 assembler implementation are
 questionable, too. Especially the page alignment of the stack pointer is
 broken in multiple ways. Fixed in patch 2. In patch 3 another issue for
 code alignment is fixed.
 
 Please apply!
 
 Mathias Krause (3):
   crypto: x86/sha1 - re-enable the AVX variant
   crypto: x86/sha1 - fix stack alignment of AVX2 variant
   crypto: x86/sha1 - reduce size of the AVX2 asm implementation
 
  arch/x86/crypto/sha1_avx2_x86_64_asm.S |8 ++--
  arch/x86/crypto/sha1_ssse3_glue.c  |   26 --
  2 files changed, 18 insertions(+), 16 deletions(-)
 
Your fixes are the right on mark. I went through your patches and tested
them and found to be correct.

Sorry for causing regression and missing alignment issues in the patches
I submitted.

- mouli


--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 0/3] crypto: x86/sha1 - regression and other fixes

2014-03-24 Thread H. Peter Anvin
On 03/24/2014 09:10 AM, Mathias Krause wrote:
 The recent addition of the AVX2 variant of the SHA1 hash function wrongly
 disabled the AVX variant by introducing a flaw in the feature test. Fixed
 in patch 1.
 
 The alignment calculations of the AVX2 assembler implementation are
 questionable, too. Especially the page alignment of the stack pointer is
 broken in multiple ways. Fixed in patch 2. In patch 3 another issue for
 code alignment is fixed.
 
 Please apply!
 
 Mathias Krause (3):
   crypto: x86/sha1 - re-enable the AVX variant
   crypto: x86/sha1 - fix stack alignment of AVX2 variant
   crypto: x86/sha1 - reduce size of the AVX2 asm implementation
 
  arch/x86/crypto/sha1_avx2_x86_64_asm.S |8 ++--
  arch/x86/crypto/sha1_ssse3_glue.c  |   26 --
  2 files changed, 18 insertions(+), 16 deletions(-)
 

For all these patches:

Reviewed-by: H. Peter Anvin h...@linux.intel.com

Thank you for doing these.

-hpa

--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 0/3] crypto: x86/sha1 - regression and other fixes

2014-03-24 Thread Marek Vasut
On Monday, March 24, 2014 at 05:10:36 PM, Mathias Krause wrote:
 The recent addition of the AVX2 variant of the SHA1 hash function wrongly
 disabled the AVX variant by introducing a flaw in the feature test. Fixed
 in patch 1.
 
 The alignment calculations of the AVX2 assembler implementation are
 questionable, too. Especially the page alignment of the stack pointer is
 broken in multiple ways. Fixed in patch 2. In patch 3 another issue for
 code alignment is fixed.
 
 Please apply!

Nice,

Reviewed-by: Marek Vasut ma...@denx.de

Best regards,
Marek Vasut
--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html