diff options
author | Li RongQing <lirongqing@baidu.com> | 2019-04-04 05:58:01 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2019-04-08 00:36:04 +0300 |
commit | 9dc6488e84b0f64df17672271664752488cd6a25 (patch) | |
tree | b72072d511728753fabada8b2b7cce287072b288 /tools/testing/nvdimm | |
parent | d2e5b6436c28e7ee4988497d31122e06217876fb (diff) | |
download | linux-9dc6488e84b0f64df17672271664752488cd6a25.tar.xz |
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: 98cc093cba1e ("block, THP: make block_device_operations.rw_page support THP")
Co-developed-by: Liang ZhiCheng <liangzhicheng@baidu.com>
Signed-off-by: Liang ZhiCheng <liangzhicheng@baidu.com>
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/testing/nvdimm')
0 files changed, 0 insertions, 0 deletions