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

2016-11-30 Thread Herbert Xu
On Tue, Nov 29, 2016 at 09:45:04AM +0100, Stephan Mueller wrote: > When using SGs, only heap memory (memory that is valid as per > virt_addr_valid) is allowed to be referenced. The CTR DRBG used to > reference the caller-provided memory directly in an SG. In case the > caller provided stack memory

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

2016-11-29 Thread Stephan Mueller
When using SGs, only heap memory (memory that is valid as per virt_addr_valid) is allowed to be referenced. The CTR DRBG used to reference the caller-provided memory directly in an SG. In case the caller provided stack memory pointers, the SG mapping is not considered to be valid. In some cases,