summaryrefslogtreecommitdiff
path: root/fs/overlayfs/overlayfs.h
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2019-12-06 09:33:36 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2019-12-10 18:00:55 +0300
commit6889ee5a53b8d969aa542047f5ac8acdc0e79a91 (patch)
tree73f32667320449fcc809d211f5d44714de8a9b05 /fs/overlayfs/overlayfs.h
parent9c6d8f13e9da10a26ad7f0a020ef86e8ef142835 (diff)
downloadlinux-6889ee5a53b8d969aa542047f5ac8acdc0e79a91.tar.xz
ovl: relax WARN_ON() on rename to self
In ovl_rename(), if new upper is hardlinked to old upper underneath overlayfs before upper dirs are locked, user will get an ESTALE error and a WARN_ON will be printed. Changes to underlying layers while overlayfs is mounted may result in unexpected behavior, but it shouldn't crash the kernel and it shouldn't trigger WARN_ON() either, so relax this WARN_ON(). Reported-by: syzbot+bb1836a212e69f8e201a@syzkaller.appspotmail.com Fixes: 804032fabb3b ("ovl: don't check rename to self") Cc: <stable@vger.kernel.org> # v4.9+ Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/overlayfs.h')
0 files changed, 0 insertions, 0 deletions