From patchwork Thu Jun 1 12:09:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 13263662 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 41B3EC7EE2F for ; Thu, 1 Jun 2023 12:30:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=9oIcgFl8eZHFCg2ZtJs1+LRET4qTB5X30MrnSBV5SYY=; b=kLkrwFNxO/V0eO pbTXp6eXSOXHh8wAgiYLx1Q6kwy8ssPXIFB2tiqToZlZF1a4RaF1ErAsEJ8ixRatklP2+6gaRq0kB Xz+iFf/bsMh0yBbU1ABhEDf3w/f+5ugFgVxcWnmfCQMCJ9qfGcy+W1oJUiiyaECKYF1+XYHUi+omE 9TwA2S7B9hqVuf8LTVqW0pqs0IzO1qxuMcbuu0P2GYERcUYtW89OmDVXeUTEvvKrYSQsytReJbm+7 ugsCIKiW5eI0ftZtYcJw+2FugSMZOpPhkqLFTBCoXONJy+RS1sup4jpd1KkWAgcDDXpzekAF9OffU 7T5s1liLp/85aSZOyK4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q4hRJ-003Wqw-0D; Thu, 01 Jun 2023 12:30:01 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q4h8H-003NvY-0s for linux-arm-kernel@lists.infradead.org; Thu, 01 Jun 2023 12:10:22 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 79289618D1; Thu, 1 Jun 2023 12:10:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6A98C433EF; Thu, 1 Jun 2023 12:10:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685621419; bh=SvRJEGwApsVQ6jziK8jAnPbJhsGPVsEeuQqaBcetPfY=; h=From:To:Cc:Subject:Date:From; b=jGSgR900uLo52Hj0tg3P9s7X3GGyPr/QIe4osZQ+sieqMxFDk/6cyQqcV6RX0kOGS Q/mmFFu7cR6J1UpF7/DoKEpsJy4zPAmIZwy2SGCFyAc+JxEFFMiy18KIetb1AMc9GN AQC+9JL50GXK/o5m76U5eweRqHGisk+ShS2B682KS3/MBsrS4zyJ70FA2jgYmuXO2x Gd/gLbWXlq3fhexOfG5ZNo7MiihngDRY3TZSDXNzUxSSgRnGth1OggLdB/Rf+0et/m u567reb/qlpSnPERExlhmKT/cp5VeImOhRo5AEmhfaKBf2TNgY45GHxNiqa74uU3l6 vrnkNR6qQpo6A== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Ard Biesheuvel , linux-arm-kernel@lists.infradead.org, Russell King , Masahiro Yamada , "David A. Long" , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Russell King , Rusty Russell , Sam Ravnborg , Tony Lindgren Subject: [PATCH 0/7] modpost: fix section mismatch detection for ARM Date: Thu, 1 Jun 2023 21:09:54 +0900 Message-Id: <20230601121001.1071533-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230601_051021_373615_236163EA X-CRM114-Status: UNSURE ( 9.23 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org addend_arm_rel() is completely, entirely bogus. Fix the code, and also catch more section mismatches. I confirmed this series is cleanly applicable to linux-next 20230601. Masahiro Yamada (7): modpost: fix section mismatch message for R_ARM_ABS32 modpost: fix section mismatch message for R_ARM_{PC24,CALL,JUMP24} modpost: detect section mismatch for R_ARM_{MOVW_ABS_NC,MOVT_ABS} modpost: refactor find_fromsym() and find_tosym() modpost: detect section mismatch for R_ARM_THM_{MOVW_ABS_NC,MOVT_ABS} modpost: fix section_mismatch message for R_ARM_THM_{CALL,JUMP24,JUMP19} modpost: detect section mismatch for R_ARM_REL32 scripts/mod/modpost.c | 193 ++++++++++++++++++++++++++++-------------- 1 file changed, 129 insertions(+), 64 deletions(-)