On 01/18/2012 03:30 PM, Li Wang wrote: > Hi, > There is an infinite loop bug in eCryptfs, to make it present, > just truncate to generate a huge file (>= 4G) on a 32-bit machine > under the plain text foleder mounted with eCryptfs, a simple command > 'truncate -s 4G dummy' is enough. Note: 4GB is smaller than 4G, > therefore the following command 'truncate -s 4GB dummy' will not trigger this bug. > The bug comes from a data overflow, the patch below fixes it. > > Hi, Your patch is not correctly generated, you need to make the diff on top of the source tree. Also, after reviewing the code, I think there are more places need to fix. Can you try my patch below? Thanks. ----> Signed-off-by: WANG Cong