diff options
author | Andrea Arcangeli <aarcange@redhat.com> | 2011-02-15 19:02:45 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-02-15 15:21:11 -0800 |
commit | a7d6e4ecdb7648478ddec76d30d87d03d6e22b31 (patch) | |
tree | 1e0110780ac0a8eeef2629e1d5880602bd6003c0 /mm/memory-failure.c | |
parent | 09f586b35d8503b57de1e0e9b19bc6b38e0d7319 (diff) | |
download | linux-stable-a7d6e4ecdb7648478ddec76d30d87d03d6e22b31.tar.gz linux-stable-a7d6e4ecdb7648478ddec76d30d87d03d6e22b31.tar.bz2 linux-stable-a7d6e4ecdb7648478ddec76d30d87d03d6e22b31.zip |
thp: prevent hugepages during args/env copying into the user stack
Transparent hugepages can only be created if rmap is fully
functional. So we must prevent hugepages to be created while
is_vma_temporary_stack() is true.
This also optmizes away some harmless but unnecessary setting of
khugepaged_scan.address and it switches some BUG_ON to VM_BUG_ON.
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory-failure.c')
0 files changed, 0 insertions, 0 deletions