From: Miklos Szeredi Date: Fri, 29 Jul 2016 10:05:24 +0000 (+0200) Subject: ovl: disallow overlayfs as upperdir X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=76bc8e2843b66f8205026365966b49ec6da39ae7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ovl: disallow overlayfs as upperdir This does not work and does not make sense. So instead of fixing it (probably not hard) just disallow. Reported-by: Andrei Vagin Signed-off-by: Miklos Szeredi Cc: --- diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index 7fd216a89d9a..f3577395eca5 100644 --- a/fs/overlayfs/super.c +++ b/fs/overlayfs/super.c @@ -407,7 +407,8 @@ static struct ovl_entry *ovl_alloc_entry(unsigned int numlower) static bool ovl_dentry_remote(struct dentry *dentry) { return dentry->d_flags & - (DCACHE_OP_REVALIDATE | DCACHE_OP_WEAK_REVALIDATE); + (DCACHE_OP_REVALIDATE | DCACHE_OP_WEAK_REVALIDATE | + DCACHE_OP_REAL); } static bool ovl_dentry_weird(struct dentry *dentry)