Skip to content

get rid of extra check for TASK_SIZE in get_unmapped_area

Vladimir Murzin linux-arch 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6get_unmapped_area checks for TASK_SIZE before MAP_FIXED on armarch/arm/mm/mmap.c+3 -30 replies
2/6get_unmapped_area checks for TASK_SIZE before MAP_FIXED on sharch/sh/mm/mmap.c+6 -60 replies
3/6get_unmapped_area checks for TASK_SIZE before MAP_FIXED on sparc32arch/sparc/kernel/sys_sparc_32.c+5 -45 replies
4/6get_unmapped_area checks for TASK_SIZE before MAP_FIXED on sparc64arch/sparc/kernel/sys_sparc_64.c+8 -81 reply
5/6get_unmapped_area checks for TASK_SIZE before MAP_FIXED on x86_64arch/x86/kernel/sys_x86_64.c+3 -30 replies
6/6get_unmapped_area remove extra check for TASK_SIZEmm/mmap.c+0 -40 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchDavid S. Miller
1/6
2/6
3/6A-b
4/6A-b
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] get rid of extra check for TASK_SIZE in get_unmapped_area

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(-)
Signature · 1 line
1.7.2.5