Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794047568; b=RtfdlgfBosM6i1ntg+Ol86QafTzAhIha3bXGyZj1/QpZuZsoXXJyXRyLGCyefvr7w/k1 3CQj35E+6WmZr5zVPdmyZClrRo9Gm97T72z4klCZq6rlA5hdiTAIdsLdQixMu7iaWYg3g P5HCtWBZQh2wp1jtkaKt8Q5teJZq70Xl4ANuk3bi1SQDRP5p8PO0gp0f6+2Nm6dznmkJE TeS8wigVbe3HCTjDGekTQR4kTZleVCYIfJ1N33DH6kIB/GlvbjFBaO+GVDRcFT7obQHGc u/3rakgGZB74UxEEcuhv0HRRZsW+xSFI0rmToSxccJ+dLjjqU5n37+xfo1s/ZWsmr9Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794047568; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=VIt3BKSp3noupiAXdI98fI/wpabFVZupCt6sWNdo/b0=; b=eOdfhnRyv2O83lP1RQwrEbdMF8CvebyrPH/CiRl/3izrY5OOQAxEXsHhFwzmRIrXNlRN dm/5ZeKkx1DNF1VLBFXxhyRMe2aQEvgdk4UDtatESa6aplMTo4F4pjJKk7LzH5EnZMxWh /HUsIVUz10/dH8hA6aIaRgyrUTgPRU1xvEp6DiT0UlJcaB3YOFWqP3etGaLOfZpAHR6Oz kieMKKxDa1qN1pDHP1AXvdUfWh293yslNjyXjUIDQTzaq/ZDBbkx4UsHoysiO35BxZ2pc kuWZlbtAv2FESrSSmvBZiPrODBV/Siynq2TSroGM9kQCA1XbcGKczOHKTCNwBR8WsIQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PqmgGcDq; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 286B6606A32C for ; Sat, 7 Nov 2026 10:32:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PqmgGcDq Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91DB71F0089F; Sat, 7 Nov 2026 10:32:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794047568; bh=VIt3BKSp3noupiAXdI98fI/wpabFVZupCt6sWNdo/b0=; h=From:To:Cc:Subject:Date; b=PqmgGcDq7zCsLs9WJHrkQP31fxZg39mf9q4U7FoQtDUp/JR5CPgppt4bnekn2nCJo Bbg/wu8z757PpuTang+0QER/WM3holgrP5HPl2hgyIPYMG5UZqeiric5KrIzSXFJwe MxHLhamlCdOlmwDfI2nHfwNOhCQFNtGZCMJxgwD2lIfJIynicYAqLcEwC/34cDaIKY pjXh1EOqq39jsK4rfDxG/k41jEjbh6UEWU97PmDZ33zjaZaY2+PKx9kHLQbyDpeKrB EqCtbNs6HTSF6ZKAKXPlsS1bcyrBsHCYMuokKM4QhW8zZ39hIlsfHeIsLcc8WACnK7 r3SmqrLgqkz+Q== From: Sasha Levin To: peter.ujfalusi@linux.intel.com, tiwai@suse.de Cc: stable@vger.kernel.org Subject: FAILED: patch "[PATCH] ALSA: hda/hdmi: clamp sad_count in ELD proc write handler" failed to apply to 6.6-stable tree Date: Sat, 7 Nov 2026 05:32:46 -0500 Message-ID: <20261107053246-failed-6.6-b3e7ddd694f8@kernel.org> X-Mailer: git-send-email 2.53.0 X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x b3e7ddd694f8429217ba509b55b910a0e4361dfb # git commit -s git send-email --to '' --in-reply-to '20261107053246-failed-6.6-b3e7ddd694f8@kernel.org' --subject-prefix 'PATCH 6.6.y' 'HEAD^..' Thanks, Sasha ------------------ original commit in Linus's tree ------------------ From b3e7ddd694f8429217ba509b55b910a0e4361dfb Mon Sep 17 00:00:00 2001 From: Peter Ujfalusi Date: Thu, 8 Oct 2026 11:51:33 +0300 Subject: [PATCH] ALSA: hda/hdmi: clamp sad_count in ELD proc write handler snd_hdmi_write_eld_info() parses a "sad_count N" line from the root-writable ELD proc interface and assigns N directly to e->sad_count with no upper bound, unlike the per-index "sadN_*" lines a few lines below which are already bounded to ELD_MAX_SAD. snd_hdmi_eld_update_pcm_info() later iterates "for (i = 0; i < e->sad_count; i++)" over the fixed e->sad[ELD_MAX_SAD] array, so an oversized sad_count read from the proc file causes it to walk past the array. Reject sad_count values above ELD_MAX_SAD, matching the existing per-index guard. Fixes: acb059938810 ("ALSA: hda - ELD proc interface write updates") Cc: stable@vger.kernel.org Signed-off-by: Peter Ujfalusi Link: https://patch.msgid.link/20261008085133.9528-1-peter.ujfalusi@linux.intel.com Signed-off-by: Takashi Iwai --- sound/hda/codecs/hdmi/eld.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/hda/codecs/hdmi/eld.c b/sound/hda/codecs/hdmi/eld.c index 1464fd1c675bc..fc6fe1b0873c3 100644 --- a/sound/hda/codecs/hdmi/eld.c +++ b/sound/hda/codecs/hdmi/eld.c @@ -155,9 +155,11 @@ void snd_hdmi_write_eld_info(struct hdmi_eld *eld, e->aud_synch_delay = val; else if (!strcmp(name, "speakers")) e->spk_alloc = val; - else if (!strcmp(name, "sad_count")) + else if (!strcmp(name, "sad_count")) { + if (val > ELD_MAX_SAD) + continue; e->sad_count = val; - else if (!strncmp(name, "sad", 3)) { + } else if (!strncmp(name, "sad", 3)) { sname = name + 4; n = name[3] - '0'; if (name[4] >= '0' && name[4] <= '9') { -- 2.53.0