Re: [PATCH] crypto: acomp - don't use stack buffer in test_acomp()

2016-11-28 Thread Herbert Xu
On Wed, Nov 23, 2016 at 10:24:35AM -0800, Eric Biggers wrote: > With virtually-mapped stacks (CONFIG_VMAP_STACK=y), using the > scatterlist crypto API with stack buffers is not allowed, and with > appropriate debugging options will cause the > 'BUG_ON(!virt_addr_valid(buf));' in sg_set_buf() to be

[PATCH] crypto: acomp - don't use stack buffer in test_acomp()

2016-11-23 Thread Eric Biggers
With virtually-mapped stacks (CONFIG_VMAP_STACK=y), using the scatterlist crypto API with stack buffers is not allowed, and with appropriate debugging options will cause the 'BUG_ON(!virt_addr_valid(buf));' in sg_set_buf() to be triggered. Use a heap buffer instead. Fixes: d7db7a882deb ("crypto: a