From nobody Sun Feb 8 13:40:01 2026 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 DD13D2AF1B; Wed, 28 Jan 2026 01:12:23 +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=1769562743; cv=none; b=Uy+Vd/Smloco0Z1Y5n4bd3E147wItLyXJTPi2jtTlGj0lM3uf86BMfdPxGFovtFjFONG5e9At3Aoh69BpUn7pZ/wG5O1c6ZuyPGffJ6gbmphIudQAuArXWjUX+ligsY6wrGQlEn2g7EeRycGgN3cqLXN2qjyc65b3TJF2rS9eVk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769562743; c=relaxed/simple; bh=UEJXIZMsH10Cg+xO60A3AVRA7J3r+cgOz9a+hlXOqnw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ppveHKukVwlie696isxkWFVhCb5LSgX9e9Y39VE4LoNv4R+6QMObFwybBsDoIWSUEj3E1j4nHy21aFoGfw4aBugexhEMbtEhtOHSZJk0HdHhXiRw0OLdHEMRAhnzYR3gMSxTTU9EoL2LuGTh7HFRZBhLxA5QMXHal0BeCi4oa6Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=skFDH2fo; 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="skFDH2fo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27C0DC116C6; Wed, 28 Jan 2026 01:12:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769562743; bh=UEJXIZMsH10Cg+xO60A3AVRA7J3r+cgOz9a+hlXOqnw=; h=From:To:Cc:Subject:Date:From; b=skFDH2fo2TAJ2bfu20lEP4/A6gd7jt+wdz8vnHaecc/GPB6GJrBli5wE3PullIP8M DpOSVtJApa39av36iOwFpgi//856h48IlsnJe6bsJi3Z+xmw7uiJ6foB7KJm8cKJ9o a5skNv9ZDi18Q0GjKFr4I7vCeJDZwKtHTdGu3XUgdL/LU+wXqrH+CvVuWXsu6vjoxK EihXpQHVHadweD4J+l2WgvpVxmeCco0a3tdosDB5L56YNZotatcLOFfgY6Wt4v66jU DEB9Ssv0M/3yKB1o6xZVAqRwA4yf/m5cGMJCGLZtjFuBhjKPggCEubuP0qwQbwaJgu f91K6kdl//7iw== From: Josh Poimboeuf To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, Breno Leitao , Puranjay Mohan , Peter Zijlstra , Song Liu Subject: [PATCH] livepatch/klp-build: Require Clang assembler >= 20 Date: Tue, 27 Jan 2026 17:12:05 -0800 Message-ID: <957fd52e375d0e2cfa3ac729160da995084a7f5e.1769562556.git.jpoimboe@kernel.org> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Some special sections specify their ELF section entsize, for example: .pushsection section, "M", @progbits, 8 The entsize (8 in this example) is needed by objtool klp-diff for extracting individual entries. Clang assembler versions older than 20 silently ignore the above construct and set entsize to 0, resulting in the following error: .discard.annotate_data: missing special section entsize or annotations Add a klp-build check to prevent the use of Clang assembler versions prior to 20. Fixes: 24ebfcd65a87 ("livepatch/klp-build: Introduce klp-build script for g= enerating livepatch modules") Reported-by: Song Liu Signed-off-by: Josh Poimboeuf Acked-by: Song Liu --- For tip/objtool/urgent. scripts/livepatch/klp-build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/livepatch/klp-build b/scripts/livepatch/klp-build index a73515a82272..809e198a561d 100755 --- a/scripts/livepatch/klp-build +++ b/scripts/livepatch/klp-build @@ -249,6 +249,10 @@ validate_config() { [[ -v CONFIG_GCC_PLUGIN_RANDSTRUCT ]] && \ die "kernel option 'CONFIG_GCC_PLUGIN_RANDSTRUCT' not supported" =20 + [[ -v CONFIG_AS_IS_LLVM ]] && \ + [[ "$CONFIG_AS_VERSION" -lt 200000 ]] && \ + die "Clang assembler version < 20 not supported" + return 0 } =20 --=20 2.52.0