]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: unbless lower st_ino of unverified origin
authorAmir Goldstein <amir73il@gmail.com>
Tue, 21 Nov 2017 11:55:51 +0000 (13:55 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 24 Jan 2018 10:25:52 +0000 (11:25 +0100)
commit2b65becb77ed8f54a3c9db42a5c909f7077bd4a5
tree189e380030e95f8267ea015c1c9b3698828ef696
parentf2fa86ff2f091d250ad184fc50d585af60dcd454
ovl: unbless lower st_ino of unverified origin

On a malformed overlay, several redirected dirs can point to the same
dir on a lower layer. This presents a similar challenge as broken
hardlinks, because different objects in the overlay can return the same
st_ino/st_dev pair from stat(2).

For broken hardlinks, we do not provide constant st_ino on copy up to
avoid this inconsistency. When NFS export feature is enabled, apply
the same logic to files and directories with unverified lower origin.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/inode.c