linux/fs/overlayfs
Stanislav Goriainov cf4ef7801a ovl: Add comment on upperredirect reassignment
If memory for uperredirect was allocated with kstrdup() in upperdir != NULL
and d.redirect != NULL path, it may seem that it can be lost when
upperredirect is reassigned later, but it's not possible.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 0a2d0d3f2f ("ovl: Check redirect on index as well")
Signed-off-by: Stanislav Goriainov <goriainov@ispras.ru>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2022-12-08 10:49:46 +01:00
..
copy_up.c tmpfile API change 2022-10-10 19:45:17 -07:00
dir.c ovl: Use ovl mounter's fsuid and fsgid in ovl_link() 2022-12-08 10:49:46 +01:00
export.c ovl: do not reconnect upper index records in ovl_indexdir_cleanup() 2022-12-08 10:49:46 +01:00
file.c ovl: fix comment typos 2022-12-08 10:49:46 +01:00
inode.c whack-a-mole: constifying struct path * 2022-10-06 17:31:02 -07: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 ovl: Add comment on upperredirect reassignment 2022-12-08 10:49:46 +01:00
overlayfs.h ovl: do not reconnect upper index records in ovl_indexdir_cleanup() 2022-12-08 10:49:46 +01:00
ovl_entry.h ovl: support idmapped layers 2022-04-28 16:31:12 +02:00
readdir.c ovl: use plain list filler in indexdir and workdir cleanup 2022-12-08 10:49:46 +01:00
super.c ovl: fix use inode directly in rcu-walk mode 2022-11-28 11:33:05 +01:00
util.c ovl: port to vfs{g,u}id_t and associated helpers 2022-12-08 10:49:46 +01:00