This is a note to let you know that I've just added the patch titled ALSA: emu10k1: fix capture interrupt handler unlinking to the 5.15-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: alsa-emu10k1-fix-capture-interrupt-handler-unlinking.patch and it can be found in the queue-5.15 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From b09c551c77c7e01dc6e4f3c8bf06b5ffa7b06db5 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen <oswald.buddenhagen@xxxxxx> Date: Wed, 5 Apr 2023 22:12:20 +0200 Subject: ALSA: emu10k1: fix capture interrupt handler unlinking From: Oswald Buddenhagen <oswald.buddenhagen@xxxxxx> commit b09c551c77c7e01dc6e4f3c8bf06b5ffa7b06db5 upstream. Due to two copy/pastos, closing the MIC or EFX capture device would make a running ADC capture hang due to unsetting its interrupt handler. In principle, this would have also allowed dereferencing dangling pointers, but we're actually rather thorough at disabling and flushing the ints. While it may sound like one, this actually wasn't a hypothetical bug: PortAudio will open a capture stream at startup (and close it right away) even if not asked to. If the first device is busy, it will just proceed with the next one ... thus killing a concurrent capture. Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@xxxxxx> Cc: <stable@xxxxxxxxxxxxxxx> Link: https://lore.kernel.org/r/20230405201220.2197923-1-oswald.buddenhagen@xxxxxx Signed-off-by: Takashi Iwai <tiwai@xxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- sound/pci/emu10k1/emupcm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/sound/pci/emu10k1/emupcm.c +++ b/sound/pci/emu10k1/emupcm.c @@ -1236,7 +1236,7 @@ static int snd_emu10k1_capture_mic_close { struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); - emu->capture_interrupt = NULL; + emu->capture_mic_interrupt = NULL; emu->pcm_capture_mic_substream = NULL; return 0; } @@ -1344,7 +1344,7 @@ static int snd_emu10k1_capture_efx_close { struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream); - emu->capture_interrupt = NULL; + emu->capture_efx_interrupt = NULL; emu->pcm_capture_efx_substream = NULL; return 0; } Patches currently in stable-queue which might be from oswald.buddenhagen@xxxxxx are queue-5.15/alsa-hda-sigmatel-add-pin-overrides-for-intel-dp45sg-motherboard.patch queue-5.15/alsa-hda-sigmatel-fix-s-pdif-out-on-intel-d-45-motherboards.patch queue-5.15/alsa-emu10k1-fix-capture-interrupt-handler-unlinking.patch queue-5.15/alsa-emu10k1-don-t-create-old-pass-through-playback-device-on-audigy.patch queue-5.15/alsa-i2c-cs8427-fix-iec958-mixer-control-deactivation.patch