The patch titled VM/Security: add security hook to do_brk has been added to the -mm tree. Its filename is vm-security-add-security-hook-to-do_brk.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: VM/Security: add security hook to do_brk From: Eric Paris <eparis@xxxxxxxxxx> Given a specifically crafted binary do_brk() can be used to get low pages available in userspace virtual memory and can thus be used to circumvent the mmap_min_addr low memory protection. Add security checks in do_brk(). Signed-off-by: Eric Paris <eparis@xxxxxxxxxx> Acked-by: Alan Cox <alan@xxxxxxxxxx> Cc: Stephen Smalley <sds@xxxxxxxxxxxxx> Cc: James Morris <jmorris@xxxxxxxxx> Cc: Chris Wright <chrisw@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mmap.c | 4 ++++ 1 file changed, 4 insertions(+) diff -puN mm/mmap.c~vm-security-add-security-hook-to-do_brk mm/mmap.c --- a/mm/mmap.c~vm-security-add-security-hook-to-do_brk +++ a/mm/mmap.c @@ -1946,6 +1946,10 @@ unsigned long do_brk(unsigned long addr, if (is_hugepage_only_range(mm, addr, len)) return -EINVAL; + error = security_file_mmap(0, 0, 0, 0, addr, 1); + if (error) + return error; + flags = VM_DATA_DEFAULT_FLAGS | VM_ACCOUNT | mm->def_flags; error = arch_mmap_check(addr, len, flags); _ Patches currently in -mm which might be from eparis@xxxxxxxxxx are git-selinux.patch vm-security-add-security-hook-to-do_brk.patch do_wait-cleanup-delay_group_leader-usage.patch do_wait-fix-security-checks.patch do_wait-fix-security-checks-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html