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 975C2223E92 for ; Tue, 10 Dec 2024 09:31:19 +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=1733823081; cv=none; b=VHkFWEWancpqo8fnztTW270WYSwSavnURtK6GEcYSAcjInsbGsBI6FIXF1iFFCsy5EYMOBxSmF9WsNQhXzwqbKeqAaC1PzjCauF4VuQtObDEhhc+KGF4FT8ujczaW3eJ2qRtb54nho8acaJnSpJ8Z+GW9yUPBdOCR8Poy2QcviM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733823081; c=relaxed/simple; bh=8UTOUYm7SG46yRz5mQSJnZEBM8Xhke5l0GmOuIqCRKY=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=YMGA1XBjV8lm/nkO90hemJJpfr5W9wdzXMxW7bC3zucsmYX7AEvBzyJQ0qmJhCFkK4v3hf8HHYBRiFaS1AVwavj9H/L0VR0JVAxAmuHoccjrEeYP3e4R4Weh73aHFen0nLcTl8HaXJFnNpwYxT6rFqDAUcCDrncWb5rr53f1kHc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NtnQ+Zs0; 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="NtnQ+Zs0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4BFFC4CEE0; Tue, 10 Dec 2024 09:31:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1733823079; bh=8UTOUYm7SG46yRz5mQSJnZEBM8Xhke5l0GmOuIqCRKY=; h=Subject:To:Cc:From:Date:From; b=NtnQ+Zs0dRwyZFIyyfOum5O2TrmJcTA3oJTZC1oPrMznGQpMoxIfonShVgTyMgkBH DmNQ9QeEOMkmTqT6i8rrNkh2t7WP76OKU+XPB5kOt5m06q4hftC1cv1LkOHgqFLUYd f9BUkvbOHlF+XHI2IJAk3G7aJHw3ebcoeDvlqGHQ= Subject: FAILED: patch "[PATCH] modpost: Add .irqentry.text to OTHER_SECTIONS" failed to apply to 5.15-stable tree To: tglx@linutronix.de,masahiroy@kernel.org,senozhatsky@chromium.org Cc: From: Date: Tue, 10 Dec 2024 10:30:43 +0100 Message-ID: <2024121042-refined-ducky-6392@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.15-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-5.15.y git checkout FETCH_HEAD git cherry-pick -x 7912405643a14b527cd4a4f33c1d4392da900888 # git commit -s git send-email --to '' --in-reply-to '2024121042-refined-ducky-6392@gregkh' --subject-prefix 'PATCH 5.15.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 7912405643a14b527cd4a4f33c1d4392da900888 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Sun, 1 Dec 2024 12:17:30 +0100 Subject: [PATCH] modpost: Add .irqentry.text to OTHER_SECTIONS 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 diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 0584cbcdbd2d..fb787a5715f5 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -772,7 +772,7 @@ static void check_section(const char *modname, struct elf_info *elf, ".ltext", ".ltext.*" #define OTHER_TEXT_SECTIONS ".ref.text", ".head.text", ".spinlock.text", \ ".fixup", ".entry.text", ".exception.text", \ - ".coldtext", ".softirqentry.text" + ".coldtext", ".softirqentry.text", ".irqentry.text" #define ALL_TEXT_SECTIONS ".init.text", ".exit.text", \ TEXT_SECTIONS, OTHER_TEXT_SECTIONS