Skip to content

kernel-aurora: configure with the kernel's aurora_defconfig - #426

Closed
RyanTheTide wants to merge 1 commit into
mainfrom
sweep-kcmd/config
Closed

RyanTheTide wants to merge 1 commit into
mainfrom
sweep-kcmd/config

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

kernel-aurora now configures the kernel with the kernel source's own make aurora_defconfig (aurora-silicon/linux#2292). The packaged base (packages/kernel-aurora/config, 9,317 lines) and the SELinux overlay (fedora.config) are removed. SELinux and the deferred fbcon takeover are in the shared base.

  • %build: make LLVM=1 ... aurora_defconfig, then validate-config.py aurora-base.config asahi.config .config. The scripts/config line is gone because LOCALVERSION, LOCALVERSION_AUTO and the trusted/revocation keys already have those values in the shared config. The release name still comes from make LOCALVERSION=.
  • Tests no longer read the removed config. The options they checked (USB4_APPLE_SOC, ARM64_CTXR_EXECMEM) come from the kernel's asahi.config, and the build validates them. test_kernel_config now requires the spec to use aurora_defconfig and to carry no base, overlay or scripts/config.

Option changes compared with this package's previous resolution (same source 0abc2f385e54): KASLR, FORTIFY_SOURCE, hardened usercopy, INIT_STACK_ALL_ZERO, LEGACY_TIOCSTI off, unprivileged BPF off, USERFAULTFD, strict IOMMU, PREEMPT_LAZY instead of full PREEMPT, TYPEC_TPS6598X_DEBUG_COMMANDS=y, and the fleet's wider module set. The full per-option table is in the linux PR.

python3 -m pytest tests/: 444 passed. A real RPM build was not run, because the spec only works with a kernel pin that has aurora_defconfig.

Order: depends on aurora-silicon/linux#2292. Land it together with the first kernel-aurora pin bump that includes #2292; this PR does not change the pin. alarm-aurora and nixos-aurora get the same change.

CI: the kernel-aurora package build fails on this PR until the pin includes linux#2292, because the pinned kernel source has no aurora_defconfig target yet. That is expected; it goes green with the pin bump this PR lands with. The same config was built and booted from the kernel side as 7.3.0-aurora-sweepk2 on a MacBook Neo (T8140), J616s (T6040), M1 Pro (T6000) and M2 (T8112); see linux#2292.

The kernel source now carries the one configuration every Aurora build
uses (aurora-silicon/linux#2292): make aurora_defconfig merges
asahi.config over arch/arm64/configs/aurora-base.config. Use it as is
and drop the packaged base (config) and the SELinux overlay
(fedora.config); SELinux and the deferred fbcon takeover are in the
shared base. The build still checks that every request of both
fragments survives resolution.

The resolved options change from this package's previous base: KASLR,
FORTIFY_SOURCE, hardened usercopy, zero-initialised stacks, unprivileged
BPF off and USERFAULTFD are now on, and the kernel is the one the fleet
tests on hardware.

Needs a kernel pin that includes linux#2292; land it with that pin bump.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Blockers: 3.

  1. Commit df11ce2 has no Signed-off-by and carries a Co-Authored-By: Claude Opus 5.5 trailer. It needs a human sign-off and no agent trailer; keep the Assisted-by line in the PR body only.
  2. The shipped kernel gains a lab-only interface. The configuration this switches to sets CONFIG_TYPEC_TPS6598X_DEBUG_COMMANDS=y (linux#2292 head 36faebf3, arch/arm64/configs/asahi.config:190). That adds a debugfs usb/tipd/<port>/command that sends VDMs (reboot, DFU, serial, Debug USB) to whatever Mac is on the cable, and it is not set in today's resolution. That belongs in a lab config fragment, not in the configuration every user kernel is built from. Drop it from the shared fragment, or keep it out of kernel-aurora, before this lands.
  3. The PR cannot build at its pin and describes a stale base. kernel-aurora.spec:1 still pins 9125b314, which has no aurora_defconfig (and no aurora-base.config); linux#2292 is still an open draft and not in integration/aurora. The option diff in the body is against 0abc2f385e54, not the current pin. CI does not show the expected failure either: the rpm jobs are skipped on this PR, so nothing has built kernel-aurora with this spec. Land this only together with the pin bump. Redo the option diff against that pin, and include a real rpmbuild of kernel-aurora in the PR, with validate-config.py and the ctxr_execmem check passing.

Also check the full diff, not only the listed options: the shared base adds CONFIG_KGDB=y and CONFIG_KGDB_TESTS=y, which today's resolution leaves off. These are not in the body's list. If they are intended, say why a distribution kernel ships them.

HW row: the packaged kernel-aurora RPM built from the bumped pin, installed via dnf and booted on default cmdline on the Neo (T8140), M1 Pro (T6000), M2 (T8112) and J616s (T6041): 0 failed units, 0 AVC, no new kernel errors vs the current package, and /usr/lib/modules/*/config equal to make aurora_defconfig at that pin.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

The kernel change this depends on, aurora-silicon/linux#2292, was closed and replaced by aurora-silicon/linux#2803 (still a draft), so the dependency, the land-together pin and the option diff in the description need to point at that one. The three earlier blockers still stand at df11ce2: re-commit on a replacement branch with a human Signed-off-by only (no Co-Authored-By), #2803 still sets CONFIG_TYPEC_TPS6598X_DEBUG_COMMANDS=y (asahi.config:191) and CONFIG_KGDB/CONFIG_KGDB_TESTS (aurora-base.config:5504-5505), and the rpm (44/45, kernel-aurora) jobs now fail at the 9125b314 pin until it is bumped to a kernel carrying #2803.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Closing. The kernel-side change this was built for landed differently: aurora-silicon/linux#3064 put aurora_defconfig on linux main, and aurora-silicon/linux#2803 (the dependency named here) was closed as superseded by it. The plan for this PR was to switch only if aurora_defconfig resolved to the configuration we ship; it does not.

Config diff at the current pin (linux 1675a623, kernel-aurora 7.3.0-53), LLVM=1 olddefconfig on both sides: packaged config + asahi.config + fedora.config (today's %prep) against make aurora_defconfig + asahi.config. scripts/diffconfig: 114 options removed, 4412 added, 2367 changed. Among them: ACPI on, 20 non-Apple platforms on (ARCH_QCOM, ARCH_TEGRA, ARCH_ROCKCHIP, ...), KGDB and KGDB_TESTS on, about 3800 more modules. SELinux, deferred fbcon takeover and CTXR execmem resolve the same on both sides. Switching every Fedora user to that is a different change from this one, and the packaged config has had seven releases since (-47 .. -53) that this branch would drop.

If the distro kernel should move to aurora_defconfig, it needs a fresh PR against the current spec with a reviewed option list (or an Apple-only aurora_defconfig in linux first). The same reasoning applies to the twins aurora-silicon/alarm-aurora#350 and aurora-silicon/nixos-aurora#332.

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.

1 participant