Skip to content

cxl: Fix oversized LSA write payload due to header

Jonathan Cameron linux-cxl 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cxl/mbox: Add a check on input payload sizedrivers/cxl/core/mbox.c+1 -10 replies
2/2cxl/pmem: Fix failure to account for 8 byte header for writes to the device LSA.drivers/cxl/pmem.c+1 -14 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] cxl: Fix oversized LSA write payload due to header

Fix the bug by claiming the payload is smaller by 8 bytes for both reads and writes. Also add a defensive check to aid catching similar bugs in future.

Note that two issues also found in QEMU code whilst looking at this bug. I'll send out fixes for those shortly.

Note that even with these
ndctl create-namespace fails. More debugging underway.

Jonathan Cameron (2):
cxl/mbox: Add a check on input payload size
cxl/pmem: Fix failure to account for 8 byte header for writes to the
device LSA.

 drivers/cxl/core/mbox.c | 2 +-
 drivers/cxl/pmem.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.32.0