WSL2-Linux-Kernel/drivers/nvdimm
Li RongQing 9dc6488e84 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: 98cc093cba ("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>
2019-04-07 14:36:04 -07:00
..
Kconfig acpi/nfit, libnvdimm: Add unlock of nvdimm support for Intel DIMMs 2018-12-13 17:54:13 -08:00
Makefile acpi/nfit, libnvdimm: Add unlock of nvdimm support for Intel DIMMs 2018-12-13 17:54:13 -08:00
badrange.c
blk.c
btt.c libnvdimm/btt: Fix LBA masking during 'free list' population 2019-02-28 09:57:39 -08:00
btt.h libnvdimm/btt: Fix LBA masking during 'free list' population 2019-02-28 09:57:39 -08:00
btt_devs.c libnvdimm/btt: Fix a kmemdup failure check 2019-03-27 10:08:55 -07:00
bus.c libnvdimm: Schedule device registration on node local to the device 2019-01-31 14:20:54 +01:00
claim.c
core.c
dax_devs.c
dimm.c libnvdimm/security: Require nvdimm_security_setup_events() to succeed 2019-01-21 09:57:43 -08:00
dimm_devs.c Merge branch 'for-5.1/libnvdimm' into libnvdimm-for-next 2019-03-11 12:13:42 -07:00
e820.c acpi/nfit, device-dax: Identify differentiated memory with a unique numa-node 2019-01-06 21:41:57 -08:00
label.c libnvdimm/dimm: Add a no-BLK quirk based on NVDIMM family 2019-02-02 16:35:26 -08:00
label.h
namespace_devs.c libnvdimm/namespace: Fix a potential NULL pointer dereference 2019-03-22 16:19:54 -07:00
nd-core.h libnvdimm/security: Fix nvdimm_security_state() state request selection 2019-01-15 13:54:33 -08:00
nd.h device-dax for 5.1 2019-03-16 13:05:32 -07:00
of_pmem.c device-dax for 5.1 2019-03-16 13:05:32 -07:00
pfn.h
pfn_devs.c libnvdimm/pfn: Remove dax_label_reserve 2019-02-22 11:52:32 -08:00
pmem.c libnvdimm/pmem: fix a possible OOB access when read and write pmem 2019-04-07 14:36:04 -07:00
pmem.h
region.c
region_devs.c device-dax for 5.1 2019-03-16 13:05:32 -07:00
security.c libnvdimm/security, acpi/nfit: unify zero-key for all security commands 2019-03-30 08:27:07 -07:00