crypto: af_alg - Disallow concurrent writes in af_alg_sendmsg
Issuing two writes to the same af_alg socket is bogus as the data will be interleaved in an unpredictable fashion. Furthermore, concurrent writes may create inconsistencies in the internal socket state. Disallow this by adding a new ctx->write field that indiciates exclusive ownership for writing. Fixes: 8ff59090 ("crypto: algif_skcipher - User-space interface for skcipher operations") Reported-by:Muhammad Alifa Ramdhan <ramdhan@starlabs.sg> Reported-by:
Bing-Jhong Billy Jheng <billy@starlabs.sg> Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au>
Loading
-
mentioned in commit 0f28c4ad
-
mentioned in commit 3a21698a
-
mentioned in commit 22664d1e
-
mentioned in commit 2da0075c
-
mentioned in commit e4c1ec11
-
mentioned in commit d382d6da
-
mentioned in commit 34ff804b
-
mentioned in commit 3522ea72
-
mentioned in commit 54506c63
-
mentioned in commit 93de8c8e
-
mentioned in commit a54fd3a7
-
mentioned in commit 8d6ff5f2
-
mentioned in commit d0ca0df1
-
mentioned in commit fbe96bd2
Please sign in to comment