Skip to content

ASoC: mediatek: fix use-after-free in driver remove path

Trevor Wu alsa-devel linux-arm-kernel linux-mediatek lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 5 repliesIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- remove unnecessary cast

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ASoC: mediatek: mt8188: fix use-after-free in driver remove pathsound/soc/mediatek/mt8188/mt8188-afe-clk.c sound/soc/mediatek/mt8188/mt8188-afe-clk.h sound/soc/mediatek/mt8188/mt8188-afe-pcm.c +2 more+24 -362 replies
2/2ASoC: mediatek: mt8195: fix use-after-free in driver remove pathsound/soc/mediatek/mt8195/mt8195-afe-clk.c sound/soc/mediatek/mt8195/mt8195-afe-clk.h sound/soc/mediatek/mt8195/mt8195-afe-pcm.c +2 more+24 -342 replies

Reviews trailers per patch

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

PatchDouglas AndersonAngeloGioacchino Del RegnoAlexandre Mergnat
1/2R-b R-b R-b
2/2R-b R-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 v2 thread

Cover letter [PATCH v2 0/2] ASoC: mediatek: fix use-after-free in driver remove path

These patches concern modifications made in mt8186[1]. The clock unregistration mechanism used in mt8188 and mt8195 is similar with mt8186, resulting in the same problem existing within the driver. Therefore, the solution has also been applied to these two platforms.

[1] https://lore.kernel.org/all/20230511092437.1.I31cceffc8c45bb1af16eb613e197b3df92cdc19e@changeid/

Changes since v1:
- remove unnecessary cast

Trevor Wu (2):
ASoC: mediatek: mt8188: fix use-after-free in driver remove path
ASoC: mediatek: mt8195: fix use-after-free in driver remove path

 sound/soc/mediatek/mt8188/mt8188-afe-clk.c    |  7 ---
 sound/soc/mediatek/mt8188/mt8188-afe-clk.h    |  1 -
 sound/soc/mediatek/mt8188/mt8188-afe-pcm.c    |  4 --
 sound/soc/mediatek/mt8188/mt8188-audsys-clk.c | 47 ++++++++++---------
 sound/soc/mediatek/mt8188/mt8188-audsys-clk.h |  1 -
 sound/soc/mediatek/mt8195/mt8195-afe-clk.c    |  5 --
 sound/soc/mediatek/mt8195/mt8195-afe-clk.h    |  1 -
 sound/soc/mediatek/mt8195/mt8195-afe-pcm.c    |  4 --
 sound/soc/mediatek/mt8195/mt8195-audsys-clk.c | 47 ++++++++++---------
 sound/soc/mediatek/mt8195/mt8195-audsys-clk.h |  1 -
 10 files changed, 48 insertions(+), 70 deletions(-)
Signature · 1 line
2.18.0