summaryrefslogtreecommitdiff
path: root/fs/overlayfs/super.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2016-03-21 16:31:44 (GMT)
committerMiklos Szeredi <miklos@szeredi.hu>2016-03-21 16:31:44 (GMT)
commit11f3710417d026ea2f4fcf362d866342c5274185 (patch)
tree9f0904f868dd155bf00b0b10caf264d2a4065355 /fs/overlayfs/super.c
parent3c2de27d793bf55167804fc47954711e94f27be7 (diff)
downloadlinux-11f3710417d026ea2f4fcf362d866342c5274185.tar.xz
ovl: verify upper dentry before unlink and rename
Unlink and rename in overlayfs checked the upper dentry for staleness by verifying upper->d_parent against upperdir. However the dentry can go stale also by being unhashed, for example. Expand the verification to actually look up the name again (under parent lock) and check if it matches the upper dentry. This matches what the VFS does before passing the dentry to filesytem's unlink/rename methods, which excludes any inconsistency caused by overlayfs. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/super.c')
0 files changed, 0 insertions, 0 deletions