]> git.baikalelectronics.ru Git - kernel.git/commit
Avoid pgoff overflow in remap_file_pages
authorLarry Woodman <lwoodman@redhat.com>
Fri, 24 Sep 2010 16:04:48 +0000 (12:04 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 25 Sep 2010 16:34:58 +0000 (09:34 -0700)
commit9a60d5791580d2472912b391bb29d1153f0a1aca
tree231fa9a989433ee7fab796342f7ebc2c3e167342
parent938434fc780f2537f807632e112465d7f2bac127
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 <thomas.pollet@gmail.com>
Signed-off-by: Larry Woodman <lwoodman@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/fremap.c