From: Larry Woodman Date: Fri, 24 Sep 2010 16:04:48 +0000 (-0400) Subject: Avoid pgoff overflow in remap_file_pages X-Git-Tag: v2.6.36-rc6~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ec1055aa5632dd7a8283cdb5fa9be3c535eaa06;p=pandora-kernel.git Avoid pgoff overflow in remap_file_pages Thomas Pollet noticed that the remap_file_pages() system call in fremap.c has a potential overflow in the first part of the if statement below, which could cause it to process bogus input parameters. Specifically the pgoff + size parameters could be wrap thereby preventing the system call from failing when it should. Reported-by: Thomas Pollet Signed-off-by: Larry Woodman Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed