From: Thomas Tuttle Date: Fri, 6 Jun 2008 05:46:31 +0000 (-0700) Subject: pagemap: fix bug in add_to_pagemap, require aligned-length reads of /proc/pid/pagemap X-Git-Tag: v2.6.26-rc6~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aae8679b0ebcaa92f99c1c3cb0cd651594a43915;p=pandora-kernel.git pagemap: fix bug in add_to_pagemap, require aligned-length reads of /proc/pid/pagemap Fix a bug in add_to_pagemap. Previously, since pm->out was a char *, put_user was only copying 1 byte of every PFN, resulting in the top 7 bytes of each PFN not being copied. By requiring that reads be a multiple of 8 bytes, I can make pm->out and pm->end u64*s instead of char*s, which makes put_user work properly, and also simplifies the logic in add_to_pagemap a bit. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Thomas Tuttle Cc: Matt Mackall Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed