Re: [PATCH] hwrng: core - don't pass stack allocated buffer to rng->read()

2016-10-21 Thread Laszlo Ersek
On 10/21/16 22:32, Laszlo Ersek wrote: > [...] Self-NAK, I'll resend in a minute. I added a tag like this: Cc: # For v3.15+ and git turned it into a garbage email address. I'll drop the "# For v3.15+" part in the repost. (I'll also add explicit quotes around Rich's

[PATCH RESEND] hwrng: core - don't pass stack allocated buffer to rng->read()

2016-10-21 Thread Laszlo Ersek
The virtio-rng backend for hwrng passes the buffer that it receives for filling to sg_set_buf() directly, in: virtio_read() [drivers/char/hw_random/virtio-rng.c] register_buffer() [drivers/char/hw_random/virtio-rng.c] sg_init_one() [lib/scatterlist.c] sg_set_buf()

Re: [PATCH RESEND] hwrng: core - don't pass stack allocated buffer to rng->read()

2016-10-21 Thread Andy Lutomirski
On Fri, Oct 21, 2016 at 1:48 PM, Laszlo Ersek wrote: > The virtio-rng backend for hwrng passes the buffer that it receives for > filling to sg_set_buf() directly, in: > > virtio_read() [drivers/char/hw_random/virtio-rng.c] > register_buffer()

Re: [PATCH RESEND] hwrng: core - don't pass stack allocated buffer to rng->read()

2016-10-21 Thread Laszlo Ersek
On 10/21/16 23:17, Richard W.M. Jones wrote: > On Fri, Oct 21, 2016 at 02:04:27PM -0700, Andy Lutomirski wrote: >> https://git.kernel.org/cgit/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=6d4952d9d9d4dc2bb9c0255d95a09405a1e958f7 > > I have tested this one, and it also fixes the bug I was

Re: [PATCH RESEND] hwrng: core - don't pass stack allocated buffer to rng->read()

2016-10-21 Thread Laszlo Ersek
On 10/21/16 23:04, Andy Lutomirski wrote: > On Fri, Oct 21, 2016 at 1:48 PM, Laszlo Ersek wrote: >> The virtio-rng backend for hwrng passes the buffer that it receives for >> filling to sg_set_buf() directly, in: >> >> virtio_read() [drivers/char/hw_random/virtio-rng.c]

[PATCH] hwrng: core - don't pass stack allocated buffer to rng->read()

2016-10-21 Thread Laszlo Ersek
The virtio-rng backend for hwrng passes the buffer that it receives for filling to sg_set_buf() directly, in: virtio_read() [drivers/char/hw_random/virtio-rng.c] register_buffer() [drivers/char/hw_random/virtio-rng.c] sg_init_one() [lib/scatterlist.c] sg_set_buf()

Re: [PATCH RESEND] hwrng: core - don't pass stack allocated buffer to rng->read()

2016-10-21 Thread Richard W.M. Jones
On Fri, Oct 21, 2016 at 02:04:27PM -0700, Andy Lutomirski wrote: > https://git.kernel.org/cgit/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=6d4952d9d9d4dc2bb9c0255d95a09405a1e958f7 I have tested this one, and it also fixes the bug I was seeing. Thanks Laszlo as well for his fix, and

[PATCH v10 2/8] crypto: add driver-side scomp interface

2016-10-21 Thread Giovanni Cabiddu
Add a synchronous back-end (scomp) to acomp. This allows to easily expose the already present compression algorithms in LKCF via acomp. Signed-off-by: Giovanni Cabiddu --- crypto/Makefile | 1 + crypto/acompress.c | 55 +-

[PATCH v10 4/8] crypto: acomp - add support for lz4 via scomp

2016-10-21 Thread Giovanni Cabiddu
Add scomp backend for lz4 compression algorithm. Signed-off-by: Giovanni Cabiddu --- crypto/Kconfig | 1 + crypto/lz4.c | 91 +++--- 2 files changed, 82 insertions(+), 10 deletions(-) diff --git a/crypto/Kconfig

[PATCH v10 3/8] crypto: acomp - add support for lzo via scomp

2016-10-21 Thread Giovanni Cabiddu
Add scomp backend for lzo compression algorithm. Signed-off-by: Giovanni Cabiddu --- crypto/Kconfig | 1 + crypto/lzo.c | 97 +- 2 files changed, 83 insertions(+), 15 deletions(-) diff --git a/crypto/Kconfig

[PATCH v10 5/8] crypto: acomp - add support for lz4hc via scomp

2016-10-21 Thread Giovanni Cabiddu
Add scomp backend for lz4hc compression algorithm. Signed-off-by: Giovanni Cabiddu --- crypto/Kconfig | 1 + crypto/lz4hc.c | 92 +++--- 2 files changed, 83 insertions(+), 10 deletions(-) diff --git

[PATCH v10 8/8] crypto: acomp - update testmgr with support for acomp

2016-10-21 Thread Giovanni Cabiddu
Add tests to the test manager for algorithms exposed through acomp. Signed-off-by: Giovanni Cabiddu --- crypto/testmgr.c | 158 ++- 1 file changed, 145 insertions(+), 13 deletions(-) diff --git a/crypto/testmgr.c

[PATCH v10 0/8] crypto: asynchronous compression api

2016-10-21 Thread Giovanni Cabiddu
The following patch set introduces acomp, a generic asynchronous (de)compression api with support for SG lists. We propose a new crypto type called crypto_acomp_type, a new struct acomp_alg and struct crypto_acomp, together with number of helper functions to register acomp type algorithms and

[PATCH v10 6/8] crypto: acomp - add support for 842 via scomp

2016-10-21 Thread Giovanni Cabiddu
Add scomp backend for 842 compression algorithm. Signed-off-by: Giovanni Cabiddu --- crypto/842.c | 81 -- crypto/Kconfig | 1 + 2 files changed, 80 insertions(+), 2 deletions(-) diff --git a/crypto/842.c

[PATCH v10 7/8] crypto: acomp - add support for deflate via scomp

2016-10-21 Thread Giovanni Cabiddu
Add scomp backend for deflate compression algorithm. Signed-off-by: Giovanni Cabiddu --- crypto/Kconfig | 1 + crypto/deflate.c | 111 ++- 2 files changed, 102 insertions(+), 10 deletions(-) diff --git

[PATCH v10 1/8] crypto: add asynchronous compression api

2016-10-21 Thread Giovanni Cabiddu
Add acomp, an asynchronous compression api that uses scatterlist buffers. Signed-off-by: Giovanni Cabiddu --- crypto/Kconfig | 10 ++ crypto/Makefile | 2 + crypto/acompress.c | 118 +++

Re: sg_set_buf

2016-10-21 Thread Christoph Hellwig
On Thu, Oct 20, 2016 at 05:42:19PM -0400, J. Bruce Fields wrote: > Turns out there are several places in the kerberos code where it just > needs to encrypt one small checksum or sequence number, and it's been > doing that on the stack. > > For now I'll just sprinkle kmalloc()'s all over.

Re: [PATCH] hwrng: meson: Remove unneeded platform MODULE_ALIAS

2016-10-21 Thread Neil Armstrong
On 10/19/2016 09:50 PM, Javier Martinez Canillas wrote: > The Amlogic Meson is a DT-only platform, which means the devices are > registered via OF and not using the legacy platform devices support. > > So there's no need to have a MODULE_ALIAS("platform:meson-rng") since > the reported uevent

◆◆◆ 2017第十五届中国(广州)国际汽车零部件及用品展览会 [GHC8/C-m] 684827

2016-10-21 Thread 铁路紧固件
lintai...@sina.com 中国国际汽车零部件博览会 China International Auto Parts Expo 中华人民共和国商务部引导支持展会 国家级国际性汽车配件用品展贸平台   【中文名称】 2017第十五届中国(广州)国际汽车零部件及用品展览会 【英文名称】 The 15th China (Guangzhou) International Auto Parts Expo,2017 (CAPE 2017)   【展会日期】 2017年06月02—04日 【展会场馆】 广州琶洲保利世贸博览馆   【展会简介】

Re: [PATCH] padata: Remove unused but set variables

2016-10-21 Thread Steffen Klassert
On Mon, Oct 17, 2016 at 12:16:08PM +0200, Tobias Klauser wrote: > Remove the unused but set variable pinst in padata_parallel_worker to > fix the following warning when building with 'W=1': > > kernel/padata.c: In function ‘padata_parallel_worker’: > kernel/padata.c:68:26: warning: variable