Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230817
b: refs/heads/master
c: 5520e89
h: refs/heads/master
i:
  230815: 7f80343
v: v3
  • Loading branch information
Jiri Kosina authored and Linus Torvalds committed Jan 14, 2011
1 parent 40c9a89 commit d7c5946
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 32d6feadf4e17ea9b98071be9bbf402a74a4f818
refs/heads/master: 5520e89485252c759ee60d313e9422447659947b
10 changes: 9 additions & 1 deletion trunk/mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,15 @@ SYSCALL_DEFINE1(brk, unsigned long, brk)
down_write(&mm->mmap_sem);

#ifdef CONFIG_COMPAT_BRK
min_brk = mm->end_code;
/*
* CONFIG_COMPAT_BRK can still be overridden by setting
* randomize_va_space to 2, which will still cause mm->start_brk
* to be arbitrarily shifted
*/
if (mm->start_brk > PAGE_ALIGN(mm->end_data))
min_brk = mm->start_brk;
else
min_brk = mm->end_data;
#else
min_brk = mm->start_brk;
#endif
Expand Down

0 comments on commit d7c5946

Please sign in to comment.