]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
audit: fix the RCU locking for the auditd_connection structure
authorPaul Moore <paul@paul-moore.com>
Tue, 2 May 2017 14:16:05 +0000 (10:16 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2017 13:07:51 +0000 (15:07 +0200)
commit1df30f8264b842a83a27e92995e704f3edaa8195
tree4d17ed9cf6649995ed84af72cb89a63cc99eeec1
parentf17b15c896011bb21aff1d0be64840031fd6fec1
audit: fix the RCU locking for the auditd_connection structure

commit 48d0e023af9799cd7220335baf8e3ba61eeafbeb upstream.

Cong Wang correctly pointed out that the RCU read locking of the
auditd_connection struct was wrong, this patch correct this by
adopting a more traditional, and correct RCU locking model.

This patch is heavily based on an earlier prototype by Cong Wang.

Reported-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/audit.c