]> git.ipfire.org Git - people/arne_f/kernel.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:54:05 +0000 (11:54 +0200)
commit06382ad6cf31fe628eae072e65b61a8b767b7828
tree82978508a5abcc04b3be83c310a1e3d65d42286e
parent5fbe39bfd1e027387ff65ada3584cd836b84c659
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