]> git.hungrycats.org Git - linux/commit
[PATCH] vmalloc address offset fix
authorAndrew Morton <akpm@osdl.org>
Wed, 4 Feb 2004 02:41:50 +0000 (18:41 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 4 Feb 2004 02:41:50 +0000 (18:41 -0800)
commite5868a37452774d6a6f03173d994244d5cd4027c
tree57fb1110a81249b40365cdfcb17a6830f09fd3ce
parent0c2d119562483938d5635e20bdc548715fc20e12
[PATCH] vmalloc address offset fix

From: Anton Blanchard <anton@samba.org>

Paul wrote a patch to use some of the rmap infrastructure to flush TLB
entries on ppc64.  When testing it we found a problem in vmalloc where it
sets up the pte -> address mapping incorrectly.  We clear the top bits of
the address but then forget to pass in the full address to
pte_alloc_kernel.  The end result is the address in page->index is
truncated.

I fixed it in a similar way to how zeromap_pmd_range etc does it.  I'm
guessing no one uses the rmap hooks on vmalloc pages yet, so havent seen
this problem.
mm/vmalloc.c