diff options
author | Amir Goldstein <amir73il@gmail.com> | 2020-07-08 16:16:13 +0300 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2020-07-16 00:10:31 +0200 |
commit | a888db310195400f050b89c47673f0f8babfbb41 (patch) | |
tree | 35772dc17ec7c76dfb1a976ff9ef464f6f6f1776 /CREDITS | |
parent | 20396365a16dae4b4e3967fc7115d5336feb30ee (diff) | |
download | lwn-a888db310195400f050b89c47673f0f8babfbb41.tar.gz lwn-a888db310195400f050b89c47673f0f8babfbb41.zip |
ovl: fix regression with re-formatted lower squashfs
Commit 9df085f3c9a2 ("ovl: relax requirement for non null uuid of lower
fs") relaxed the requirement for non null uuid with single lower layer to
allow enabling index and nfs_export features with single lower squashfs.
Fabian reported a regression in a setup when overlay re-uses an existing
upper layer and re-formats the lower squashfs image. Because squashfs
has no uuid, the origin xattr in upper layer are decoded from the new
lower layer where they may resolve to a wrong origin file and user may
get an ESTALE or EIO error on lookup.
To avoid the reported regression while still allowing the new features
with single lower squashfs, do not allow decoding origin with lower null
uuid unless user opted-in to one of the new features that require
following the lower inode of non-dir upper (index, xino, metacopy).
Reported-by: Fabian <godi.beat@gmx.net>
Link: https://lore.kernel.org/linux-unionfs/32532923.JtPX5UtSzP@fgdesktop/
Fixes: 9df085f3c9a2 ("ovl: relax requirement for non null uuid of lower fs")
Cc: stable@vger.kernel.org # v4.20+
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions