]> git.hungrycats.org Git - linux/commit
[PATCH] hugetlb: fix MAP_FIXED handling
authorAndrew Morton <akpm@digeo.com>
Sun, 2 Mar 2003 12:37:54 +0000 (04:37 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Sun, 2 Mar 2003 12:37:54 +0000 (04:37 -0800)
commitcf9b6e7a440df130d42ba68317289e041bb4ffea
tree28b17b7c7d6bc3060cadb19b3d775ad727b88483
parenta2f6cc8614e920b7b86782ac8391a15165631157
[PATCH] hugetlb: fix MAP_FIXED handling

Patch from Rohit Seth

ia64 reserves virtual address region 4 (any address which starts with 0x4)
for huge pages.

Apparently, for hardware reasons, we do not wish to allow mappings with
other page sizes to appear in that region.

This patch prevents the user from being able to place regular MAP_FIXED
mappings into region 4 on ia64.  It is a no-op for ia32.
include/asm-ia64/page.h
include/linux/hugetlb.h
mm/mmap.c