commit | be29d20f3f5db1f0b4e49a4f6eeedf840e2bf9b1 | [log] [tgz] |
---|---|---|
author | Jan Kara <jack@suse.cz> | Wed Dec 14 14:40:05 2016 +0100 |
committer | Paul Moore <paul@paul-moore.com> | Tue Jan 03 15:56:38 2017 -0500 |
tree | 129d3e33fe04b96e2af0b8adf633019a316f10e8 | |
parent | e3ba730702af370563f66cb610b71aa0ca67955e [diff] |
audit: Fix sleep in atomic Audit tree code was happily adding new notification marks while holding spinlocks. Since fsnotify_add_mark() acquires group->mark_mutex this can lead to sleeping while holding a spinlock, deadlocks due to lock inversion, and probably other fun. Fix the problem by acquiring group->mark_mutex earlier. CC: Paul Moore <paul@paul-moore.com> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Paul Moore <paul@paul-moore.com>