diff options
author | Yuejie Shi <syjcnss@gmail.com> | 2017-03-31 15:10:20 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-06 19:19:38 -0700 |
commit | b627f60019489332a47ae9028c4891b4ed563f23 (patch) | |
tree | 32769730dc3d5f45a97084c7e7548f646af59c31 /fs | |
parent | e058f634852d0d2a2c16e62a19373817ac2ffeb4 (diff) | |
download | linux-stable-b627f60019489332a47ae9028c4891b4ed563f23.tar.gz linux-stable-b627f60019489332a47ae9028c4891b4ed563f23.tar.bz2 linux-stable-b627f60019489332a47ae9028c4891b4ed563f23.zip |
af_key: Add lock to key dump
commit 89e357d83c06b6fac581c3ca7f0ee3ae7e67109e 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: 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>
Signed-off-by: Mark Salyzyn <salyzyn@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions