Files
OrangePi_CM5/include/linux
Eric Biggers 0bf3d5c160 fs, fscrypt: clear DCACHE_ENCRYPTED_NAME when unaliasing directory
Make __d_move() clear DCACHE_ENCRYPTED_NAME on the source dentry.  This
is needed for when d_splice_alias() moves a directory's encrypted alias
to its decrypted alias as a result of the encryption key being added.

Otherwise, the decrypted alias will incorrectly be invalidated on the
next lookup, causing problems such as unmounting a mount the user just
mount()ed there.

Note that we don't have to support arbitrary moves of this flag because
fscrypt doesn't allow dentries with DCACHE_ENCRYPTED_NAME to be the
source or target of a rename().

Fixes: 28b4c26396 ("ext4 crypto: revalidate dentry after adding or removing the key")
Reported-by: Sarthak Kukreti <sarthakkukreti@chromium.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-04-17 10:05:51 -04:00
..
…
…
2019-02-15 16:47:55 +02:00
…
…
…
…
…
…
2019-03-29 12:24:41 -07:00
2019-02-28 09:16:12 +01:00
…
…
2019-02-08 22:39:01 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-03-18 10:44:48 -06:00
…
…
…
…
…
2019-02-01 20:55:38 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-03-18 07:07:30 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-02-28 03:28:53 -05:00
…
…
…
…
…
…
…
2019-03-12 18:59:17 -07:00
…
…
…
…
…
2019-02-28 08:24:23 -07:00
…
…
…
…
2018-12-19 10:42:08 +01:00
…
…
…
…
…
…
…
…
…
…
…
2019-03-12 10:04:02 -07:00
…
2019-03-05 21:07:16 -08:00
…
2019-02-15 16:54:38 +01:00
…
…
…
…
…
…
…
…
…
2019-03-12 10:04:00 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-03-09 19:52:47 -08:00
…
…
…
…
…
…
…
…
2019-02-24 08:20:17 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-01-11 20:51:24 +01:00
…
…
…
…
…
…
2019-03-07 18:32:03 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
2019-01-04 13:13:48 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
2019-01-30 20:51:47 -05:00
…
…
…
2019-03-15 15:29:47 -07:00
…
…
…
…
…
…
…
…
…
…
…
2019-02-20 07:22:17 -07:00
2019-02-20 07:22:10 -07:00
2019-02-08 15:02:49 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
2019-03-05 21:07:19 -08:00
…
…
…
…
…
…
…
…
…
…
…
2019-03-03 21:47:57 -08:00
…
…
…
…
…
…
…
…
2019-03-12 10:04:03 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-01-07 16:38:26 +01:00
…
…
…
…
…
…
…
…
…
2019-02-25 21:20:45 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-03-15 15:29:47 -07:00
…
…
…
…
…
…
…
…
…
2019-02-07 16:38:35 +01:00
…
…
2019-04-05 16:02:30 -10:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-02-07 00:13:27 +01:00
…
…
…
…
…
…
…
…
2018-12-10 10:17:45 +01:00
…
…
…
2019-01-11 18:05:40 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-02-26 12:53:55 +01:00
…
…
…
…
…
…
2018-12-22 12:15:29 +01:00
…
…
…
…
…
…
…
…
…
…
…
…