forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork1
Commitfece202
mm/khugepaged.c: convert VM_BUG_ON() to collapse fail
khugepaged is not yet able to convert PTE-mapped huge pages back to PMDmapped. We do not collapse such pages. See checkkhugepaged_scan_pmd().But if between khugepaged_scan_pmd() and __collapse_huge_page_isolate()somebody managed to instantiate THP in the range and then split the PMDback to PTEs we would have a problem --VM_BUG_ON_PAGE(PageCompound(page)) will get triggered.It's possible since we drop mmap_sem during collapse to re-take forwrite.Replace the VM_BUG_ON() with graceful collapse fail.Link:http://lkml.kernel.org/r/20180315152353.27989-1-kirill.shutemov@linux.intel.comFixes:b1caa95 ("khugepaged: ignore pmd tables with THP mapped with ptes")Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>Cc: Laura Abbott <labbott@redhat.com>Cc: Jerome Marchand <jmarchan@redhat.com>Cc: Vlastimil Babka <vbabka@suse.cz>Cc: <stable@vger.kernel.org>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent28ee90f commitfece202
1 file changed
+6
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
530 | 530 |
| |
531 | 531 |
| |
532 | 532 |
| |
533 |
| - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
534 | 539 |
| |
535 | 540 |
| |
536 | 541 |
| |
|
0 commit comments
Comments
(0)