Yama: remove locking from delete path
authorKees Cook <keescook@chromium.org>
Mon, 19 Nov 2012 23:21:26 +0000 (15:21 -0800)
committerKees Cook <keescook@chromium.org>
Tue, 20 Nov 2012 18:32:08 +0000 (10:32 -0800)
commit235e752789eb65a81477bb82845323dfcbf93012
treec4efa5eff81c01029ab884c0d43af16bb91b44b4
parent93b69d437effff11b1c37f330d3265c37ec2f84b
Yama: remove locking from delete path

Instead of locking the list during a delete, mark entries as invalid
and trigger a workqueue to clean them up. This lets us easily handle
task_free from interrupt context.

Signed-off-by: Kees Cook <keescook@chromium.org>
security/yama/yama_lsm.c