diff --git a/fs/incfs/vfs.c b/fs/incfs/vfs.c index f77617e8bc18..6c95f737d08e 100644 --- a/fs/incfs/vfs.c +++ b/fs/incfs/vfs.c @@ -1631,6 +1631,9 @@ static int incfs_getattr(struct user_namespace *ns, const struct path *path, generic_fillattr(ns, inode, stat); + if (inode->i_ino < INCFS_START_INO_RANGE) + return 0; + stat->attributes &= ~STATX_ATTR_VERITY; if (IS_VERITY(inode)) stat->attributes |= STATX_ATTR_VERITY;