Jan Kara
a5789b07b3
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>
2018-11-12 09:54:48 -05:00
..
2018-10-31 16:53:17 -07:00
2018-11-02 11:25:48 -07:00
2018-10-24 20:55:56 -04:00
2018-10-26 16:26:32 -07:00
2018-10-31 08:54:16 -07:00
2018-11-03 18:13:43 -07:00
2018-11-01 10:00:38 +01:00
2018-08-20 18:33:50 +02:00
2018-10-31 08:54:16 -07:00
2018-10-31 08:54:16 -07:00
2018-10-31 08:54:16 -07:00
2018-08-30 16:12:53 -07:00
2018-11-03 18:37:09 -07:00
2018-11-01 13:02:21 +01:00
2018-11-02 11:25:48 -07:00
2018-11-12 09:54:48 -05:00
2018-11-05 16:41:49 -05:00
2018-10-31 08:54:14 -07:00
2018-08-27 14:48:48 +02:00
2018-10-23 18:43:04 +01:00
2018-08-22 10:52:47 -07:00
2018-10-26 16:26:32 -07:00
2018-10-31 08:54:12 -07:00
2018-11-01 11:46:27 -07:00
2018-08-06 12:35:20 +02:00
2018-08-27 14:48:48 +02:00
2018-10-31 08:54:16 -07:00
2018-10-25 18:45:08 +02:00
2018-10-16 17:30:11 +02:00
2018-09-10 22:54:33 +09:00
2018-08-02 08:06:54 +09:00
2018-10-06 12:01:51 +02:00
2018-11-03 10:09:37 -07:00
2018-09-12 08:01:16 +02:00
2018-08-13 11:25:07 -07:00
2018-09-04 10:35:47 -07:00
2018-10-28 11:35:40 -07:00
2018-09-27 17:56:49 +02:00
2018-10-31 08:54:14 -07:00
2018-09-16 16:08:25 +02:00
2018-10-31 08:54:16 -07:00
2018-10-31 08:54:16 -07:00
2018-10-24 11:22:39 +01:00
2018-09-11 16:13:24 +01:00
2018-10-09 17:25:58 +02:00
2018-10-24 11:49:35 +01:00
2018-10-31 08:54:14 -07:00
2018-10-09 16:51:11 +02:00
2018-10-25 11:43:47 -07:00
2018-09-04 10:35:48 -07:00
2018-08-13 11:25:07 -07:00
2018-09-20 22:01:11 +02:00
2018-11-03 10:09:37 -07:00
2018-08-29 09:20:48 -07:00
2018-10-17 15:35:29 -04:00
2018-10-22 19:37:36 -07:00
2018-10-09 16:51:11 +02:00
2018-08-11 02:05:53 -05:00
2018-08-22 10:52:47 -07:00
2018-08-11 02:05:53 -05:00
2018-08-30 12:56:40 +02:00
2018-08-30 12:56:40 +02:00
2018-08-30 12:56:40 +02:00