History

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.

Andrea Arcangeli committed 15 years ago

Commit a7d6e4e1 parent 09f586b2 files · +18 −20Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/linux/huge_mm.h+2−1
@@ -57,7 +57,8 @@ extern pmd_t *page_check_address_pmd(struct page *page, · 56 unmodified lines
5757 (transparent_hugepage_flags & \
5858 (1<<TRANSPARENT_HUGEPAGE_REQ_MADV_FLAG) && \
5959 ((__vma)->vm_flags & VM_HUGEPAGE))) && \
60− !((__vma)->vm_flags & VM_NOHUGEPAGE))
60+ !((__vma)->vm_flags & VM_NOHUGEPAGE) && \
61+ !is_vma_temporary_stack(__vma))
6162 #define transparent_hugepage_defrag(__vma) \
6263 ((transparent_hugepage_flags & \
6364 (1<<TRANSPARENT_HUGEPAGE_DEFRAG_FLAG)) || \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t