Skip to content
Commit f010c75c authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Dan Williams
Browse files

cxl/pmem: Fix failure to account for 8 byte header for writes to the device LSA.



Writes to the device must include an offset and size as defined in
CXL 2.0 8.2.9.5.2.4 Set LSA (Opcode 4103h)

Fixes tag is non obvious as this code has been through several
reworks and variable names + wasn't in use until the addition
of the region code.

Due to a bug in QEMU CXL emulation this overrun resulted in QEMU
crashing.

Reported-by: default avatarBobo WL <lmw.bobo@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Fixes: 60b8f172

 ("cxl/pmem: Translate NVDIMM label commands to CXL label commands")
Link: https://lore.kernel.org/r/20220815154044.24733-3-Jonathan.Cameron@huawei.com
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 2816e24b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment