Re: WARNING: kernel stack frame pointer has bad value

2018-04-19 Thread Dmitry Vyukov
On Thu, Apr 19, 2018 at 5:57 PM, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > 48023102b7078a6674516b1fe0d639669336049d (Fri Apr 13 23:55:41 2018 +) > Merge branch 'overlayfs-linus' of >

[PATCH v1 3/7] crypto: crypto4xx - avoid VLA use

2018-04-19 Thread Christian Lamparter
This patch fixes some of the -Wvla warnings. crypto4xx_alg.c:83:19: warning: Variable length array is used. crypto4xx_alg.c:273:56: warning: Variable length array is used. crypto4xx_alg.c:380:32: warning: Variable length array is used. Signed-off-by: Christian Lamparter ---

[PATCH v1 5/7] crypto: crypto4xx - properly set IV after de- and encrypt

2018-04-19 Thread Christian Lamparter
This patch fixes cts(cbc(aes)) test when cbc-aes-ppc4xx is used. alg: skcipher: Test 1 failed (invalid result) on encryption for cts(cbc-aes-ppc4xx) : 4b 10 75 fc 2f 14 1b 6a 27 35 37 33 d1 b7 70 05 0010: 97 alg: skcipher: Failed to load transform for cts(cbc(aes)): -2 The CTS cipher

[PATCH v1 2/7] crypto: crypto4xx - convert to skcipher

2018-04-19 Thread Christian Lamparter
The ablkcipher APIs have been effectively deprecated since [1]. This patch converts the crypto4xx driver to the new skcipher APIs. [1] Signed-off-by: Christian Lamparter --- drivers/crypto/amcc/crypto4xx_alg.c |

[PATCH v1 1/7] crypto: crypto4xx - performance optimizations

2018-04-19 Thread Christian Lamparter
This patch provides a cheap 2MiB/s+ (~ 6%) performance improvement over the current code. This is because the compiler can now optimize several endian swap memcpy. Signed-off-by: Christian Lamparter --- drivers/crypto/amcc/crypto4xx_alg.c | 32 +---

[PATCH v1 4/7] crypto: crypto4xx - add aes-ctr support

2018-04-19 Thread Christian Lamparter
This patch adds support for the aes-ctr skcipher. name : ctr(aes) driver : ctr-aes-ppc4xx module : crypto4xx priority : 300 refcnt : 1 selftest : passed internal : no type : skcipher async: yes blocksize: 16 min keysize : 16 max keysize

[PATCH v1 7/7] crypto: crypto4xx - put temporary dst sg into request ctx

2018-04-19 Thread Christian Lamparter
This patch fixes a crash that happens when testing rfc4543(gcm(aes)) Unable to handle kernel paging request for data at address 0xf59b3420 Faulting instruction address: 0xc0012994 Oops: Kernel access of bad area, sig: 11 [#1] BE PowerPC 44x Platform Modules linked in: tcrypt(+) crypto4xx [...]

[PATCH v1 6/7] crypto: crypto4xx - extend aead fallback checks

2018-04-19 Thread Christian Lamparter
1020 bytes is the limit for associated data. Any more and it will no longer fit into hash_crypto_offset anymore. The hardware will not process aead requests with plaintext that have less than AES_BLOCK_SIZE bytes. When decrypting aead requests the authsize has to be taken in account as well, as

[RESEND PATCH v2] crypto: cavium: zip: Remove unnecessary parentheses

2018-04-19 Thread Varsha Rao
This patch fixes the clang warning of extraneous parentheses, with the following coccinelle script. @@ identifier i; constant c; expression e; @@ ( !((e)) | -(( \(i == c\|i != c\|i <= c\|i < c\|i >= c\|i > c\) -)) ) Signed-off-by: Varsha Rao --- Changes in v2: - Modified

[PATCH 06/61] crypto: simplify getting .drvdata

2018-04-19 Thread Wolfram Sang
We should get drvdata from struct device directly. Going via platform_device is an unneeded step back and forth. Signed-off-by: Wolfram Sang --- Build tested only. buildbot is happy. Please apply individually. drivers/crypto/exynos-rng.c | 6 ++

[PATCH 00/61] tree-wide: simplify getting .drvdata

2018-04-19 Thread Wolfram Sang
I got tired of fixing this in Renesas drivers manually, so I took the big hammer. Remove this cumbersome code pattern which got copy-pasted too much already: - struct platform_device *pdev = to_platform_device(dev); - struct ep93xx_keypad *keypad = platform_get_drvdata(pdev); +

Re: [PATCH] crypto: testmgr: Allow different compression results

2018-04-19 Thread Jan Glauber
On Thu, Apr 19, 2018 at 11:42:11AM +0800, Herbert Xu wrote: > On Wed, Apr 11, 2018 at 08:28:32PM +0200, Jan Glauber wrote: > > > > @@ -1362,7 +1373,17 @@ static int test_comp(struct crypto_comp *tfm, > > goto out; > > } > > > > - if (dlen !=