summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-16 18:32:47 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2004-02-16 18:32:47 -0800
commit584f5bcb721caaef9cfa54682c45b8991603bebe (patch)
tree7ba51b7a54d326a719c4713d0661fab26fa39f75 /include
parentd90349aa5797f47f612024b460f63a7a3ea9c095 (diff)
[PATCH] mremap NULL pointer dereference fix
This is a cleaned-up version of a mremap() fix for "move_one_page()" by Rajesh Venkatasubramanian <vrajesh@umich.edu>. We could use a NULL "src" pointer. Because while we do hold the MM semaphore over the whole sequence, the destination page table allocation will possibly drop the page table spinlock. That in turn can cause a clean source page to be stolen by page reclaim, causing the source-side "get_one_pte_map_nested()" to return NULL the second time around even if it didn't on the first case. So we just check "src" again, and get rid of the bogus TLB invalidate while we're at it.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions