Re: [PATCH] crypto: salsa20 - fix blkcipher_walk API usage

2017-11-28 Thread Herbert Xu
On Tue, Nov 28, 2017 at 08:56:59PM -0800, Eric Biggers wrote: > From: Eric Biggers > > When asked to encrypt or decrypt 0 bytes, both the generic and x86 > implementations of Salsa20 crash in blkcipher_walk_done(), either when > doing 'kfree(walk->buffer)' or 'free_page((unsigned long)walk->page)

[PATCH] crypto: salsa20 - fix blkcipher_walk API usage

2017-11-28 Thread Eric Biggers
From: Eric Biggers When asked to encrypt or decrypt 0 bytes, both the generic and x86 implementations of Salsa20 crash in blkcipher_walk_done(), either when doing 'kfree(walk->buffer)' or 'free_page((unsigned long)walk->page)', because walk->buffer and walk->page have not been initialized. The b