Bug 211287

Summary: Softdirty bit does not work with hugetlb
Product: Memory Management Reporter: malate_wangshu
Component: OtherAssignee: Andrew Morton (akpm)
Status: NEW ---    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: All kernel version Subsystem:
Regression: No Bisected commit-id:

Description malate_wangshu 2021-01-19 22:15:27 UTC
When a memory region is mapped with huge pages, the softdirty bit is set only right after the huge pages is mapped. After the memory mapping, if the softdirty bit is cleared and the memory is written again, the softdirty bit is not set when reading from the process's pagemap.