Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libnvdimm/pmem: fix a possible OOB access when read and write pmem
If offset is not zero and length is bigger than PAGE_SIZE, this will cause to out of boundary access to a page memory Fixes: 98cc093 ("block, THP: make block_device_operations.rw_page support THP") Co-developed-by: Liang ZhiCheng <[email protected]> Signed-off-by: Liang ZhiCheng <[email protected]> Signed-off-by: Li RongQing <[email protected]> Reviewed-by: Ira Weiny <[email protected]> Reviewed-by: Jeff Moyer <[email protected]> Signed-off-by: Dan Williams <[email protected]>
- Loading branch information