]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: af_alg - Forbid bind(2) when nokey child sockets are present
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 13 Jan 2016 07:03:32 +0000 (15:03 +0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:44:23 +0000 (15:44 -0700)
commitc49e941655909ebaecabe15d6bbb9b87826e9664
treed1f175b3d7b5af998dac050aaca4882f5360993f
parentc124c48d53f9706bf7affe9b5991bb85871abfc7
crypto: af_alg - Forbid bind(2) when nokey child sockets are present

Orabug: 23330755

[ Upstream commit a6a48c565f6f112c6983e2a02b1602189ed6e26e ]

This patch forbids the calling of bind(2) when there are child
sockets created by accept(2) in existence, even if they are created
on the nokey path.

This is needed as those child sockets have references to the tfm
object which bind(2) will destroy.

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 8515819fff8fce56be067af985016b6356d1fe5e)

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