The bug is in ecryptfs_read_and_validate_xattr_region(). It calls ecryptfs_getxattr_lower(), which is returning -34 (ERANGE). With ecryptfs_getxattr_lower() failing, it means that we can't retrieve the proper file size from the xattr metadata and can't set an an accurate value in the kstat buffer.
The bug is in ecryptfs_ read_and_ validate_ xattr_region( ). It calls ecryptfs_ getxattr_ lower() , which is returning -34 (ERANGE). With ecryptfs_ getxattr_ lower() failing, it means that we can't retrieve the proper file size from the xattr metadata and can't set an an accurate value in the kstat buffer.