linux-brain/fs/overlayfs
Dan Carpenter db699975f7 ovl: fix missing revert_creds() on error path
commit 7b279bbfd2b230c7a210ff8f405799c7e46bbf48 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-14 09:44:16 +02:00
..
copy_up.c ovl: fix missing revert_creds() on error path 2021-05-14 09:44:16 +02:00
dir.c ovl: fix dentry leak in ovl_get_redirect 2021-02-10 09:25:29 +01:00
export.c ovl: relax WARN_ON() when decoding lower directory file handle 2020-07-22 09:33:12 +02:00
file.c ovl: fix unneeded call to ovl_change_flags() 2020-07-22 09:33:12 +02:00
inode.c ovl: perform vfs_getxattr() with mounter creds 2021-02-17 10:35:15 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
namei.c ovl: fix lookup failure on multi lower squashfs 2019-12-17 19:56:10 +01:00
overlayfs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
ovl_entry.h ovl: fix lookup failure on multi lower squashfs 2019-12-17 19:56:10 +01:00
readdir.c ovl: fix wrong WARN_ON() in ovl_cache_update_ino() 2020-02-11 04:35:24 -08:00
super.c ovl: allow upperdir inside lowerdir 2021-05-07 10:51:38 +02:00
util.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00