[PATCH] crypto: x86/aes - Don't use %rbp as temporary register

2017-05-16 Thread Eric Biggers
From: Eric Biggers When using the "aes-asm" implementation of AES (*not* the AES-NI implementation) on an x86_64, v4.12-rc1 kernel with lockdep enabled, the following warning was reported, along with a long unwinder dump: WARNING: kernel stack regs at

Re: [PATCH 4/4] crypto: Documentation: fix none signal safe sample

2017-05-16 Thread Eric Biggers
On Thu, May 11, 2017 at 02:53:45PM +0300, Gilad Ben-Yossef wrote: > The sample code was showing use of wait_for_completion_interruptible() > for waiting for an async. crypto op to finish. However, if a signal > arrived it would free the buffers used even while crypto HW might > still DMA from/into

Re: [PATCH 2/4] crypto: drbg wait for crypto op not signal safe

2017-05-16 Thread Eric Biggers
Hi Gilad, On Thu, May 11, 2017 at 02:53:43PM +0300, Gilad Ben-Yossef wrote: > drbg_kcapi_sym_ctr() was using wait_for_completion_interruptible() to > wait for completion of async crypto op but if a signal occurs it > may return before DMA ops of HW crypto provider finish, thus > corrupting the

[PATCH] crypto: stm32 - Add CRC32 support for STM32F4XX

2017-05-16 Thread Cosar Dindar
This patch series add hardware CRC32 ("Ethernet") calculation support for STMicroelectronics STM32F4XX series devices. As an hardware limitation polynomial and key setting are not supported as they are fixed as 0x4C11DB7 (poly) and 0x (key). CRC32C Castagnoli algorithm is not supported

[PATCH] crypto: qat: use pcie_flr instead of duplicating it

2017-05-16 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- drivers/crypto/qat/qat_common/adf_aer.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/crypto/qat/qat_common/adf_aer.c b/drivers/crypto/qat/qat_common/adf_aer.c index 2839fccdd84b..d3e25c37dc33 100644

[PATCH v2 13/53] docs-rst: add crypto API book to pdf output

2017-05-16 Thread Mauro Carvalho Chehab
The crypto API book was added without the bits required to generate PDF output. Add them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/conf.py| 2 ++ Documentation/crypto/conf.py | 10 ++ 2 files changed, 12 insertions(+) create mode 100644

[PATCH] drivers/staging/ccree: Replacing spaces by tab

2017-05-16 Thread Pushkar Jambhlekar
Fixing 'checkpatch.pl' ERROR: code indent should use tabs where possible Signed-off-by: Pushkar Jambhlekar --- drivers/staging/ccree/ssi_aead.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git

[PATCH v1] crypto: img-hash - Handle return value of clk_prepare_enable

2017-05-16 Thread Arvind Yadav
Here, Clock enable can failed. So adding an error check for clk_prepare_enable. Signed-off-by: Arvind Yadav --- drivers/crypto/img-hash.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/img-hash.c

Re: [PATCH] drivers/staging/ccree: Fixing coding guideline errors

2017-05-16 Thread Greg Kroah-Hartman
On Tue, May 16, 2017 at 01:35:52PM +0530, Pushkar Jambhlekar wrote: > Fixing coding guideline errors reported by 'checkpatch.pl' That is very "vague", you are going to have to be specific here. Also remember you can only do "one type of thing" per patch, and no, "fix all warnings" is not one

[PATCH] drivers/staging/ccree: Fixing coding guideline errors

2017-05-16 Thread Pushkar Jambhlekar
Fixing coding guideline errors reported by 'checkpatch.pl' Signed-off-by: Pushkar Jambhlekar --- drivers/staging/ccree/ssi_cipher.c | 158 +++-- 1 file changed, 80 insertions(+), 78 deletions(-) diff --git