linux-stable/fs/overlayfs
Dan Carpenter a42e385f0a ovl: fix missing revert_creds() on error path
commit 7b279bbfd2 upstream.

Smatch complains about missing that the ovl_override_creds() doesn't
have a matching revert_creds() if the dentry is disconnected.  Fix this
by moving the ovl_override_creds() until after the disconnected check.

Fixes: aa3ff3c152 ("ovl: copy up of disconnected dentries")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-22 10:59:26 +02:00
..
copy_up.c ovl: fix missing revert_creds() on error path 2021-05-22 10:59:26 +02:00
dir.c ovl: fix dentry leak in ovl_get_redirect 2021-02-10 09:21:07 +01:00
export.c ovl: relax WARN_ON() when decoding lower directory file handle 2020-07-22 09:32:10 +02:00
file.c ovl: fix unneeded call to ovl_change_flags() 2020-07-22 09:32:10 +02:00
inode.c ovl: perform vfs_getxattr() with mounter creds 2021-02-23 15:00:56 +01:00
Kconfig ovl: Provide a mount option metacopy=on/off for metadata copyup 2018-07-20 09:56:06 +02:00
Makefile ovl: stack file ops 2018-07-18 15:44:41 +02:00
namei.c ovl: detect overlapping layers 2019-06-25 11:35:52 +08:00
overlayfs.h ovl: detect overlapping layers 2019-06-25 11:35:52 +08:00
ovl_entry.h ovl: fix regression caused by overlapping layers detection 2019-09-21 07:17:14 +02:00
readdir.c ovl: fix wrong WARN_ON() in ovl_cache_update_ino() 2020-02-11 04:34:02 -08:00
super.c ovl: allow upperdir inside lowerdir 2021-05-07 10:49:26 +02:00
util.c ovl: detect overlapping layers 2019-06-25 11:35:52 +08:00