Skip to content

cxl: Fix endpoint access issues with CXL MCE notifier handler

Dave Jiang linux-cxl stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cxl/mce: Validate memdev and endpoint before dereference in cxl_handle_mce()drivers/cxl/core/mce.c+6 -22 replies
2/2cxl/mce: Serialize the MCE handler against endpoint teardowndrivers/cxl/core/mce.c+23 -41 reply

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 endpoint access issues with CXL MCE notifier handler

Fix the issues reported by Flavien to the Linux security mailing list.

First patch addresses accessing possible invalid pointers for cxlmd and cxmd->endpoint.

The second patch adddresses the endpoint lifetime that is shorter than mds and needs appropriate guardrails to access.

Dave Jiang (2):
cxl/mce: Validate memdev and endpoint before dereference in
cxl_handle_mce()
cxl/mce: Serialize the MCE handler against endpoint teardown

 drivers/cxl/core/mce.c | 29 ++++++++++++++++++++++++++---
 1 file changed, 26 insertions(+), 3 deletions(-)

base-commit: 8cd9520d35a6c38db6567e97dd93b1f11f185dc6

Signature · 1 line
2.54.0