diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-11-03 21:45:04 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-11-10 19:57:44 +0300 |
commit | e72b9dd6a5f17d0fb51f16f8685f3004361e83d0 (patch) | |
tree | 19a562a037fad18df276c5847f43b57b646da2dc /fs/exportfs | |
parent | bcf0d9d4b76976f892154efdfc509b256fd898e8 (diff) | |
download | linux-e72b9dd6a5f17d0fb51f16f8685f3004361e83d0.tar.xz |
ecryptfs_lookup_interpose(): lower_dentry->d_inode is not stable
lower_dentry can't go from positive to negative (we have it pinned),
but it *can* go from negative to positive. So fetching ->d_inode
into a local variable, doing a blocking allocation, checking that
now ->d_inode is non-NULL and feeding the value we'd fetched
earlier to a function that won't accept NULL is not a good idea.
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/exportfs')
0 files changed, 0 insertions, 0 deletions