[PATCH v2] crypto: only call put_page used pages

2016-09-09 Thread Stephan Mueller
Hi Herbert, Changes v2: use sg_page(sg) only once ---8<--- For asynchronous operation, SGs are allocated without a page mapped to them. If the SGL is freed, the code must only call put_page for an SG if there was a page assigned to it in the first place. This fixes a kernel crash when using io_

[PATCH] crypto: only call put_page used pages

2016-09-09 Thread Stephan Mueller
Hi Herbert, This patch was tested with up to 64 iocb submitted with one io_submit call. If you approve of this fix, I recommend that should go to the current 4.8 development cycle and to stable. ---8<--- For asynchronous operation, SGs are allocated without a page mapped to them. If the SGL is

Re: [PATCH] softirq: fix tasklet_kill() and its users

2016-09-09 Thread Santosh Shilimkar
Ping !! On 8/24/2016 6:52 PM, Santosh Shilimkar wrote: Semantically the expectation from the tasklet init/kill API should be as below. tasklet_init() == Init and Enable scheduling tasklet_kill() == Disable scheduling and Destroy tasklet_init() API exibit above behavior but not the tasklet_kill

Re: Kernel panic - encryption/decryption failed when open file on Arm64

2016-09-09 Thread Ard Biesheuvel
On 9 September 2016 at 11:31, Ard Biesheuvel wrote: > On 9 September 2016 at 11:19, xiakaixu wrote: >> Hi, >> >> After a deeply research about this crash, seems it is a specific >> bug that only exists in armv8 board. And it occurs in this function >> in arch/arm64/crypto/aes-glue.c. >> >> static

Re: Kernel panic - encryption/decryption failed when open file on Arm64

2016-09-09 Thread Ard Biesheuvel
On 9 September 2016 at 11:19, xiakaixu wrote: > Hi, > > After a deeply research about this crash, seems it is a specific > bug that only exists in armv8 board. And it occurs in this function > in arch/arm64/crypto/aes-glue.c. > > static int ctr_encrypt(struct blkcipher_desc *desc, struct scatterli

Re: Kernel panic - encryption/decryption failed when open file on Arm64

2016-09-09 Thread xiakaixu
Hi, After a deeply research about this crash, seems it is a specific bug that only exists in armv8 board. And it occurs in this function in arch/arm64/crypto/aes-glue.c. static int ctr_encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, u

[PATCH] hwrng: amd-rng - Migrate to managed API

2016-09-09 Thread PrasannaKumar Muralidharan
Managed API eliminates error handling code, thus reduces several lines of code. Signed-off-by: PrasannaKumar Muralidharan --- drivers/char/hw_random/amd-rng.c | 48 +--- 1 file changed, 11 insertions(+), 37 deletions(-) diff --git a/drivers/char/hw_random/amd