1
0
Files
linux/mm
Hugh Dickins 83e9b7e929 [PATCH] unpaged: private write VM_RESERVED
The PageReserved removal in 2.6.15-rc1 issued a "deprecated" message when you
tried to mmap or mprotect MAP_PRIVATE PROT_WRITE a VM_RESERVED, and failed
with -EACCES: because do_wp_page lacks the refinement to COW pages in those
areas, nor do we expect to find anonymous pages in them; and it seemed just
bloat to add code for handling such a peculiar case.  But immediately it
caused vbetool and ddcprobe (using lrmi) to fail.

So revert the "deprecated" messages, letting mmap and mprotect succeed.  But
leave do_wp_page's BUG_ON(vma->vm_flags & VM_RESERVED) in place until we've
added the code to do it right: so this particular patch is only good if the
app doesn't really need to write to that private area.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-22 09:13:42 -08:00
..
2005-10-29 21:40:39 -07:00
2005-06-24 00:06:41 -07:00
2005-10-29 21:40:40 -07:00
2005-10-28 08:16:51 -07:00
2005-11-07 07:54:06 -08:00
2005-04-16 15:20:36 -07:00
2005-10-29 21:40:39 -07:00
2005-10-28 08:16:47 -07:00
2005-04-16 15:20:36 -07:00
2005-10-29 21:40:42 -07:00
2005-10-29 21:40:40 -07:00
2005-10-29 21:40:42 -07:00
2005-04-16 15:20:36 -07:00
2005-11-07 07:53:37 -08:00
2005-10-29 21:40:42 -07:00
2005-10-29 21:40:42 -07:00
2005-10-29 21:40:35 -07:00
2005-11-13 18:14:12 -08:00