diff options
author | Linus Torvalds <[email protected]> | 2008-07-28 17:54:21 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2008-07-28 17:54:21 -0700 |
commit | 9b79022ca909b66e2cd0cfd9248f832fc165f77f (patch) | |
tree | bcd8c3204886fcbc8422aeb482f8e42c0b5b6124 /net/unix/sysctl_net_unix.c | |
parent | 34ee55014283a60efa3534c06e010579ffdd3756 (diff) |
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 <[email protected]>
Debugged-by: Johannes Weiner <[email protected]>
Cc: Nick Piggin <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions