Skip to content

cxl/mbox: fix undersized payload handling in cxl_payload_from_user_allowed()

Davidlohr Bueso linux-cxl 1 version Applied

Status from this message: Applied to cxl/fixes

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2cxl/mbox: validate payload size before accessing contents in cxl_payload_from_user_allowed()drivers/cxl/core/mbox.c+9 -22 replies
2/2cxl/mbox: return appropriate error in cxl_payload_from_user_allowed()drivers/cxl/core/mbox.c+19 -135 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDave JiangAlison SchofieldJonathan Cameron
SeriesR-b
1/2R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/2] cxl/mbox: fix undersized payload handling in cxl_payload_from_user_allowed()

Hi,

The first patch fixes a KSAN splat uncovered by cxl fuzzying, the second is a follow up for maintain proper error code semantics.

Applies against 'next' from cxl.git.

Thanks!

Davidlohr Bueso (2):
cxl/mbox: validate payload size before accessing contents in cxl_payload_from_user_allowed() cxl/mbox: return appropriate error in cxl_payload_from_user_allowed()

 drivers/cxl/core/mbox.c | 31 ++++++++++++++++++++++---------
 1 file changed, 22 insertions(+), 9 deletions(-)

--
2.39.5