Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74615
b: refs/heads/master
c: ecaf18c
h: refs/heads/master
i:
  74613: f556171
  74611: 254ed36
  74607: 0636f1e
v: v3
  • Loading branch information
Eric Paris authored and Linus Torvalds committed Dec 5, 2007
1 parent e79bbef commit be86fbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 294a80a8ed004b383ab214837e1c05ca4098a717
refs/heads/master: ecaf18c15aac8bb9bed7b7aa0e382fe252e275d5
4 changes: 4 additions & 0 deletions trunk/mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1934,6 +1934,10 @@ unsigned long do_brk(unsigned long addr, unsigned long len)
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);
Expand Down

0 comments on commit be86fbe

Please sign in to comment.