Re: [f2fs-dev] [PATCH] f2fs: avoid wrong decrypted data from disk

2018-08-30 Thread Sahitya Tummala
On Thu, Aug 30, 2018 at 11:59:03AM +0530, Sahitya Tummala wrote: > On Mon, Aug 27, 2018 at 03:52:26PM -0700, Jaegeuk Kim wrote: > > 1. Create a file in an encrypted directory > > 2. Do GC & drop caches > > 3. Read stale data before its bio for metapage was not issued yet > > > > Signed-off-by:

Re: [f2fs-dev] [PATCH] f2fs: avoid wrong decrypted data from disk

2018-08-30 Thread Sahitya Tummala
On Mon, Aug 27, 2018 at 03:52:26PM -0700, Jaegeuk Kim wrote: > 1. Create a file in an encrypted directory > 2. Do GC & drop caches > 3. Read stale data before its bio for metapage was not issued yet > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/data.c | 7 +++ > 1 file changed, 7

Re: [f2fs-dev] [PATCH] f2fs: avoid wrong decrypted data from disk

2018-08-28 Thread Chao Yu
On 2018/8/28 6:52, Jaegeuk Kim wrote: > 1. Create a file in an encrypted directory > 2. Do GC & drop caches > 3. Read stale data before its bio for metapage was not issued yet > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/data.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git

[f2fs-dev] [PATCH] f2fs: avoid wrong decrypted data from disk

2018-08-27 Thread Jaegeuk Kim
1. Create a file in an encrypted directory 2. Do GC & drop caches 3. Read stale data before its bio for metapage was not issued yet Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index