Skip to content

kernel: backport __u128 tools/include fix - #623

Merged
ginglis13 merged 1 commit into
bottlerocket-os:developfrom
ginglis13:kernel-u128-backport
Nov 11, 2026
Merged

ginglis13 merged 1 commit into
bottlerocket-os:developfrom
ginglis13:kernel-u128-backport

Conversation

@ginglis13

Copy link
Copy Markdown
Contributor

Issue number:

Closes #622

Description of changes:

Fedora kernel-headers >= 7.3 carries a commit that re-types the arm64 UAPI sigcontext/ptrace 128-bit fields from the always-defined builtin __uint128_t to the __u128 typedef. On an aarch64 build host, the kernel's own host tools (objtool, resolve_btfids, libsubcmd) are compiled natively and pull in that header via <signal.h>, but the kernel's bundled tools/include/linux/types.h does not define __u128, so the build fails with "unknown type name '__u128'".

Backport upstream torvalds/linux@10a47fb67 to kernel-6.1, kernel-6.12, kernel-6.18, and kernel-6.18-microvm so host-tool builds work regardless of the SDK's kernel-headers version.

Testing done:

Build the kernel-kit with a freshly built SDK on aarch64 and x86_64, targeting both x86_64 and aarch64.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Fedora kernel-headers >= 7.3 carries an upstream commit which re-types
the arm64 UAPI sigcontext/ptrace 128-bit fields from the always-defined
builtin __uint128_t to the __u128 typedef. On an aarch64 build host, the
kernel's own host tools (objtool, resolve_btfids, libsubcmd) are
compiled natively and pull in that header via <signal.h>, but the
kernel's bundled tools/include/linux/types.h does not define __u128, so
the build fails with "unknown type name '__u128'".

Backport the upstream commit which adds this typedef so host-tool
builds work regardless of the SDK's kernel-headers version.

Signed-off-by: Gavin Inglis <[email protected]>
@ginglis13
ginglis13 force-pushed the kernel-u128-backport branch from 937d82b to de6a977 Compare November 11, 2026 17:55
@ginglis13

Copy link
Copy Markdown
Contributor Author

@ginglis13
ginglis13 merged commit 1c3eb15 into bottlerocket-os:develop Nov 11, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kernel-kit fails to build on aarch64 hosts with SDK 0.83.0

4 participants