crypto: ccp - Validate buffer lengths for copy operations
authorGary R Hook <gary.hook@amd.com>
Wed, 7 Mar 2018 17:31:14 +0000 (11:31 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Mar 2018 15:35:52 +0000 (23:35 +0800)
commitb698a9f4c5c52317db486b069190c7e3d2b97e7e
tree0395c4da367e027b2d2231c933c8096dc2a6de10
parent3d053d53fcbe7343c89895bcfa2d6bc598740d55
crypto: ccp - Validate buffer lengths for copy operations

The CCP driver copies data between scatter/gather lists and DMA buffers.
The length of the requested copy operation must be checked against
the available destination buffer length.

Reported-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-ops.c