Files
twx-linux/fs
Eric Biggers 3a19419c50 fscrypto: lock inode while setting encryption policy
commit 8906a8223a upstream.

i_rwsem needs to be acquired while setting an encryption policy so that
concurrent calls to FS_IOC_SET_ENCRYPTION_POLICY are correctly
serialized (especially the ->get_context() + ->set_context() pair), and
so that new files cannot be created in the directory during or after the
->empty_dir() check.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Richard Weinberger <richard@nod.at>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-22 12:04:18 +01:00
..
…
…
…
…
2017-02-09 08:02:45 +01:00
…
…
2017-03-12 06:37:28 +01:00
…
…
…
2016-11-10 16:36:34 +01:00
…
…
2015-11-13 20:34:33 -05:00
2015-11-23 21:11:08 -05:00
…
2016-10-07 15:23:47 +02:00
…
2015-11-16 23:54:45 -08:00
…
…
…
…
2015-11-16 23:54:45 -08:00
…
2016-08-10 11:49:27 +02:00
…
…
…
2016-05-18 17:06:48 -07:00
…
…
2016-09-07 08:32:43 +02:00
…
…
2015-11-13 20:34:33 -05:00