audit: fix the RCU locking for the auditd_connection structure
authorPaul Moore <[email protected]>
Tue, 2 May 2017 14:16:05 +0000 (10:16 -0400)
committerPaul Moore <[email protected]>
Tue, 2 May 2017 14:16:05 +0000 (10:16 -0400)
commit48d0e023af9799cd7220335baf8e3ba61eeafbeb
treed5753a7c92c53cebcdf9929dadf667742cf66e9f
parent8cc96382d9a7fe1746286670dd5140c3b12638ae
audit: fix the RCU locking for the auditd_connection structure

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.

Cc: <[email protected]> # 4.11.x-
Reported-by: Cong Wang <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
kernel/audit.c