android_kernel_oneplus_msm8998/fs/affs
Al Viro 4d21e6e82c affs_lookup(): close a race with affs_remove_link()
commit 30da870ce4a4e007c901858a96e9e394a1daa74a upstream.

we unlock the directory hash too early - if we are looking at secondary
link and primary (in another directory) gets removed just as we unlock,
we could have the old primary moved in place of the secondary, leaving
us to look into freed entry (and leaving our dentry with ->d_fsdata
pointing to a freed entry).

Cc: stable@vger.kernel.org # 2.4.4+
Acked-by: David Sterba <dsterba@suse.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-30 07:48:51 +02:00
..
affs.h fs: cleanup slight list_entry abuse 2015-06-23 18:01:59 -04:00
amigaffs.c fs/affs/amigaffs.c: remove unneeded initialization 2015-06-30 19:44:57 -07:00
bitmap.c fs/affs/bitmap.c: remove unnecessary return 2015-02-17 14:34:52 -08:00
Changes remove obsolete references to powertweak 2013-11-27 20:34:32 -08:00
dir.c fs/affs: define AFFSNAMEMAX to replace constant use 2015-02-17 14:34:52 -08:00
file.c Merge branch 'akpm' (patches from Andrew) 2015-04-17 09:04:38 -04:00
inode.c fs/affs/inode.c: remove unneeded initialization 2015-06-30 19:44:57 -07:00
Kconfig fs/affs: remove depends on CONFIG_EXPERIMENTAL 2013-01-21 14:39:04 -08:00
Makefile fs: change to new flag variable 2011-03-17 14:02:57 +01:00
namei.c affs_lookup(): close a race with affs_remove_link() 2018-05-30 07:48:51 +02:00
super.c affs: fix remount failure when there are no options changed 2016-06-07 18:14:32 -07:00
symlink.c fs/affs/symlink.c: remove unneeded err variable 2015-06-30 19:44:57 -07:00