[PATCH v4 0/2] media: venus: fix HFI teardown races

From: Myeonghun Pak

Date: Thu Oct 01 2026 - 13:55:39 EST


As part of our ongoing static-analysis research, we reviewed the Venus
teardown path and confirmed the race reported by Sashiko.

This series fixes two HFI lifetime races during teardown. The first patch
waits for the hard and threaded IRQ handlers before releasing HFI state.
The second disables and drains recovery work so it cannot be requeued
while HFI state is being torn down.

The later Sashiko report also identifies a separate resource leak when IRQ
registration fails during probe. That issue is outside this series.

Changes in v4:
- Rebase onto the latest media-committers.git next branch to address the
Media CI base-branch check.
- No code changes.

Changes in v3:
- Send through git send-email over SMTP. The v2 cover letter incorrectly
said git send-email was used; v2 was sent through the Gmail API, which
still wrapped the diff --git lines before delivery.
- No code changes.

Changes in v2:
- Regenerated the patch files with git format-patch after the v1 mail
delivery wrapped the diff --git lines. No code changes.

Myeonghun Pak (2):
media: venus: hfi: disable IRQ before freeing HFI device
media: venus: disable recovery work before HFI teardown

drivers/media/platform/qcom/venus/core.c | 2 +-
drivers/media/platform/qcom/venus/hfi_venus.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)


base-commit: 4a069a763e8a86821edac4159f7c59a20015631b
--
2.53.0