From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-Id: <20130507035851.894681815@goodmis.org> Date: Mon, 06 May 2013 23:58:18 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Vyacheslav Dubeyko , Christoph Hellwig , Al Viro , Hin-Tak Leung , Andrew Morton Subject: [066/126] hfsplus: fix potential overflow in hfsplus_file_truncate() References: <20130507035712.909872333@goodmis.org> Content-Disposition: inline; filename=0066-hfsplus-fix-potential-overflow-in-hfsplus_file_trunc.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: 3.6.11.3 stable review patch. If anyone has any objections, please let me know. ------------------ From: Vyacheslav Dubeyko [ Upstream commit 12f267a20aecf8b84a2a9069b9011f1661c779b4 ] Change a u32 to loff_t hfsplus_file_truncate(). Signed-off-by: Vyacheslav Dubeyko Cc: Christoph Hellwig Cc: Al Viro Cc: Hin-Tak Leung Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Steven Rostedt --- fs/hfsplus/extents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/hfsplus/extents.c b/fs/hfsplus/extents.c index 5849e3e..32b12e5 100644 --- a/fs/hfsplus/extents.c +++ b/fs/hfsplus/extents.c @@ -517,7 +517,7 @@ void hfsplus_file_truncate(struct inode *inode) struct address_space *mapping = inode->i_mapping; struct page *page; void *fsdata; - u32 size = inode->i_size; + loff_t size = inode->i_size; res = pagecache_write_begin(NULL, mapping, size, 0, AOP_FLAG_UNINTERRUPTIBLE, -- 1.7.10.4