Thread (5 messages) 5 messages, 2 authors, 2017-08-31

Re: [PATCH] crypto: MPI - kunmap after finishing accessing buffer

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2017-08-22 06:33:28

On Thu, Aug 10, 2017 at 08:06:18AM +0200, Stephan Müller wrote:
Hi Herbert,

I found that issue while playing around with edge conditions in my
algif_akcipher implementation. This issue only manifests in a
segmentation violation on 32 bit machines and with an SGL where each
SG points to one byte. SGLs with larger buffers seem to be not
affected by this issue.

Yet this access-after-unmap should be a candidate for stable, IMHO.
Good catch.  Thanks!

Fixes: 4816c9406430 ("lib/mpi: Fix SG miter leak")
Cc: <redacted>
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help