[PATCH] staging: ccree: Fix lines longer than 80 characters

2017-10-09 Thread Stephen Brennan
--- I'm new to kernel development and hoping to start with some simple changes to get familiar with the process. Please let me know if there's anything I can do to improve this very trivial patch! drivers/staging/ccree/ssi_pm.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff

Re: [PATCH 1/2] crypto: lrw - Fix an error handling path in 'create()'

2017-10-09 Thread walter harms
Am 08.10.2017 11:39, schrieb Christophe JAILLET: > All error handling paths 'goto err_drop_spawn' except this one. > In order to avoid some resources leak, we should do it as well here. > > Fixes: 700cb3f5fe75 ("crypto: lrw - Convert to skcipher") > Signed-off-by: Christophe JAILLET

[PATCH] crypto: tcrypt: mark expected switch fall-throughs in do_test()

2017-10-09 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Cc: Herbert Xu Cc: "David S. Miller" Cc: linux-crypto@vger.kernel.org Signed-off-by: Gustavo A. R. Silva ---

Re: [PATCH v5] crypto: s5p-sss: Add HASH support for Exynos

2017-10-09 Thread Krzysztof Kozlowski
On Mon, Oct 09, 2017 at 01:12:30PM +0200, Kamil Konieczny wrote: > Add support for MD5, SHA1, SHA256 hash algorithms for Exynos HW. > It uses the crypto framework asynchronous hash api. > It is based on omap-sham.c driver. > S5P has some HW differencies and is not implemented. > > Modifications

Re: [PATCH v2] crypto: shash - Fix zero-length shash ahash digest crash

2017-10-09 Thread Stephan Müller
Am Montag, 9. Oktober 2017, 17:30:02 CEST schrieb Herbert Xu: Hi Herbert, > The shash ahash digest adaptor function may crash if given a > zero-length input together with a null SG list. This is because > it tries to read the SG list before looking at the length. > > This patch fixes it by

[PATCH v2] crypto: shash - Fix zero-length shash ahash digest crash

2017-10-09 Thread Herbert Xu
On Mon, Oct 09, 2017 at 05:13:48PM +0200, Stephan Müller wrote: > Am Montag, 9. Oktober 2017, 16:19:25 CEST schrieb Herbert Xu: > > Hi Herbert, > > > On Sat, Oct 07, 2017 at 02:56:24PM +0200, Stephan Müller wrote: > > > Though, this opens up the shash issue I tried to fix. > > > > Does this

Re: [Part2 PATCH v5.1 12.1/31] crypto: ccp: Add Secure Encrypted Virtualization (SEV) command support

2017-10-09 Thread Borislav Petkov
On Sun, Oct 08, 2017 at 07:11:04PM -0500, Brijesh Singh wrote: > There is a single security processor driver (ccp) which provides the > complete functionality including PSP.  But the driver should be able to > work with multiple devices. e.g In my 2P EPYC configuration, security > processor driver

Re: [PATCH 1/2] crypto: skcipher - noop for enc/dec with NULL data

2017-10-09 Thread Stephan Müller
Am Montag, 9. Oktober 2017, 16:19:25 CEST schrieb Herbert Xu: Hi Herbert, > On Sat, Oct 07, 2017 at 02:56:24PM +0200, Stephan Müller wrote: > > Though, this opens up the shash issue I tried to fix. > > Does this patch fix the crash? I get the following during boot: [1.042673]

Re: [PATCH 1/2] crypto: skcipher - noop for enc/dec with NULL data

2017-10-09 Thread Herbert Xu
On Sat, Oct 07, 2017 at 02:56:24PM +0200, Stephan Müller wrote: > > Though, this opens up the shash issue I tried to fix. Does this patch fix the crash? ---8<--- Subject: crypto: shash - Fix zero-length shash ahash digest crash The shash ahash digest adaptor function may crash if given a

[PATCH v5] crypto: s5p-sss: Add HASH support for Exynos

2017-10-09 Thread Kamil Konieczny
Add support for MD5, SHA1, SHA256 hash algorithms for Exynos HW. It uses the crypto framework asynchronous hash api. It is based on omap-sham.c driver. S5P has some HW differencies and is not implemented. Modifications in s5p-sss: - Add hash supporting structures and functions. - Modify irq