Theodore Ts'o 00a1a053eb ext4: atomically set inode->i_flags in ext4_set_inode_flags()
Use cmpxchg() to atomically set i_flags instead of clearing out the
S_IMMUTABLE, S_APPEND, etc. flags and then setting them from the
EXT4_IMMUTABLE_FL, EXT4_APPEND_FL flags, since this opens up a race
where an immutable file has the immutable flag cleared for a brief
window of time.

Reported-by: John Sullivan <jsrhbz@kanargh.force9.co.uk>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-03-30 17:02:06 -07:00
..
2014-02-17 12:37:13 -08:00
2014-01-25 03:13:02 -05:00
2014-01-25 03:13:02 -05:00
2014-01-23 18:54:14 +02:00
2014-01-26 11:51:09 +01:00
2014-02-02 16:24:07 -08:00
2014-01-28 18:56:37 -08:00
2014-02-13 15:56:05 -06:00
2014-02-25 07:37:52 -08:00
2014-03-09 19:17:39 -07:00
2014-01-25 03:14:05 -05:00
2014-01-25 03:13:03 -05:00
2014-02-25 07:37:52 -08:00
2014-01-26 08:26:40 -05:00
2014-03-10 11:44:41 -04:00
2014-01-22 19:36:57 +01:00