linux/fs/overlayfs
Christian Brauner 5b52aebef8
ovl: call posix_acl_release() after error checking
The current placement of posix_acl_release() in ovl_set_or_remove_acl()
means it can be called on an error pointer instead of actual acls.
Fix this by moving the posix_acl_release() call after the error handling.

Fixes: 0e64185732 ("ovl: implement set acl method") # mainline only
Reported-by: syzbot+3f6ef1c4586bb6fd1f61@syzkaller.appspotmail.com
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
2022-11-03 08:18:46 +01:00
..
copy_up.c ovl: use posix acl api 2022-10-20 10:13:31 +02:00
dir.c ovl: use posix acl api 2022-10-20 10:13:31 +02:00
export.c ovl: drop WARN_ON() dentry is NULL in ovl_encode_fh() 2022-07-28 15:00:57 +02:00
file.c overlayfs: constify path 2022-09-01 17:38:07 -04:00
inode.c ovl: call posix_acl_release() after error checking 2022-11-03 08:18:46 +01:00
Kconfig docs: fix broken references to text files 2020-04-20 15:35:59 -06:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
namei.c overlayfs: constify path 2022-09-01 17:38:07 -04:00
overlayfs.h ovl: use posix acl api 2022-10-20 10:13:31 +02:00
ovl_entry.h ovl: support idmapped layers 2022-04-28 16:31:12 +02:00
readdir.c whack-a-mole: constifying struct path * 2022-10-06 17:31:02 -07:00
super.c ovl: use stub posix acl handlers 2022-10-20 10:13:32 +02:00
util.c ovl: use vfs_tmpfile_open() helper 2022-09-24 07:00:00 +02:00