Re: Padlock with VIA Nano still crashing

2009-07-28 Thread Sebastian Andrzej Siewior
* Nico Erfurth | 2009-07-28 10:26:54 [+0200]: > Does anybody have an idea how I could get the crashdump so I can send it to > the list? If there is no other way I'll write it down next time. If you have a serial port you could dump it there (console=ttyS0 in the kernel command line). Could you pl

Re: [PATCH] crypto: Write outside array bounds

2009-07-28 Thread Herbert Xu
On Tue, Jul 28, 2009 at 05:07:11PM +0200, Roel Kluin wrote: > In crypto_aes_expand_key() loop8(i) writes up to ctx->key_enc[8*i+15], at most > 63. ctx->key_enc has length (15*16)/4 == 60, so the last 16 bytes of key_enc > will overflow into ctx->key_dec. > > Signed-off-by: Roel Kluin This is alr

[PATCH] crypto: Write outside array bounds

2009-07-28 Thread Roel Kluin
In crypto_aes_expand_key() loop8(i) writes up to ctx->key_enc[8*i+15], at most 63. ctx->key_enc has length (15*16)/4 == 60, so the last 16 bytes of key_enc will overflow into ctx->key_dec. Signed-off-by: Roel Kluin --- Found with Parfait, http://research.sun.com/projects/parfait/ This concerns c

Re: [PATCH/RFC] crypto: compress - Return produced bytes in crypto_{, de}compress_{update, final}() (was: Re: [PATCH/RFC] crypto: compress - Add comp_request.total_out

2009-07-28 Thread Geert Uytterhoeven
On Tue, 21 Apr 2009, Phillip Lougher wrote: > Geert Uytterhoeven wrote: > > On Mon, 20 Apr 2009, Herbert Xu wrote: > > > On Tue, Mar 24, 2009 at 05:33:01PM +0100, Geert Uytterhoeven wrote: > > > > Here's an alternative patch, which does exactly that. > > > > Phillip, what do you think? > > > > > >

Padlock with VIA Nano still crashing

2009-07-28 Thread Nico Erfurth
Hi, I've tried to setup a fileserver with a Via Nano board (Jetway NF77-N1G6) to use it's Padlock encryption engine. All works fine with the software encryption, but when I try to use the Padlock driver I get sporadic crashes while reading and writing on my encrypted device. I can't provide