cxl: Fix oversized LSA write payload due to header
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | cxl/mbox: Add a check on input payload sizedrivers/ | +1 | 0 replies | |
| 2/2 | cxl/pmem: Fix failure to account for 8 byte header for writes to the device LSA.drivers/ | +1 | 4 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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