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

Wenshan Lan posted 2 patches 1 month ago
drivers/dma/idxd/device.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
[PATCH 6.6.y v2 0/2] dmaengine: idxd: fix event log crash and memory leak on FLR
Posted by Wenshan Lan 1 month ago
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(-)

-- 
2.43.0
Re: [PATCH 6.6.y v2 0/2] dmaengine: idxd: fix event log crash and memory leak on FLR
Posted by Sasha Levin 1 month ago
> Changes since v1:
>   - Added prerequisite patch backporting 52d2edea0d63 ("dmaengine:
>     idxd: Fix crash when the event log is disabled") so that the
>     ee66bc295783 fix doesn't regress hardware without event-log
>     support.
>   - Documented the partial backport of 52d2edea0d63 (the
>     idxd_device_config_restore() hunk is dropped because that helper
>     does not exist on 6.6).

Both patches queued for 6.6.y, thanks for the quick v2 turnaround.

--
Thanks,
Sasha