path: root/include
diff options
authorJue Wang <>2021-06-15 18:24:00 -0700
committerLinus Torvalds <>2021-06-16 09:24:42 -0700
commit31657170deaf1d8d2f6a1955fbc6fa9d228be036 (patch)
tree350216ee90c24108e776ec62d0905a0c28a232c0 /include
parent494334e43c16d63b878536a26505397fce6ff3a2 (diff)
mm/thp: fix page_address_in_vma() on file THP tails
Anon THP tails were already supported, but memory-failure may need to use page_address_in_vma() on file THP tails, which its page->mapping check did not permit: fix it. hughd adds: no current usage is known to hit the issue, but this does fix a subtle trap in a general helper: best fixed in stable sooner than later. Link: Fixes: 800d8c63b2e9 ("shmem: add huge pages support") Signed-off-by: Jue Wang <> Signed-off-by: Hugh Dickins <> Reviewed-by: Matthew Wilcox (Oracle) <> Reviewed-by: Yang Shi <> Acked-by: Kirill A. Shutemov <> Cc: Alistair Popple <> Cc: Jan Kara <> Cc: Miaohe Lin <> Cc: Minchan Kim <> Cc: Naoya Horiguchi <> Cc: Oscar Salvador <> Cc: Peter Xu <> Cc: Ralph Campbell <> Cc: Shakeel Butt <> Cc: Wang Yugui <> Cc: Zi Yan <> Cc: <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions