mirror of
https://github.com/torvalds/linux
synced 2024-07-21 10:41:44 +00:00
8db0ec791f
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/20230913201248.452081-5-zi.yan@sent.com
Fixes:
|
||
---|---|---|
.. | ||
inode.c | ||
Makefile |