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

2016-09-11 Thread liushuoran
Hi Ard, Thanks for the prompt reply. With the patch, there is no panic anymore. But it seems that the encryption/decryption is not successful anyway. As Herbert points out, "If the page allocation fails in blkcipher_walk_next it'll simply switch over to processing it block by block". So does th

[PATCH] hwrng: geode-rng - Use linux/io.h instead of asm/io.h

2016-09-11 Thread PrasannaKumar Muralidharan
Fix checkpatch.pl warning by changing from asm/io.h to linux/io.h. In the mean time arrange the includes in alphabetical order. Signed-off-by: PrasannaKumar Muralidharan --- drivers/char/hw_random/geode-rng.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/cha

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

2016-09-11 Thread PrasannaKumar Muralidharan
Use devm_ioremap and devm_hwrng_register instead of ioremap and hwrng_register. This removes error handling code. Also moved code around by removing goto statements. This improves code readability. Signed-off-by: PrasannaKumar Muralidharan --- drivers/char/hw_random/geode-rng.c | 50

Re: algif_aead: AIO broken with more than one iocb

2016-09-11 Thread Stephan Mueller
Am Sonntag, 11. September 2016, 08:43:00 CEST schrieb Jeffrey Walton: Hi Jeffrey, > > The AIO support for algif_aead is broken when submitting more than one > > iocb. > > The break happens in aead_recvmsg_async at the following code: > I think the kernel needs to take a half step back, and add th

Re: algif_aead: AIO broken with more than one iocb

2016-09-11 Thread Jeffrey Walton
> The AIO support for algif_aead is broken when submitting more than one iocb. > The break happens in aead_recvmsg_async at the following code: > I think the kernel needs to take a half step back, and add the missing self tests and test cases to be more proactive in detecting breaks earlier. Speak

algif_aead: AIO broken with more than one iocb

2016-09-11 Thread Stephan Mueller
Hi Herbert, The AIO support for algif_aead is broken when submitting more than one iocb. The break happens in aead_recvmsg_async at the following code: /* ensure output buffer is sufficiently large */ if (usedpages < outlen) goto free; The reason is that when sub