Skip to content

RFC Check length of unmapped area on MAP_FIXED

Liam Howlett linux-arm-kernel linux-sh linux-snps-arc lkml sparclinux 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ARC: mm/mmap.c: Check length of unmapped area before allowing MAP_FIXEDarch/arc/mm/mmap.c+3 -30 replies
2/6mm/mmap.c: Check length of unmapped area before allowing MAP_FIXEDarch/arm/mm/mmap.c+3 -30 replies
3/6nds32/mm/mmap.c: Check length of unmapped area before allowing MAP_FIXEDarch/nds32/mm/mmap.c+3 -30 replies
4/6sh/mm/mmap.c: Check length of unmapped area before allowing MAP_FIXEDarch/sh/mm/mmap.c+6 -60 replies
5/6sys_sparc_32.c: Check length of unmapped area before allowing MAP_FIXEDarch/sparc/kernel/sys_sparc_32.c+4 -30 replies
6/6sys_sparc_64.c: Check length of unmapped area before allowing MAP_FIXEDarch/sparc/kernel/sys_sparc_64.c+8 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/6] Check length of unmapped area on MAP_FIXED

RFC because the patches are not well tested. I've not triggered the issue these patches fix, but have compile tested arm, sh, and sparc64 using the default config. Please test the patches before accepting them on your arch.

arc, arm, nds32, sparc32 and sparc64 do not check the size of the requested MAP_FIXED before returning the address. It appears this issue was cloned across various architectures and, in some cases, affects both bottom up and top down searches. This set of patches aligns all platforms and search directions to check the size of a MAP_FIXED request before returning the fixed address.

Liam R. Howlett (6):
ARC: mm/mmap.c: Check length of unmapped area before allowing
MAP_FIXED
[ARM] mm/mmap.c: Check length of unmapped area before allowing
MAP_FIXED
nds32/mm/mmap.c: Check length of unmapped area before allowing
MAP_FIXED
sh/mm/mmap.c: Check length of unmapped area before allowing MAP_FIXED sys_sparc_32.c: Check length of unmapped area before allowing
MAP_FIXED
sys_sparc_64.c: Check length of unmapped area before allowing
MAP_FIXED

 arch/arc/mm/mmap.c               |  6 +++---
 arch/arm/mm/mmap.c               |  6 +++---
 arch/nds32/mm/mmap.c             |  6 +++---
 arch/sh/mm/mmap.c                | 12 ++++++------
 arch/sparc/kernel/sys_sparc_32.c |  7 ++++---
 arch/sparc/kernel/sys_sparc_64.c | 16 ++++++++--------
 6 files changed, 27 insertions(+), 26 deletions(-)
Signature · 6 lines
2.30.2

_______________________________________________
linux-snps-arc mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-snps-arc