Linus Torvalds 9b79022ca9 Fix 'get_user_pages_fast()' with non-page-aligned start address
Alexey Dobriyan reported trouble with LTP with the new fast-gup code,
and Johannes Weiner debugged it to non-page-aligned addresses, where the
new get_user_pages_fast() code would do all the wrong things, including
just traversing past the end of the requested area due to 'addr' never
matching 'end' exactly.

This is not a pretty fix, and we may actually want to move the alignment
into generic code, leaving just the core code per-arch, but Alexey
verified that the vmsplice01 LTP test doesn't crash with this.

Reported-and-tested-by: Alexey Dobriyan <adobriyan@gmail.com>
Debugged-by: Johannes Weiner <hannes@saeurebad.de>
Cc: Nick Piggin <npiggin@suse.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-07-28 17:54:21 -07:00
..
2008-07-22 10:43:45 +02:00
2008-01-30 13:31:41 +01:00
2008-04-30 23:15:34 +02:00
2008-07-26 12:00:10 -07:00
2008-07-08 13:10:38 +02:00
2008-07-26 12:00:06 -07:00
2008-07-18 14:10:27 +02:00
2008-01-30 13:31:10 +01:00
2008-07-26 12:00:10 -07:00
2008-07-11 10:22:33 +02:00
2008-05-24 11:27:28 +02:00