From: Vladimir Murzin <murzin.v@gmail> The current get_unmapped_area code calls the f_ops->get_unmapped_area or the arch's one (via the mm) only when check for TASK_SIZE is passed. However, generic code and some arches do the same check in their a_g_u_a implementation. This series of patches fix the check order for TASK_SIZE in archs' get_unmapped_area() implementations, and then removes extra check in high-level get_unmapped_area(). Vladimir Murzin (6): get_unmapped_area checks for TASK_SIZE before MAP_FIXED on arm get_unmapped_area checks for TASK_SIZE before MAP_FIXED on sh get_unmapped_area checks for TASK_SIZE before MAP_FIXED on sparc32 get_unmapped_area checks for TASK_SIZE before MAP_FIXED on sparc64 get_unmapped_area checks for TASK_SIZE before MAP_FIXED on x86_64 get_unmapped_area remove extra check for TASK_SIZE arch/arm/mm/mmap.c | 6 +++--- arch/sh/mm/mmap.c | 12 ++++++------ arch/sparc/kernel/sys_sparc_32.c | 9 +++++---- arch/sparc/kernel/sys_sparc_64.c | 16 ++++++++-------- arch/x86/kernel/sys_x86_64.c | 6 +++--- mm/mmap.c | 4 ---- 6 files changed, 25 insertions(+), 28 deletions(-) -- 1.7.2.5 -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html