[ 3.5.y.z extended stable ] Patch "hfsplus: fix potential overflow in hfsplus_file_truncate()" has been added to staging queue
Luis Henriques
luis.henriques at canonical.com
Mon Apr 22 12:38:35 UTC 2013
This is a note to let you know that I have just added a patch titled
hfsplus: fix potential overflow in hfsplus_file_truncate()
to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree
which can be found at:
http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.5.y-queue
If you, or anyone else, feels it should not be added to this tree, please
reply to this email.
For more information about the 3.5.y.z tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable
Thanks.
-Luis
------
>From 274d21c0f1effca23b68bfcd98fed098eecb4d6f Mon Sep 17 00:00:00 2001
From: Vyacheslav Dubeyko <slava at dubeyko.com>
Date: Wed, 17 Apr 2013 15:58:33 -0700
Subject: [PATCH] hfsplus: fix potential overflow in hfsplus_file_truncate()
commit 12f267a20aecf8b84a2a9069b9011f1661c779b4 upstream.
Change a u32 to loff_t hfsplus_file_truncate().
Signed-off-by: Vyacheslav Dubeyko <slava at dubeyko.com>
Cc: Christoph Hellwig <hch at infradead.org>
Cc: Al Viro <viro at zeniv.linux.org.uk>
Cc: Hin-Tak Leung <htl10 at users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
---
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.8.1.2
More information about the kernel-team
mailing list