lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ