linux/security/yama
Kees Cook 0c8a56a6fa Yama: Check for pid death before checking ancestry
commit 9474f4e7cd upstream.

It's possible that a pid has died before we take the rcu lock, in which
case we can't walk the ancestry list as it may be detached. Instead, check
for death first before doing the walk.

Reported-by: syzbot+a9ac39bf55329e206219@syzkaller.appspotmail.com
Fixes: 2d514487fa ("security: Yama LSM")
Suggested-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.morris@microsoft.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2019-05-02 21:41:23 +01:00
..
Kconfig security: allow Yama to be unconditionally stacked 2012-09-05 14:12:31 -07:00
Makefile security: Yama LSM 2012-02-10 09:18:52 +11:00
yama_lsm.c Yama: Check for pid death before checking ancestry 2019-05-02 21:41:23 +01:00