diff options
author | 2018-11-12 09:54:48 -0500 | |
---|---|---|
committer | 2018-11-12 09:54:48 -0500 | |
commit | a5789b07b35aa56569dff762bfc063303a9ccb95 (patch) | |
tree | 72090bebf2b65c0bd3f312166cf2a0a4514cfea0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | audit_tree: Remove mark->lock locking (diff) | |
download | wireguard-linux-a5789b07b35aa56569dff762bfc063303a9ccb95.tar.xz wireguard-linux-a5789b07b35aa56569dff762bfc063303a9ccb95.zip |
audit: Fix possible spurious -ENOSPC error
When an inode is tagged with a tree, tag_chunk() checks whether there is
audit_tree_group mark attached to the inode and adds one if not. However
nothing protects another tag_chunk() to add the mark between we've
checked and try to add the fsnotify mark thus resulting in an error from
fsnotify_add_mark() and consequently an ENOSPC error from tag_chunk().
Fix the problem by holding mark_mutex over the whole check-insert code
sequence.
Reviewed-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions