[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4F18323D.2000109@gmail.com>
Date: Thu, 19 Jan 2012 23:09:49 +0800
From: Cong Wang <xiyou.wangcong@...il.com>
To: Tyler Hicks <tyhicks@...onical.com>
CC: Li Wang <liwang@...t.edu.cn>, ecryptfs@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
Yunchuan Wen <wenyunchuan@...inos.com.cn>
Subject: Re: [PATCH] eCryptfs: infinite loop due to overflow in ecryptfs_write()
On 01/19/2012 05:13 PM, Tyler Hicks wrote:
> From: Li Wang<liwang@...t.edu.cn>
>
> ecryptfs_write() can enter an infinite loop when truncating a file to a
> size larger than 4G. This only happens on architectures where size_t is
> represented by 32 bits.
>
> This was caused by a size_t overflow due to it incorrectly being used to
> store the result of a calculation which uses potentially large values of
> type loff_t.
>
> [tyhicks@...onical.com: rewrite subject and commit message]
> Signed-off-by: Li Wang<liwang@...t.edu.cn>
> Signed-off-by: Yunchuan Wen<wenyunchuan@...inos.com.cn>
> Cc: Cong Wang<xiyou.wangcong@...il.com>
> Cc:<stable@...r.kernel.org>
> Signed-off-by: Tyler Hicks<tyhicks@...onical.com>
Tyler, thanks for cleaning this up! Looks pretty good now.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists