linux/net/key
Yuejie Shi fd75aee79d af_key: Add lock to key dump
commit 89e357d83c upstream.

A dump may come in the middle of another dump, modifying its dump
structure members. This race condition will result in NULL pointer
dereference in kernel. So add a lock to prevent that race.

Fixes: 83321d6b98 ("[AF_KEY]: Dump SA/SP entries non-atomically")
Signed-off-by: Yuejie Shi <syjcnss@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2017-07-18 18:40:29 +01:00
..
af_key.c af_key: Add lock to key dump 2017-07-18 18:40:29 +01:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00