Re: [PATCH] ecryptfs: Fix stat command displays wrong file size in xattr region

2017-11-07 Thread Tyler Hicks
Hi Jason! My apologies for not getting to this review earlier. I haven't had much time to spend on eCryptfs lately. Thanks for this bug fix! This patch looks mostly good but I have a suggestion and question below. On 06/22/2017 02:21 AM, Jason Xing wrote: > When doing ecryptfs_read_and_validate_x

Re: [PATCH] ecryptfs: Fix stat command displays wrong file size in xattr region

2017-10-13 Thread Jason Xing
Could anyone take a look at this patch which fixes the xattr-read issue? Thanks anyway. Jason On Thu, Jun 22, 2017 at 3:21 PM, Jason Xing wrote: > When doing ecryptfs_read_and_validate_xattr_region(), eCryptfs > reads only 16 bytes from xattr region. However, the lower filesystem > like ext4 alw

[PATCH] ecryptfs: Fix stat command displays wrong file size in xattr region

2017-06-22 Thread Jason Xing
When doing ecryptfs_read_and_validate_xattr_region(), eCryptfs reads only 16 bytes from xattr region. However, the lower filesystem like ext4 always compares 16 with the size of ecryptfs xattr region which is 81 bytes, and then it will return ERANGE (-34) and do not read that region. Signed-off-by