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 B18A82135C1; Thu, 12 Dec 2024 15:40:01 +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=1734018001; cv=none; b=Pdb/HvG+OnActrN0v+7+kPkpkzewNs5U0/6tIlTaPic63rdFS6xe2Xxg3JXxv37J/3BQUKlkz62uXPhezYkKRaw8l595AXiP6IWegCIfMDApy/DWSfR0eJV4uZeQ6MpAI3WKUeKZoankkBiZPNUsnN05eiriyc0cYjhBUdzxsyw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734018001; c=relaxed/simple; bh=Zuz4yx29RPj1FWd1lWezLYYwP1Ms9v2cpGGSkwaXVyA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mX371LfhqHmT+BaSOefqLM0Wg8wyUrN6n/BScZd7cEGXmWFU/pOJ95Lji/pB5Wj5fjUlUM3pq2DzAq+txn95PGdXr2hLejmTJCA4tJjWON5x++kocMD+LDXRhIbz/i+JAoPsLJXgem6vbqyPvHfFTnpJY8BlhTPcjTVuAGMcDaQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=r8gyLQSE; 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="r8gyLQSE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17EBFC4CED0; Thu, 12 Dec 2024 15:40:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1734018001; bh=Zuz4yx29RPj1FWd1lWezLYYwP1Ms9v2cpGGSkwaXVyA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r8gyLQSEHnynCanavkvU7WgouDmDeDCIRWtuy5oiG4sX9Zbx5upr/6U9NFVTht4Im 53Us4ZSqeH9TmzPlZE5Ci7wA5+4riyJBOMHYTC53VQ24CLlUDFNsLC3vllkcAHqttq 3FszA+t5M+JIrrv/JQOc8h1PZIlMHeJsLKVauLZk= 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 6.6 170/356] modpost: Add .irqentry.text to OTHER_SECTIONS Date: Thu, 12 Dec 2024 15:58:09 +0100 Message-ID: <20241212144251.352410838@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241212144244.601729511@linuxfoundation.org> References: <20241212144244.601729511@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 6.6-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: 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 @@ -808,7 +808,7 @@ static void check_section(const char *mo ".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