Re: [PATCH] crypto: nx-sha256/512: respect sg limit bounds when building sg lists

2015-08-11 Thread Herbert Xu
On Sat, Aug 08, 2015 at 08:47:28AM +0200, Jan Stancek wrote: > Commit 000851119e80 changed sha256/512 update functions to > pass more data to nx_build_sg_list(), which ends with > sg list overflows and usually with update functions failing > for data larger than max_sg_len * NX_PAGE_SIZE. > > This

[PATCH] crypto: nx-sha256/512: respect sg limit bounds when building sg lists

2015-08-07 Thread Jan Stancek
Commit 000851119e80 changed sha256/512 update functions to pass more data to nx_build_sg_list(), which ends with sg list overflows and usually with update functions failing for data larger than max_sg_len * NX_PAGE_SIZE. This happens because: - both "total" and "to_process" are updated, which lead