Skip to content

hw/cxl: bound Set Feature writes

Jia Jia linux-cxl qemu-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v21 patch 1 replySuperseded
  3. v11 patch 1 replySuperseded

Changes in v3 from the cover letter

- split helper extraction from the bug fix
- add Fixes tags to the bug-fixing patch
- leave the qtest for a separate follow-up

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2hw/cxl: factor Set Feature write bounds helperhw/cxl/cxl-mailbox-utils.c+28 -120 replies
2/2hw/cxl: validate PPR and sparing Set Feature writeshw/cxl/cxl-mailbox-utils.c+42 -120 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] hw/cxl: bound Set Feature writes

Hi Jonathan,

Thanks for the review.

This v3 splits the helper extraction from the actual bug fix. Patch 1 is a refactor only: it folds the existing patrol scrub and ECS bounds checks into a helper, with no intended functional change.

Patch 2 uses that helper for the remaining Set Feature branches that still copy into fixed-size write-attribute buffers without bounds validation. That patch carries the Fixes tags.

I have left the qtest out of this backportable bugfix series for now. I can send it separately after addressing the x86-only and magic-value comments.

Changes since v2:

- split helper extraction from the bug fix
- add Fixes tags to the bug-fixing patch
- leave the qtest for a separate follow-up

Jia Jia (2):
hw/cxl: factor Set Feature write bounds helper hw/cxl: validate PPR and sparing Set Feature writes

 hw/cxl/cxl-mailbox-utils.c | 94 ++++++++++++++++++++++++++++----------
 1 file changed, 70 insertions(+), 24 deletions(-)
Signature · 1 line
2.34.1