]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ovl: do not generate duplicate fsnotify events for "fake" path
authorAmir Goldstein <amir73il@gmail.com>
Wed, 24 Apr 2019 16:39:50 +0000 (19:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Jun 2019 09:52:57 +0000 (11:52 +0200)
commitf2ab446fe90f463fedabf06b194b1e5b8b31d736
tree97d84ca7bd9640e760d53290489d0d1c365a4fab
parent6aaaa535ba448abe2c770fdb09b66d66fa72ea3a
ovl: do not generate duplicate fsnotify events for "fake" path

[ Upstream commit d989903058a83e8536cc7aadf9256a47d5c173fe ]

Overlayfs "fake" path is used for stacked file operations on underlying
files.  Operations on files with "fake" path must not generate fsnotify
events with path data, because those events have already been generated at
overlayfs layer and because the reported event->fd for fanotify marks on
underlying inode/filesystem will have the wrong path (the overlayfs path).

Link: https://lore.kernel.org/linux-fsdevel/20190423065024.12695-1-jencce.kernel@gmail.com/
Reported-by: Murphy Zhou <jencce.kernel@gmail.com>
Fixes: d1d04ef8572b ("ovl: stack file ops")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/overlayfs/file.c