diff options
| author | Naoya Horiguchi <[email protected]> | 2021-06-05 03:01:27 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-06-05 15:58:11 +0000 |
| commit | 0c5da35723a961d8c02ea516da2bcfeb007d7d2c (patch) | |
| tree | 33f5f8fb00299bf727f3a787ce81ad4c51ec9450 /drivers/net/wwan/iosm/iosm_ipc_protocol_ops.c | |
| parent | drivers/base/memory: fix trying offlining memory blocks with memory holes on ... (diff) | |
| download | kernel-0c5da35723a961d8c02ea516da2bcfeb007d7d2c.tar.gz kernel-0c5da35723a961d8c02ea516da2bcfeb007d7d2c.zip | |
hugetlb: pass head page to remove_hugetlb_page()
When memory_failure() or soft_offline_page() is called on a tail page of
some hugetlb page, "BUG: unable to handle page fault" error can be
triggered.
remove_hugetlb_page() dereferences page->lru, so it's assumed that the
page points to a head page, but one of the caller,
dissolve_free_huge_page(), provides remove_hugetlb_page() with 'page'
which could be a tail page. So pass 'head' to it, instead.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 6eb4e88a6d27 ("hugetlb: create remove_hugetlb_page() to separate functionality")
Signed-off-by: Naoya Horiguchi <[email protected]>
Reviewed-by: Mike Kravetz <[email protected]>
Reviewed-by: Muchun Song <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Reviewed-by: Oscar Salvador <[email protected]>
Cc: Miaohe Lin <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_protocol_ops.c')
0 files changed, 0 insertions, 0 deletions
