From: David Gibson Date: Fri, 5 Aug 2005 18:59:35 +0000 (-0700) Subject: [PATCH] Fix hugepage crash on failing mmap() X-Git-Tag: v2.6.13-rc6~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7546f8f03f5a4fa612605b6be930234d6026860;p=pandora-kernel.git [PATCH] Fix hugepage crash on failing mmap() This patch fixes a crash in the hugepage code. unmap_hugepage_area() was assuming that (due to prefault) PTEs must exist for all the area in question. However, this may not be the case, if mmap() encounters an error before the prefault and calls unmap_region() to clean up any partial mapping. Depending on the hugepage configuration, this crash can be triggered by an unpriveleged user. Signed-off-by: David Gibson Cc: William Lee Irwin III Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed