Re: [PATCH] crypto: CTR DRBG - prevent invalid SG mappings

2016-11-28 Thread Herbert Xu
On Sat, Nov 26, 2016 at 09:54:14AM +0100, Stephan Mueller wrote: > Hi Herbert, > > as discussed in another thread, SGs must not be used with stack memory > pointers. This issue was the culprit to the error I see with the CTR DRBG. > The > attached patch fixes the issue. Sorry but your patch

[PATCH] crypto: CTR DRBG - prevent invalid SG mappings

2016-11-26 Thread Stephan Mueller
Hi Herbert, as discussed in another thread, SGs must not be used with stack memory pointers. This issue was the culprit to the error I see with the CTR DRBG. The attached patch fixes the issue. ---8<--- When using SGs, only heap memory (memory that is valid as per virt_addr_valid) is allowed