Allow file mmaps beyond the end of the file
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 4 Jul 2013 06:02:39 +0000 (23:02 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 11 Jul 2013 02:30:02 +0000 (19:30 -0700)
commit47546c5e4563294e33af85827bd47db7dc4d99c4
treef30b7683de558852a2412be1f42edefae6907e2a
parentc13921c1fcc9332fe3693283f6cd962a5f2241f6
Allow file mmaps beyond the end of the file

64 bit glibc libraries have an unaligned 2MB hole in the middle, and
ld.so just maps that extra space in the original mmap call, then
mprotects it to PROT_NONE.  Fair enough.
kern/arch/x86/ros/mmu64.h
kern/arch/x86/trap64.c
kern/src/mm.c