From nobody Sat Jun 13 22:12:29 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 2C7B03845B3; Tue, 5 May 2026 10:56:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777978569; cv=none; b=HSn7yheTRi87TaWLlWOzodfzHMhnwNp82YYjAO7Iwg7AddJTYtq9lOagwv/6R5KAYHFNNLpi/FshyiB7YbIhS+6VoRmiYHA0+zFp8co1iysuvfxl1XREMT0jZJdhWfbRiE+o0n3AVPC1bjX3+2yKREGO+4OeKzLpFpQGpB74tpY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777978569; c=relaxed/simple; bh=bXmtqme1EJ0qVOZ0WISTjjwOqlAx7vLyn5ikM1u4A6I=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=Z8hDWmd4WelrpAmyobDijD8tam1zLg/VDU5iNvcBXyeCw631yRn4xOdWTsqxqzGUkc2lrinp47fxlaPQqVGxGosAXfoMDl3R+aodnrP+FWwie5iTHA37T3Qfekf10YAPVErdU39n1/W3tSfFDNxGkMA2s/fbbZdsXTEguX+RNf4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=aFO+h55z; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Sw3p0KOq; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="aFO+h55z"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Sw3p0KOq" Date: Tue, 05 May 2026 10:56:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1777978564; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iVFcnBMhOkg+mwruMpsPJOpEyNlXKULVlF0+0HB8H5c=; b=aFO+h55zLWC+IafvTAjOHhV0QOR2GZQV2JfrfnGfAeTFw/h4RBTugZUVryHhhj4JOw2xPV CQPyupYB78V9D8QRelBjjELxFp2PFs7MohtpPrSvTrBI1Oq1FfrlnX51DDAFwuCocRTM86 lEoFj/bvPFRtPm2xUI7iL1yKcMxU4Da9Bu8udZXUrYGmh3PrhfWnmCeSVACY46/pGw9n44 73Bdx8LCCXTQe6bOHbT+8cDF+vWTBnrFE/IiTICnQebIQ1mdNtkSSHwJ+NwzJe8iv9L6F3 ETO6HTrm918OWX3nJaTkb7FVWuNpt3O+p33n/e00sBi6i1/wjxgxs5VDGMd5PA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1777978564; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iVFcnBMhOkg+mwruMpsPJOpEyNlXKULVlF0+0HB8H5c=; b=Sw3p0KOq0kNiaJ+E9eSbn9k3ElfijUWfrClWV5vInT/l34Nglznl6DZ/xH3LYBsheUZ9We RGXKOPREJAIlLZBw== From: "tip-bot2 for Josh Poimboeuf" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] objtool/klp: Remove "objtool --checksum" Cc: Song Liu , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177797856320.424702.12285330550632894785.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the objtool/core branch of tip: Commit-ID: 3b8e56b86faa3e44745aa764c2e1fd9dbbd16104 Gitweb: https://git.kernel.org/tip/3b8e56b86faa3e44745aa764c2e1fd9db= bd16104 Author: Josh Poimboeuf AuthorDate: Fri, 03 Apr 2026 13:10:29 -07:00 Committer: Josh Poimboeuf CommitterDate: Mon, 04 May 2026 21:16:05 -07:00 objtool/klp: Remove "objtool --checksum" The checksum functionality has been moved to "objtool klp checksum" which is now used by klp-build. Remove the now-dead --checksum and --debug-checksum options from the default objtool command. Acked-by: Song Liu Signed-off-by: Josh Poimboeuf --- scripts/livepatch/klp-build | 3 +++ tools/objtool/builtin-check.c | 17 +---------------- tools/objtool/check.c | 10 ---------- 3 files changed, 4 insertions(+), 26 deletions(-) diff --git a/scripts/livepatch/klp-build b/scripts/livepatch/klp-build index 6103345..c1475c0 100755 --- a/scripts/livepatch/klp-build +++ b/scripts/livepatch/klp-build @@ -275,6 +275,9 @@ validate_config() { [[ "$CONFIG_AS_VERSION" -lt 200000 ]] && \ die "Clang assembler version < 20 not supported" =20 + [[ -x "$OBJTOOL" ]] && "$OBJTOOL" klp 2>&1 | command grep -q "not impleme= nted" && \ + die "objtool not built with KLP support; install xxhash-devel/libxxhash-= dev (version >=3D 0.8) and recompile" + return 0 } =20 diff --git a/tools/objtool/builtin-check.c b/tools/objtool/builtin-check.c index b780df5..ec7f10a 100644 --- a/tools/objtool/builtin-check.c +++ b/tools/objtool/builtin-check.c @@ -73,7 +73,6 @@ static int parse_hacks(const struct option *opt, const ch= ar *str, int unset) =20 static const struct option check_options[] =3D { OPT_GROUP("Actions:"), - OPT_BOOLEAN(0, "checksum", &opts.checksum, "generate per-function check= sums"), OPT_BOOLEAN(0, "cfi", &opts.cfi, "annotate kernel control flow integrit= y (kCFI) function preambles"), OPT_STRING_OPTARG('d', "disas", &opts.disas, "function-pattern", "disass= emble functions", "*"), OPT_CALLBACK_OPTARG('h', "hacks", NULL, NULL, "jump_label,noinstr,skylake= ", "patch toolchain bugs/limitations", parse_hacks), @@ -95,7 +94,6 @@ static const struct option check_options[] =3D { OPT_GROUP("Options:"), OPT_BOOLEAN(0, "backtrace", &opts.backtrace, "unwind on error"), OPT_BOOLEAN(0, "backup", &opts.backup, "create backup (.orig) file on w= arning/error"), - OPT_STRING(0, "debug-checksum", &opts.debug_checksum, "funcs", "enable= checksum debug output"), OPT_BOOLEAN(0, "dry-run", &opts.dryrun, "don't write modifications"), OPT_BOOLEAN(0, "link", &opts.link, "object is a linked object"), OPT_BOOLEAN(0, "module", &opts.module, "object is part of a kernel modu= le"), @@ -165,20 +163,7 @@ static bool opts_valid(void) return false; } =20 -#ifndef BUILD_KLP - if (opts.checksum) { - ERROR("--checksum not supported; install xxhash-devel/libxxhash-dev (ver= sion >=3D 0.8) and recompile"); - return false; - } -#endif - - if (opts.debug_checksum && !opts.checksum) { - ERROR("--debug-checksum requires --checksum"); - return false; - } - - if (opts.checksum || - opts.disas || + if (opts.disas || opts.hack_jump_label || opts.hack_noinstr || opts.ibt || diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 3e5d335..ae047be 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -18,7 +18,6 @@ #include #include #include -#include #include =20 #include @@ -4946,15 +4945,6 @@ int check(struct objtool_file *file) if (opts.noabs) warnings +=3D check_abs_references(file); =20 - if (opts.checksum) { - ret =3D calculate_checksums(file); - if (ret) - goto out; - ret =3D create_sym_checksum_section(file); - if (ret) - goto out; - } - if (opts.orc && nr_insns) { ret =3D orc_create(file); if (ret)