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 9AC04322C88; Fri, 1 May 2026 04:08:57 +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=1777608537; cv=none; b=lp7uutNxbO5xTkx9wOOjVSjKMJchYhYh7gEC1sXZnlRGY5CdYtiFA1wE+SO0d/OOcOpbjkQ81YLx0r8RWH9GYib3EJELb0jkE3a64S6DuFfNs3UiQ21oyrPWUO9NzFNglMNDgtqVITdvsxCKPmqUhWLtrebUNH0zyuaFxxk2mGU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777608537; c=relaxed/simple; bh=EDtmbPEuWLU6hPRugmbzubNjPHNatHodc8G92yCghyU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SAUEtZFx40RSHnGzNmWQpxGZ06pSTyCbkArrjJAZNMZH3/Cq8JpfU3nMm1gWEAh9ACJ9uRdX/rLLSBFMFsdFT3VxSr1neR/FmKOzwAmniL+IMgIlhW30hBQAgahhSD5mdaV+3iAEbcoJlY0JS9WWQbqEIDVWLu9ulAqA0bb9gQg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DwrgLeB/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DwrgLeB/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0FB13C2BCB7; Fri, 1 May 2026 04:08:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777608537; bh=EDtmbPEuWLU6hPRugmbzubNjPHNatHodc8G92yCghyU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DwrgLeB/GQssweY1OnM/53JyxBSjI6RVMzj4r972uDlK2psn5AQoUDuzsPWkV6VaK y0zu+unBqOuX+sw7V+zQIH+5Vh+Inj3+9FzJot1N8T3TZ0PvavCZ3IzzK/xO+X4bY+ YanT3iU/mmebqgIfMObrUXE9gBZ4MQzA9bOlyLwQx5vqHtvB5mT6MyY7xgTuyVwQdF wSo08tjqdODsjSgAIsKRvFVCh4hHIckTCvaYSDFyHau/PsYBp+cxrn7Jp9aiVRG/na vvPDBKTewbfYOUWd7biFYJQdKdyaJQ3gkcD+BwqaxBUY3o878tocLqJsI76lNikE9/ TgYIx0uFNuTZQ== From: Josh Poimboeuf To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, Peter Zijlstra , Joe Lawrence , Song Liu , Miroslav Benes , Petr Mladek Subject: [PATCH v2 15/53] objtool/klp: Fix kCFI trap handling Date: Thu, 30 Apr 2026 21:08:03 -0700 Message-ID: X-Mailer: git-send-email 2.53.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: live-patching@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit .kcfi_traps contains references to kCFI trap instruction locations. When a KCFI type check fails at an indirect call, the trap handler looks up the faulting address in this section. Add it to the special sections list so the entries get extracted for the changed functions they reference. Acked-by: Song Liu Reviewed-by: Miroslav Benes Signed-off-by: Josh Poimboeuf --- tools/objtool/klp-diff.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/objtool/klp-diff.c b/tools/objtool/klp-diff.c index 42970b38728f..dd0e51dfc621 100644 --- a/tools/objtool/klp-diff.c +++ b/tools/objtool/klp-diff.c @@ -291,6 +291,7 @@ static bool is_special_section(struct section *sec) { static const char * const specials[] = { ".altinstructions", + ".kcfi_traps", ".smp_locks", "__bug_table", "__ex_table", -- 2.53.0