Linux CXL
 help / color / mirror / Atom feed
* [PATCH 0/2] cxl: Fix oversized LSA write payload due to header
@ 2022-08-15 15:40 Jonathan Cameron
  2022-08-15 15:40 ` [PATCH 1/2] cxl/mbox: Add a check on input payload size Jonathan Cameron
  2022-08-15 15:40 ` [PATCH 2/2] cxl/pmem: Fix failure to account for 8 byte header for writes to the device LSA Jonathan Cameron
  0 siblings, 2 replies; 7+ messages in thread
From: Jonathan Cameron @ 2022-08-15 15:40 UTC (permalink / raw)
  To: linux-cxl, linuxarm; +Cc: Dan Williams, vishal.l.verma, ira.weiny, Ben Widawsky

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(-)

-- 
2.32.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-10-21 23:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-15 15:40 [PATCH 0/2] cxl: Fix oversized LSA write payload due to header Jonathan Cameron
2022-08-15 15:40 ` [PATCH 1/2] cxl/mbox: Add a check on input payload size Jonathan Cameron
2022-08-15 15:40 ` [PATCH 2/2] cxl/pmem: Fix failure to account for 8 byte header for writes to the device LSA Jonathan Cameron
2022-08-15 21:55   ` Dan Williams
2022-08-17 11:29     ` Jonathan Cameron
2022-10-10 15:31       ` Jonathan Cameron
2022-10-21 23:31         ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox