From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38BEAB67E; Wed, 8 Apr 2026 18:40:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775673624; cv=none; b=c0/dbc/s1YAcwH2K1sgnkjkbjP32R7Ep254f86rZfHNwfMPfAG96g8OXXJiD5zf40irHqXGaBZse2zH2fflndvbeM2G9DxQC7Dn3XuzaWPN7w3vmxg7agULctFx46ZcAHZjEnI27xf1bZFD4z77ivLmeynpoqYDUW36joWplhz0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775673624; c=relaxed/simple; bh=33RFgtVgxq7D71LqVXymWeNy6eNicyx/eNgfTZasb0g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VtWYD5ZWTQePjdZDEkXX4E4iMkcpsSVT31mVa1liwGpz+2Z5bgNLwrR9ZP20IcxR9cvtp2oDWUC9saKFY3nXMPRd9b/Li7V1jPXAqIQoPsQ8kS/QB9o8OGRzbwYsq/8HEn8q3nz7z/SpySeYBiKKUBjaltcsaKMocQeTrf1w0fs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hv8JNUtd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="hv8JNUtd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1F13C19421; Wed, 8 Apr 2026 18:40:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775673624; bh=33RFgtVgxq7D71LqVXymWeNy6eNicyx/eNgfTZasb0g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hv8JNUtd28+ftWHARgIQEOsvH5t3h2h8E+nW55MZ+N0M6SNGTuMAwrs3K1eUFxatG JnEzxe/3xKXhU37cPZboJI/FcRug01u6mbBj+7Usz8CU23CA+po9ng1Add73y2WmWP o2wBDWCcuJM8lkuqUAZ1lchUSQta1hzjkx8IIps8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Pepper Gray , Will Deacon , Sasha Levin Subject: [PATCH 6.12 026/242] arm64/scs: Fix handling of advance_loc4 Date: Wed, 8 Apr 2026 20:01:06 +0200 Message-ID: <20260408175928.048933515@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260408175927.064985309@linuxfoundation.org> References: <20260408175927.064985309@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Pepper Gray [ Upstream commit d499e9627d70b1269020d59b95ed3e18bee6b8cd ] DW_CFA_advance_loc4 is defined but no handler is implemented. Its CFA opcode defaults to EDYNSCS_INVALID_CFA_OPCODE triggering an error which wrongfully prevents modules from loading. Link: https://bugs.gentoo.org/971060 Signed-off-by: Pepper Gray Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- arch/arm64/kernel/pi/patch-scs.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/kernel/pi/patch-scs.c b/arch/arm64/kernel/pi/patch-scs.c index 49d8b40e61bc0..be7050fdfbba0 100644 --- a/arch/arm64/kernel/pi/patch-scs.c +++ b/arch/arm64/kernel/pi/patch-scs.c @@ -174,6 +174,14 @@ static int scs_handle_fde_frame(const struct eh_frame *frame, size -= 2; break; + case DW_CFA_advance_loc4: + loc += *opcode++ * code_alignment_factor; + loc += (*opcode++ << 8) * code_alignment_factor; + loc += (*opcode++ << 16) * code_alignment_factor; + loc += (*opcode++ << 24) * code_alignment_factor; + size -= 4; + break; + case DW_CFA_def_cfa: case DW_CFA_offset_extended: size = skip_xleb128(&opcode, size); -- 2.53.0