diff options
author | Jan Kara <jack@suse.cz> | 2016-12-14 14:40:05 +0100 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2017-01-03 21:56:38 +0100 |
commit | be29d20f3f5db1f0b4e49a4f6eeedf840e2bf9b1 (patch) | |
tree | 129d3e33fe04b96e2af0b8adf633019a316f10e8 /fs/notify | |
parent | fsnotify: Remove fsnotify_duplicate_mark() (diff) | |
download | linux-be29d20f3f5db1f0b4e49a4f6eeedf840e2bf9b1.tar.xz linux-be29d20f3f5db1f0b4e49a4f6eeedf840e2bf9b1.zip |
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>
Diffstat (limited to 'fs/notify')
0 files changed, 0 insertions, 0 deletions