Skip to content

cxl: Assorted fixes

Guixin Liu linux-cxl 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8cxl/features: Validate the fwctl RPC input lengthdrivers/cxl/core/features.c+10 -10 replies
2/8cxl/features: Bound the Get Feature output by the user output bufferdrivers/cxl/core/features.c+4 -00 replies
3/8cxl/core: Fix dport use-after-free via the einj_inject debugfs filedrivers/cxl/core/port.c+14 -42 replies
4/8cxl/pci: Fix NULL pointer dereference in reset detectiondrivers/cxl/core/pci.c+8 -00 replies
5/8cxl/hdm: Fix out of bounds read of the decoder target listdrivers/cxl/core/hdm.c+12 -00 replies
6/8cxl/cdat: Fix uninitialized stack use in endpoint bandwidth gatheringdrivers/cxl/core/cdat.c+3 -30 replies
7/8cxl/mce: Validate the memdev and endpoint before usedrivers/cxl/core/mce.c+6 -20 replies
8/8cxl/region: Unregister the pmem region bridge on setup failuredrivers/cxl/core/region_pmem.c+4 -20 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/8] cxl: Assorted fixes

This is a batch of fixes found while auditing drivers/cxl. They are independent of each other and can be applied individually or dropped in any combination; they are only sent together because they came out of the same pass over the code.

Guixin Liu (8):
cxl/features: Validate the fwctl RPC input length cxl/features: Bound the Get Feature output by the user output buffer cxl/core: Fix dport use-after-free via the einj_inject debugfs file cxl/pci: Fix NULL pointer dereference in reset detection cxl/hdm: Fix out of bounds read of the decoder target list cxl/cdat: Fix uninitialized stack use in endpoint bandwidth gathering cxl/mce: Validate the memdev and endpoint before use cxl/region: Unregister the pmem region bridge on setup failure

 drivers/cxl/core/cdat.c        |  6 +++---
 drivers/cxl/core/features.c    | 15 ++++++++++++++-
 drivers/cxl/core/hdm.c         | 12 ++++++++++++
 drivers/cxl/core/mce.c         |  8 ++++++--
 drivers/cxl/core/pci.c         |  8 ++++++++
 drivers/cxl/core/port.c        | 18 ++++++++++++++----
 drivers/cxl/core/region_pmem.c |  6 ++++--
 7 files changed, 61 insertions(+), 12 deletions(-)

base-commit: d58772d8520c7ef247c4b95c9bd76d3a25da9ff5

Signature · 1 line
2.43.7