]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 2 Nov 2025 14:00:30 +0000 (23:00 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 2 Nov 2025 14:00:30 +0000 (23:00 +0900)
added patches:
asoc-qdsp6-q6asm-do-not-sleep-while-atomic.patch

queue-5.4/asoc-qdsp6-q6asm-do-not-sleep-while-atomic.patch [new file with mode: 0644]
queue-5.4/series

diff --git a/queue-5.4/asoc-qdsp6-q6asm-do-not-sleep-while-atomic.patch b/queue-5.4/asoc-qdsp6-q6asm-do-not-sleep-while-atomic.patch
new file mode 100644 (file)
index 0000000..71fe750
--- /dev/null
@@ -0,0 +1,37 @@
+From fdbb53d318aa94a094434e5f226617f0eb1e8f22 Mon Sep 17 00:00:00 2001
+From: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
+Date: Fri, 17 Oct 2025 09:52:56 +0100
+Subject: ASoC: qdsp6: q6asm: do not sleep while atomic
+
+From: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
+
+commit fdbb53d318aa94a094434e5f226617f0eb1e8f22 upstream.
+
+For some reason we ended up kfree between spinlock lock and unlock,
+which can sleep.
+
+move the kfree out of spinlock section.
+
+Fixes: a2a5d30218fd ("ASoC: qdsp6: q6asm: Add support to memory map and unmap")
+Cc: Stable@vger.kernel.org
+Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
+Link: https://patch.msgid.link/20251017085307.4325-2-srinivas.kandagatla@oss.qualcomm.com
+Signed-off-by: Mark Brown <broonie@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ sound/soc/qcom/qdsp6/q6asm.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/sound/soc/qcom/qdsp6/q6asm.c
++++ b/sound/soc/qcom/qdsp6/q6asm.c
+@@ -299,9 +299,9 @@ static void q6asm_audio_client_free_buf(
+       spin_lock_irqsave(&ac->lock, flags);
+       port->num_periods = 0;
++      spin_unlock_irqrestore(&ac->lock, flags);
+       kfree(port->buf);
+       port->buf = NULL;
+-      spin_unlock_irqrestore(&ac->lock, flags);
+ }
+ /**
index 42eaacb64dc1785fee272e152404128457609025..a05b1820e1d29b3a5c26703fdf4e4da424de78c2 100644 (file)
@@ -7,3 +7,4 @@ acpi-video-fix-use-after-free-in-acpi_video_switch_brightness.patch
 fbdev-bitblit-bound-check-glyph-index-in-bit_putcs.patch
 fbdev-pvr2fb-fix-leftover-reference-to-onchip_nr_dma_channels.patch
 fbdev-valkyriefb-fix-reference-count-leak-in-valkyriefb_init.patch
+asoc-qdsp6-q6asm-do-not-sleep-while-atomic.patch