android_kernel_oneplus_msm8998/fs/overlayfs
Rui Wang 2f639e2e95 ovl: fix getcwd() failure after unsuccessful rmdir
commit ce9113bbcbf45a57c082d6603b9a9f342be3ef74 upstream.

ovl_remove_upper() should do d_drop() only after it successfully
removes the dir, otherwise a subsequent getcwd() system call will
fail, breaking userspace programs.

This is to fix: https://bugzilla.kernel.org/show_bug.cgi?id=110491

Signed-off-by: Rui Wang <rui.y.wang@intel.com>
Reviewed-by: Konstantin Khlebnikov <koct9i@gmail.com>
Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-16 08:43:01 -07:00
..
copy_up.c ovl: use a minimal buffer in ovl_copy_xattr 2016-02-25 12:01:24 -08:00
dir.c ovl: fix getcwd() failure after unsuccessful rmdir 2016-03-16 08:43:01 -07:00
inode.c ovl: copy new uid/gid into overlayfs runtime inode 2016-03-16 08:43:01 -07:00
Kconfig ovl: rename filesystem type to "overlay" 2014-11-20 16:39:59 +01:00
Makefile ovl: rename filesystem type to "overlay" 2014-11-20 16:39:59 +01:00
overlayfs.h ovl: get rid of the dead code left from broken (and disabled) optimizations 2015-12-06 12:31:07 -05:00
readdir.c ovl: check dentry positiveness in ovl_cleanup_whiteouts() 2016-02-25 12:01:24 -08:00
super.c ovl: fix working on distributed fs as lower layer 2016-03-16 08:42:59 -07:00