commit | 89e357d83c06b6fac581c3ca7f0ee3ae7e67109e | [log] [tgz] |
---|---|---|
author | Yuejie Shi <syjcnss@gmail.com> | Fri Mar 31 15:10:20 2017 +0800 |
committer | Steffen Klassert <steffen.klassert@secunet.com> | Mon Apr 03 08:05:17 2017 +0200 |
tree | 95c3425ed24cca1ce0b806197c690ca42c1be36b | |
parent | 75514b6654859e0130b512396dc964d2a9e84967 [diff] |
af_key: Add lock to key dump 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: 83321d6b9872 ("[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>