Files
linux/fs/ext4
Theodore Ts'o 0a0ae7b3fb ext4: atomically set inode->i_flags in ext4_set_inode_flags()
commit 00a1a053eb upstream.

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-03 12:01:04 -07:00
..
2011-07-25 14:30:23 -04:00
2013-07-21 18:21:33 -07:00
2013-05-03 02:15:52 -04:00
2013-05-03 02:15:52 -04:00
2014-01-09 12:24:27 -08:00
2013-05-07 20:16:25 -07:00
2012-12-10 16:30:43 -05:00
2014-01-09 12:24:21 -08:00
2012-12-10 16:30:43 -05:00