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 7BF5F223E75; Thu, 12 Dec 2024 17:35:51 +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=1734024951; cv=none; b=BToLX6T+KaULQ1DiGGJUTK63Tgyyy4zn13Bzy0Jfujg0hAUhGDIro5Fq6OUg7l/Ew2UIip6Oxjymy1y4HGsWfha353l44UedZkjJrbNZJuaE2S7pXgm06mTkIiXvLtfZbhIPlIdKbEgSh3Pwh9/bemyWfTuyITLYjeIwIruJFpU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734024951; c=relaxed/simple; bh=gb8TFwQSaN0DmlD9dARuQqg2+nZyX3AhHRB/ppjudG8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=b71cTFnlrfLQtAE4GGpBTjizN6E0DHVPtr7COXzlcbL2bCHZjJTP5QzThHVfAcueHD62Q52l6P1mTUQN9EAbDELty0mNbvdmp7Zv9/D4KO/F+7L7jQ6hb3BYQtYqfx40jk43YXlBMTAh7oaXBWYdy4LAGtpAlu1wOmKsJnntgzk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AY06OdbZ; 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="AY06OdbZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7326C4CECE; Thu, 12 Dec 2024 17:35:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1734024951; bh=gb8TFwQSaN0DmlD9dARuQqg2+nZyX3AhHRB/ppjudG8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AY06OdbZ5cr+ZZgmc8BiF7iXr3oYTnSewG96+P0rGssd1vtXVaauBRlAIJksg2SaV LDJ97uETbHsmRsq9oiI/BP1lKTSN69YZJjpbRK8etnjs+f58ymJjZey5qTZ3vd98lB 1puhxwdvm+mGIQeF9C1a7eSEG+WfiXEwdIHvToVs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sergey Senozhatsky , Thomas Gleixner , Masahiro Yamada Subject: [PATCH 5.10 451/459] modpost: Add .irqentry.text to OTHER_SECTIONS Date: Thu, 12 Dec 2024 16:03:09 +0100 Message-ID: <20241212144311.588457580@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241212144253.511169641@linuxfoundation.org> References: <20241212144253.511169641@linuxfoundation.org> User-Agent: quilt/0.67 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 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Gleixner commit 7912405643a14b527cd4a4f33c1d4392da900888 upstream. The compiler can fully inline the actual handler function of an interrupt entry into the .irqentry.text entry point. If such a function contains an access which has an exception table entry, modpost complains about a section mismatch: WARNING: vmlinux.o(__ex_table+0x447c): Section mismatch in reference ... The relocation at __ex_table+0x447c references section ".irqentry.text" which is not in the list of authorized sections. Add .irqentry.text to OTHER_SECTIONS to cure the issue. Reported-by: Sergey Senozhatsky Signed-off-by: Thomas Gleixner Cc: stable@vger.kernel.org # needed for linux-5.4-y Link: https://lore.kernel.org/all/20241128111844.GE10431@google.com/ Signed-off-by: Masahiro Yamada Signed-off-by: Sergey Senozhatsky Signed-off-by: Greg Kroah-Hartman --- scripts/mod/modpost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -951,7 +951,7 @@ static void check_section(const char *mo ".kprobes.text", ".cpuidle.text", ".noinstr.text" #define OTHER_TEXT_SECTIONS ".ref.text", ".head.text", ".spinlock.text", \ ".fixup", ".entry.text", ".exception.text", ".text.*", \ - ".coldtext" + ".coldtext", ".irqentry.text" #define INIT_SECTIONS ".init.*" #define MEM_INIT_SECTIONS ".meminit.*"