diff options
author | Li RongQing <[email protected]> | 2019-04-04 10:58:01 +0800 |
---|---|---|
committer | Dan Williams <[email protected]> | 2019-04-07 14:36:04 -0700 |
commit | 9dc6488e84b0f64df17672271664752488cd6a25 (patch) | |
tree | b72072d511728753fabada8b2b7cce287072b288 /drivers/nvdimm/namespace_devs.c | |
parent | d2e5b6436c28e7ee4988497d31122e06217876fb (diff) |
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 <[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]>
Diffstat (limited to 'drivers/nvdimm/namespace_devs.c')
0 files changed, 0 insertions, 0 deletions