FW: [PATCH] ASoC: soc-compress: Fix race condition in soc_compr_open_fe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add recipient addition and modification patch to the body of the
transmission.

 

From: 이승빈 <seungbin.lee@xxxxxxxxxxx <mailto:seungbin.lee@xxxxxxxxxxx> > 
Sent: Thursday, June 19, 2025 10:25 AM
To: 'tiwai@xxxxxxx' <tiwai@xxxxxxx <mailto:tiwai@xxxxxxx> >
Subject: [PATCH] ASoC: soc-compress: Fix race condition in soc_compr_open_fe

 

Hi

 

I am sending this email to report an issue found in sound/soc/soc-
compress.c.

 

Scenario: Playing a mix of MP3 and WAV files repeatedly from YouTube Music
by pressing "next".

 

Issue occurs when snd_soc_dpcm_runtime_update is called and
soc_compr_trigger_fe is invoked, causing the value of “fe-
>dpcm[stream].runtime_update” to change mid-process. This results in a
problem where, during the closing of the BE connected to the FE in
snd_soc_dpcm_runtime_update, only the entry is removed from the list
without actually being closed.

 

The attached patch resolves this issue as confirmed through testing.

 

Additionally, while performing DPCM related operations in soc-compress.c,
snd_soc_dpcm_mutex_lock is used; however, soc_compr_trigger_fe does not
have this lock. Please review the attached patch regarding this matter.

 

Thank you.

 


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux