diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2016-03-26 20:14:41 (GMT) |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2016-03-26 20:14:41 (GMT) |
commit | 9dd78d8c9a7bd4bc341f5864db32d4331b8eae4c (patch) | |
tree | 2f70946530b1e90ab39560b206827e460c1444d5 /fs/squashfs/decompressor_multi.c | |
parent | be62a1a8fd116f5cd9e53726601f970e16e17558 (diff) | |
download | linux-9dd78d8c9a7bd4bc341f5864db32d4331b8eae4c.tar.xz |
ext4: use dget_parent() in ext4_file_open()
In f_op->open() lock on parent is not held, so there's no guarantee that
parent dentry won't go away at any time.
Even after this patch there's no guarantee that 'dir' will stay the parent
of 'inode', but at least it won't be freed while being used.
Fixes: ff978b09f973 ("ext4 crypto: move context consistency check to ext4_file_open()")
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: <stable@vger.kernel.org> # v4.5
Diffstat (limited to 'fs/squashfs/decompressor_multi.c')
0 files changed, 0 insertions, 0 deletions