Files
linux/fs
Zi Yan 8db0ec791f fs: use nth_page() in place of direct struct page manipulation
When dealing with hugetlb pages, struct page is not guaranteed to be
contiguous on SPARSEMEM without VMEMMAP.  Use nth_page() to handle it
properly.

Without the fix, a wrong subpage might be checked for HWPoison, causing wrong
number of bytes of a page copied to user space. No bug is reported. The fix
comes from code inspection.

Link: https://lkml.kernel.org/r/[email protected]
Fixes: 38c1ddbde6 ("hugetlbfs: improve read HWPOISON hugepage")
Signed-off-by: Zi Yan <[email protected]>
Reviewed-by: Muchun Song <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Mike Kravetz <[email protected]>
Cc: Mike Rapoport (IBM) <[email protected]>
Cc: Thomas Bogendoerfer <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
2023-10-04 10:32:29 -07:00
..
2023-08-29 17:45:22 -04:00
2023-08-31 12:07:34 -05:00
2023-06-28 20:35:21 -07:00
2023-10-04 10:32:29 -07:00
…
2023-07-26 14:56:07 +02:00
…
2023-08-08 19:36:51 +02:00
…
2023-08-21 13:46:25 -07:00
2023-08-14 18:48:02 +02:00
…
2023-08-19 12:12:12 +02:00
2023-08-02 09:13:09 -06:00
…
…
2023-08-19 12:12:12 +02:00
2023-07-13 10:28:04 +02:00
…
…
2023-08-15 08:32:45 +02:00
…
…
…
…
…
…