aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/lists.py
diff options
context:
space:
mode:
authorPeter Xu <[email protected]>2018-12-21 14:30:50 -0800
committerLinus Torvalds <[email protected]>2018-12-21 14:51:18 -0800
commit2e83ee1d8694a61d0d95a5b694f2e61e8dde8627 (patch)
tree3b0948cfda175594379af6ec874c98f3b9ec338d /scripts/gdb/linux/lists.py
parent2830bf6f05fb3e05bc4743274b806c821807a684 (diff)
mm: thp: fix flags for pmd migration when split
When splitting a huge migrating PMD, we'll transfer all the existing PMD bits and apply them again onto the small PTEs. However we are fetching the bits unconditionally via pmd_soft_dirty(), pmd_write() or pmd_yound() while actually they don't make sense at all when it's a migration entry. Fix them up. Since at it, drop the ifdef together as not needed. Note that if my understanding is correct about the problem then if without the patch there is chance to lose some of the dirty bits in the migrating pmd pages (on x86_64 we're fetching bit 11 which is part of swap offset instead of bit 2) and it could potentially corrupt the memory of an userspace program which depends on the dirty bit. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Peter Xu <[email protected]> Reviewed-by: Konstantin Khlebnikov <[email protected]> Reviewed-by: William Kucharski <[email protected]> Acked-by: Kirill A. Shutemov <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Dave Jiang <[email protected]> Cc: "Aneesh Kumar K.V" <[email protected]> Cc: Souptick Joarder <[email protected]> Cc: Konstantin Khlebnikov <[email protected]> Cc: Zi Yan <[email protected]> Cc: <[email protected]> [4.14+] Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions