Skip to content

dmaengine: idxd: fix event log crash and memory leak on FLR

Wenshan Lan lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 1 replyIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dmaengine: idxd: Fix crash when the event log is disableddrivers/dma/idxd/device.c+3 -00 replies
2/2dmaengine: idxd: Fix leaking event log memorydrivers/dma/idxd/device.c+0 -40 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDave Jiang
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH 6.6.y v2 0/2] dmaengine: idxd: fix event log crash and memory leak on FLR

v1->v2: add commit 52d2edea0d63c ("dmaengine: idxd: Fix crash when the event log is disabled")

Backport of two upstream fixes for the dmaengine idxd event log handling in drivers/dma/idxd/device.c. These fix a crash and a memory leak when the event log is disabled or a Function Level Reset (FLR) occurs.

Backport notes:
- Commit 8a5084ab3af8: The upstream fix also touches idxd_device_config_restore(), which does not exist in v6.6 (introduced in 6.14 via commit 6078a315aec1). Only the idxd_device_evl_free() NULL check portion was backported.
- Commit 2ea19af4a590: Clean cherry-pick, no conflicts.

Vinicius Costa Gomes (2):
dmaengine: idxd: Fix crash when the event log is disabled
dmaengine: idxd: Fix leaking event log memory

 drivers/dma/idxd/device.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Signature · 1 line
2.43.0