]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: algif_hash - Fix race condition in hash_check_key
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Jan 2016 14:01:08 +0000 (22:01 +0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:44:24 +0000 (15:44 -0700)
commit5a0bc083712d34577724a250d2dd900d9b21f8e1
tree5b0dea7da7e9a833a34b07d1c46304e32176f5b7
parentc49e941655909ebaecabe15d6bbb9b87826e9664
crypto: algif_hash - Fix race condition in hash_check_key

Orabug: 23330757

[ Upstream commit ad46d7e33219218605ea619e32553daf4f346b9f ]

We need to lock the child socket in hash_check_key as otherwise
two simultaneous calls can cause the parent socket to be freed.

Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit 3a1e81ad84e4d880b00ecf7ad8d03b9b772ddfa7)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
crypto/algif_hash.c