]> git.hungrycats.org Git - linux/commit
[PATCH] Fix copy_page_range()'s handling of invalid pages
authorAndrew Morton <akpm@digeo.com>
Sat, 8 Mar 2003 11:24:48 +0000 (03:24 -0800)
committerJames Bottomley <jejb@raven.il.steeleye.com>
Sat, 8 Mar 2003 11:24:48 +0000 (03:24 -0800)
commite7a8805739641f974fc8ecdd053f23b8eb3d2722
tree3f496c50b9580cef1421e674c18aef0facde45a6
parent9f930d75e2530ab221c3f4b273e8f7441d8e312f
[PATCH] Fix copy_page_range()'s handling of invalid pages

Patch from Xavier Bru  <Xavier.Bru@bull.net>

If copy_page_range encounters a pte which maps an invalid pageframe it will
proceed to try to add an rmap entry against that page.  This causes oopses
when an application which has mapped an IO device via /dev/mem forks.

Fix that up by correctly skipping the page_add_rmap() for these pte's.
mm/memory.c