Repository navigation
kboot: reserve an AOP's firmware pages in Linux's RAM when its DART is locked, so Linux cannot reuse pages the AOP still uses - #474
Conversation
|
Review at adaf5a5. Thanks, the shape looks right to me: the selector is the DART's lock state, there's no board or SoC test, and a running AOP whose pages can't be reserved stops the boot instead of going on. A few points:
Rows still owed at this head (all reach the new branch): J700 (T8140) boot, AOP bound, no new DART faults; J714s, K114c, K116s (T6050, AOP enabled) the same. One forced-failure row (a tree with no space left) would show the running-AOP bail message, which is the safe outcome. Macs with an unlocked AOP DART, and T8132, don't reach this code. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR review at adaf5a5fe0f61ea195eb46f46a206f08e8ce2ed1 (base main, 15/15 CI checks SUCCESS).
Strengths
- §1 Code shape: Keyed strictly on
dart_t8110_is_locked()rather than any board, chip, or firmware-version check. - §2 Production-ready, no hacks: Pass. No cmdline parameters, sleeps, or lab-only workarounds.
- §4 Clean-room & attribution: Pass. Both commits (
4205248e1d89,adaf5a5fe0f6) carry human author/committerJeff Queisser <funkzy@users.noreply.github.com>, humanSigned-off-by:only, and zero AI commit trailers; PR body ends withAssisted-by:. - §6 Naming: Pass.
Blocking Findings
- §3 Safety —
dt_reserve_aop_os_ram()trusts ADTr.physinstead of validating/translating through the live locked DART and lacks bounds/alignment guards (src/kboot.c:9916-9939):- On a locked DART, the live hardware translations are in the DART's page tables. In this same file,
dt_reserve_m5_display_segments()(src/kboot.c:7834-7890) explicitly translates each segment'sremapIOVA through the locked DART (dt_init_dart_by_node()+dart_translate()) because on M5 the ADTphysfor__OS_LOGcan diverge from the active DART translation. Either translate each segment'sremapthrough the locked DART (failing closed if unmapped/out of DRAM) or verify from live J775D telemetry thatr.phys == dart_translate(r.remap)across all segments. - Missing arithmetic/bounds hardening in
dt_reserve_aop_os_ram():r.phys + size <= lo(:9928) does not guard againstu64wrap (r.phys + size < r.phys), which would silently skip a wrapping segment.r.physis neither checked forSZ_16Kalignment nor rounded down before callingdt_get_or_add_reserved_mem(), so an unalignedr.physcan leave the trailing page unreserved whenr.sizespans a 16 KiB boundary.- No segment-count cap (
len / sizeof(*seg)), unlikedt_reserve_m5_display_segments()(cap 64). dt_get_or_add_reserved_mem()(src/kboot.c:3942-3959) silently overwritesregandcompatibleif a/reserved-memory/asc-firmware@<addr>node already exists from another pass; check for existing/overlapping reservations rather than clobbering.
- On a locked DART, the live hardware translations are in the DART's page tables. In this same file,
- §3 Safety / Design —
fdt_disable_node()no-space fallback (src/fdt_disable.c:46-56,src/kboot.c:9990-10002):- When the tree has no free space and
statusis"ok"or absent,fdt_disable_node()NOPscompatiblewhile leavingstatusactive, so any consumer referencing the AOP node by phandle (of_device_is_available()) still sees it as enabled. - Clarify whether any Mac actually reaches the "halted AOP behind a locked DART" branch (where iBoot locked the AOP DART without starting the AOP). If no Mac reaches it, a direct
bail()is simpler and avoids dead fallback logic; if one does, name it and verify nothing else probes/consumes the AOP node or its children whencompatibleis NOP'd. - Minor in
src/fdt_disable.c:49-54: readingstatusafterfdt_setprop_string()fails (rather than caching the pointer before a mutating libfdt call) avoids relying on libfdt leaving offsets untouched on error.
- When the tree has no free space and
- §5 Evidence (and §1 multi-Mac proof) — owed before merge:
- The J775D table ran only as a read-only one-shot boot on the 27.2 stub (on an older base
f1daef3e) and shows identical before/after functional columns without confirming the reservation in/sys/kernel/debug/memblock/reserved(or/proc/iomem) matches the live AOP DART translation or surviving memory pressure (stress-ng --vm) with 0 DART faults. - Still owed (per
## Still to runand §1/§5):- J775D on the default 27.0 stub from installed Stage 2 with
/sys/kernel/debug/memblock/reserved(or/proc/iomem) + memory-pressure verification and 0 DART faults. - At least one additional Mac entering the locked-DART branch: J700 (T8140) and/or T6050 (J714s / K114c / K116s with AOP enabled).
- Host unit test coverage exercising
dt_reserve_aop_os_ram()(including wrap, unalignedr.phys, partial overlap, and locked-DART failure handling), sincetests/run-fdt-disable.shcurrently does not test the AOP path.
- J775D on the default 27.0 stub from installed Stage 2 with
- The J775D table ran only as a read-only one-shot boot on the 27.2 stub (on an older base
Checklist Summary
- §1 No model gating: Pass in code; multi-Mac proof (J700 / T6050) still owed.
- §2 Production-ready, no hacks: Pass.
- §3 Safety: Request changes — locked-DART translation verification, wrap/alignment/cap/overlap guards in
dt_reserve_aop_os_ram(), and clarify halted-AOP-on-locked-DART fallback. - §4 Clean-room & attribution: Pass.
- §5 Evidence: Request changes — J775D reserved-memblock + memory-pressure + 27.0 installed Stage 2 row, J700/T6050 rows, and AOP path host test owed.
- §6 Naming: Pass.
Assisted-by: LLM (Gemini 4 Neon)
…tep can refuse a coprocessor even in a full tree Disabling a node rewrites its status from "okay" to "disabled", which grows the tree. When a step must refuse a coprocessor because the tree is out of space for what it would add, that edit fails for the same reason, and the step can only stop the boot. Add fdt_disable_node(): it sets the status to "disabled"; if that cannot grow the tree, it re-reads status and overwrites an "okay" status in place with "fail" (the same length; the devicetree specification's not-operational status, which Linux neither probes nor treats as available); otherwise it turns the whole node (including its status, phandle and children) into NOPs with fdt_nop_node(), the same zero-space fallback kboot_gpu_m4.c already uses, so no driver probes it and no phandle consumer sees it as available. Neither fallback needs space. tests/run-fdt-disable.sh checks it on the host and runs in CI: with room, and with no free space at all on an "okay", an "ok" and a status-less node with phandles and a child node. Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
…its DART is locked, so the OS cannot reuse the log the firmware writes Since e41005d the AOP firmware-segment path adds nothing for a locked AOP DART: Linux keeps the firmware's own mappings there, and adding the segments' device addresses would make its default domain fail with EBUSY. That also leaves the RAM under any segment inside the OS's memory unreserved. On the Mac Studio (J775D) the AOP's log segment lies there, at an address that changes from boot to boot, and the firmware writes it once the OS starts the AOP. On a locked DART, reserve each segment that lies in the OS's memory as RAM only (no-map, no device address, not in the AOP's memory-region), under the node names the segment reservation uses. Each segment is checked for u64 wrap before rounding out to 16 KiB pages (as the T8152 display path does) and checked against the ADT's DRAM bounds; a segment list longer than 64 entries is refused. Reservations go through a non-bailing helper, dt_try_reserve_ram_mem(), instead of dt_get_or_add_reserved_mem() (which calls bail() on FDT errors and overwrites same-name nodes): an existing no-map reservation that already covers the range is kept untouched, any conflicting or non-no-map overlap fails closed, and a mid-creation out-of-space error removes the partial subnode with fdt_nop_node(). If reservation fails (including when the tree is out of space), a halted AOP is kept off with fdt_disable_node(), which needs no space: the OS then never starts it, and its firmware never writes those pages, so the boot goes on. A running AOP writes them whatever the tree says, and a disabled node would not stop it, so then the boot stops rather than hand the OS pages the firmware is writing. The pages come from the ADT's phys field: on the J775D the locked tables do not map the log at handoff, so no translation describes it. On the J775D the AOP waits halted at handoff, which is the case fdt_disable_node() covers. tests/run-aop-os-ram.sh checks the production reservation and failure paths from src/kboot.c against src/fdt_disable.c and libfdt on the host and runs in CI (aligned and unaligned 16 KiB rounding, wrap guards, count cap, DRAM bounds, existing no-map coverage vs overlap conflicts, and packed/tight FDT handling for halted and running AOPs). Nothing changes for an unlocked DART or for a segment outside the OS's memory. The locked-DART path runs wherever the AOP's DART is locked at handoff: the J700 (T8140), whose AOP DART probe failed with EBUSY before e41005d, and the T6050 boards that boot their AOP. Signed-off-by: Jeff Queisser <funkzy@users.noreply.github.com>
adaf5a5 to
b21dcda
Compare
|
Thanks for the thorough review. Rebased onto main
Rows on a J700 (running AOP at handoff) and a T6050 laptop with AOP enabled (J714s / K114c / K116s) at this head would Assisted-by: LLM (Gemini:Neon) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR re-review at b21dcdadd937 (base main, 11/15 CI checks SUCCESS, 1 FAILURE, 3 CANCELLED).
Stage 1 Impact
- Touches Stage 1: Yes. Adds
fdt_disable.oto unconditionalOBJECTSinMakefileand modifiessrc/kboot.c(gcc stage1-dev-auditheadroom is584 B, warning< 8192 B; all 5stage1-sizejobs pass). Requires Stage 1 owner sign-off under §3 before merge.
Resolved Since adaf5a5f
- §3 Technical hardening & locked-DART audit: All prior code findings are well resolved:
- Locked-DART 3-level walk on J775D confirmed the log is unmapped at handoff (only 11 pages in two non-OS-RAM segments are mapped), establishing ADT
physas its sole description. dt_reserve_aop_os_ram()now guardsu64wrap before and during 16 KiB rounding, caps segment count at 64, enforces ADT DRAM bounds, and uses non-bailingdt_try_reserve_ram_mem()(keeping coveringno-mapreservations untouched, failing closed on conflicting/non-no-mapoverlaps without clobbering, and rolling back partial subnodes viafdt_nop_node()).fdt_disable_node()re-readsstatusafterfdt_setprop_string()fails, overwrites"okay"in place with"fail", and falls back tofdt_nop_node()for"ok"/ status-less nodes so phandles and child nodes cannot be probed.- J775D testing now includes the default 27.0 stub from installed Stage 2 (
memblockNOMAP+ 72 GiB RAM fill + 5/5 PCM captures + 0 DART faults) and the forced full-FDT row (status = "fail", no bail, 0 boundapple_aop).
- Locked-DART 3-level walk on J775D confirmed the log is unmapped at handoff (only 11 pages in two non-OS-RAM segments are mapped), establishing ADT
- §4 Attribution: Pass. Both commits (
4e660ed36755,b21dcdadd937) carry human author/committerJeff Queisser <funkzy@users.noreply.github.com>and humanSigned-off-by:only, with zero AI commit trailers; PR body ends withAssisted-by:. - §2 / §6: Pass.
Blocking Findings
- CI failure (
Pytest (ubuntu-latest + llvm)+ 3 cancelled matrix jobs):tests/run-aop-os-ram.shfails under Clang + UBSan with:
src/libfdt/fdt_sw.c:333:2: runtime error: null pointer passed as argument 2, which is declared to never be null- Root cause:
tests/aop_os_ram_host.c:436callsfdt_property(buf, "ranges", NULL, 0), which reachesmemcpy(ptr, val, 0)atsrc/libfdt/fdt_sw.c:333withval == NULL. Pass""(or usefdt_property_placeholder()) instead ofNULL. - Because of matrix fail-fast,
Pytest (ubuntu-latest + gcc),Pytest (macos-26 + llvm-brew), andPytest (macos-15 + llvm-brew)were cancelled and never ran; a full 15/15 green CI run is required.
- §1 Multi-Mac / §5 Evidence: As noted in
## Still to run, at least one additional locked-DART Mac row (J700 where the AOP runs at handoff, and/or a T6050 laptop J714s / K114c / K116s with AOP enabled) is still owed before merge.
Assisted-by: LLM (Gemini 4 Neon)
The fixture writes an empty ranges property. libfdt still calls memcpy for a zero-length property, so use an empty string to satisfy the nonnull contract and keep the property length at zero. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
The Clang UBSan failure that Dj reported is fixed at
On J700 (T8140), the method-T chain boot ran both candidate stages on the production fleet85 kernel and command line. The boot log shows the locked-DART branch preserving firmware mappings and reserving a 208 KiB OS-RAM segment as RAM only. Linux bound A T6050 laptop row with the AOP enabled is still outstanding (J714s, K114c or K116s). The same-head images are available in the CI build artifacts. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR re-review at 0d66afc774eabb4455f9e3ca7b4f09a9fc013b4f (base main; 13/15 CI checks SUCCESS, 0 failures, Pytest (macos-26 + llvm-brew) in progress, clang-macos queued).
Stage 1 Impact
- Touches Stage 1: Yes. Verified against
Makefileonmain:kboot.ois in unconditionalOBJECTSand this PR addsfdt_disable.oto unconditionalOBJECTS. Requires Stage 1 owner sign-off under §3 before merge.
Resolved Since b21dcdad
- Clang UBSan CI failure (
tests/aop_os_ram_host.c:436): Fixed in0d66afc774eaby passing""instead ofNULLfor the zero-lengthrangesproperty solibfdt(src/libfdt/fdt_sw.c:333) satisfiesmemcpy's nonnull contract.Pytest (ubuntu-latest + llvm),Pytest (ubuntu-latest + gcc),Pytest (macos-15 + llvm-brew),Pytest (ubuntu-24.04-arm, native start.S),gcc,build,alarm,fedora,nix,policy,selftest,format-check, andESP stage 2 vital sizeall pass. - §1 / §5 Multi-Mac locked-DART verification: Both locked-DART AOP states are now proven on hardware:
- J775D (Mac Studio M5 Ultra, T6050 — halted AOP at handoff): Verified on identical production code (
b21dcdad;0d66afc774eatouches onlytests/aop_os_ram_host.c): default 27.0 stub installed Stage 2,asc-firmware@1000eac8000no-mapin/sys/kernel/debug/memblock/memory, 72 GiB RAM fill with 0 chunks changed, 5/5 1 s PCM capturesrc 0,apple_aopbound, 0 DART faults, plus forced full-FDT row (status = "fail", no bail, 0 boundapple_aop). - J700 (T8140 — running AOP at handoff): Verified by
@RyanTheTideat0d66afc774eavia method-T chain boot on productionfleet85kernel and default cmdline: locked-DART branch preserved firmware mappings and reserved a 208 KiB OS-RAM segment as RAM only;apple_aopbound with 0 DART faults, 0 SELinux denials, 0 failed units, and 0 kernel errors.
- J775D (Mac Studio M5 Ultra, T6050 — halted AOP at handoff): Verified on identical production code (
§1–§6 Checklist
- §1 No model gating: Pass (keyed strictly on
dart_t8110_is_locked(); proven on both T6050 J775D and T8140 J700). - §2 Production-ready, no hacks: Pass.
- §3 Safety: Pass in code (wrap/alignment/count/DRAM bounds + non-bailing overlap-safe reservation + zero-space
fdt_disable_node()+ fail-closedbail()on running AOP); Stage 1 owner sign-off applies before merge. - §4 Clean-room & attribution: Pass. All 3 commits (
4e660ed36755,b21dcdadd937,0d66afc774ea) carry human author/committer and humanSigned-off-by:only, with zero AI commit trailers; PR body ends withAssisted-by:. - §5 Evidence: Pass across J775D and J700 (an additional T6050 laptop row with AOP enabled remains nice-to-have per
@RyanTheTide, and please wait for the final 2 macOS CI checks to complete green before merging). - §6 Naming: Pass.
Assisted-by: LLM (Gemini 4 Neon)
…andoff" This reverts commit a7a616a, reversing changes made to b294045. Reverting #470 alone restored linking on all toolchains and passed nix, but gcc stage1 headroom landed at 3,640 B (456 B below the 4,096 B floor in tools/stage1_size.sh). Also revert #493 (2,048 B on gcc) as the minimum 2-PR revert set that clears the 4,096 B floor on gcc while keeping #492, #474, #427, and #443. Signed-off-by: Dj <43033058+DjDeveloperr@users.noreply.github.com>
…3tips/t8132-dcpext-adt-v2" This reverts commit 7bc55fe, reversing changes made to 27847f1. Bisecting Stage 1 size across merges since 59af506 showed that aurora-silicon#493 (a7a616a) still linked and passed gcc/fedora/alarm/nix stage1-size, and aurora-silicon#427 (27847f1) still linked with 8,584 B text headroom on clang, while aurora-silicon#470 (+1,626 lines in src/kboot_display_handoff.c) overflowed Stage 1 into the DCP log buffer. Revert aurora-silicon#470 to restore a green main tip while keeping aurora-silicon#492, aurora-silicon#493, aurora-silicon#474, aurora-silicon#427, and aurora-silicon#443. Signed-off-by: Dj <43033058+DjDeveloperr@users.noreply.github.com>
The AOP follow-up raised on #427 (#427 (comment)), which its
review kept out of that PR's scope: on the Mac Studio (J775D) the AOP's firmware log lies outside the firmware segment
extent #427's pass reads, so that pass leaves it unreserved. This reserves it on the AOP's own path, AOP-only and only
on a locked AOP DART. linux#2890 (the J775D tree change that enables the AOP) should land after it.
Problem
On a locked AOP DART Linux keeps the firmware's own mappings, so since e41005d (after #377's J700 testing) the AOP
firmware-segment path adds nothing there. That also leaves the RAM under any AOP firmware segment inside the OS's
memory unreserved: on the J775D the AOP's log lies there, at an address that changes from boot to boot, and the AOP
uses it once Linux starts the AOP. Linux can hand those pages out meanwhile.
Why this shape
dt_set_aop_firmware(), taken by every AOP whose DART is locked at handoff (theJ700, and the T6050 boards that enable their AOP), reserved nothing. Calling
dt_get_or_add_reserved_mem()directlywould also call
bail()on out-of-space errors (preventing any halted-AOP fallback) and silently overwrite anysame-name
/reserved-memorynode.dt_try_reserve_ram_mem()), so every lockedAOP DART gets it, and the board's tree keeps deciding whether the AOP runs (
status = "okay", as the J714s, K114cand K116s files do and linux#2890 does for the J775D). No second enable path and no board or SoC selector.
dt_try_reserve_ram_mem()is a narrow variant for this one caller: it neither callsbail()nor overwrites anexisting node, while
dt_get_or_add_reserved_mem()keeps its get-or-add contract for its 21 existing callers.Folding both onto one non-bailing core, with
dt_get_or_add_reserved_mem()as a wrapper keeping its currentbehaviour, is a follow-up PR after this one so those callers are not changed here.
out to 16 KiB pages (as the T8152 display path does) with
u64wrap and ADT DRAM bounds checks, RAM only (no-map,no device address, so e41005d's EBUSY cannot come back). On the J775D the locked tables do not map the log at
handoff (a read-only walk of every stream the ADT describes finds 11 mapped pages, all in two other AOP segments
outside the OS's memory), so there is no live translation to reserve and the ADT's phys field is the log's only
description. Existing
no-mapreservations that already cover the range stay untouched; conflicting or non-no-mapoverlaps fail closed rather than clobbering.
fdt_disable_node()), so its firmware neverstarts and never uses the pages, and the boot goes on. For
"ok"or status-less nodes with no free space,fdt_disable_node()turns the whole node (including status, phandle and children) into NOPs withfdt_nop_node(),the same zero-space fallback
kboot_gpu_m4.calready uses. A running AOP uses those pages whatever the tree says, sothen the boot stops.
to adding nothing on a locked DART: one pass for every coprocessor's log.
This PR does not touch them; the same one-pass extension of kboot: name the RTBuddySeg firmware logs no-map #427 would cover them too. Unifying
kboot_gpu_m4.c'sfdt_setprop_string(..., "disabled") && fdt_nop_node(...)ontofdt_disable_node()is left as a follow-up.Change
kboot: keep an FDT node off without needing space, so a boot loader step can refuse a coprocessor even in a full tree:fdt_disable_node()setsstatusto"disabled"; if that cannot grow the tree, it re-readsstatusand overwrites"okay"in place with"fail"(the same length); otherwise it turns the whole node (includingstatus,phandleand child nodes) into NOPs via
fdt_nop_node(), so nothing probes it and no phandle consumer sees it as available.tests/run-fdt-disable.shchecks every branch on the host and runs in CI.kboot: keep an AOP's firmware pages in the OS's memory reserved when its DART is locked, so the OS cannot reuse the log the firmware writes:dt_try_reserve_ram_mem()adds ano-map/reserved-memorynode without callingbail(): an existingno-mapnode covering the range is kept untouched, conflicting or non-
no-mapoverlaps fail closed, and mid-creationout-of-space failures roll back any partial subnode with
fdt_nop_node().dt_reserve_aop_os_ram()checks segment count (<= 64),u64wrap before and during 16 KiB rounding, and ADT DRAMbounds, reserving every OS-RAM segment RAM only.
dt_aop_locked_dart_handoff()disables a halted AOP withfdt_disable_node()on failure (the J775D's AOP waitshalted at handoff) and stops the boot for a running AOP (or when
asc_init()fails).tests/run-aop-os-ram.shextracts and tests the productionsrc/kboot.cfunctions withsrc/fdt_disable.candlibfdtunder ASan and UBSan and runs in CI.Testing
J775D (Mac Studio, M5 Ultra), kernel linux integration/aurora
f5f023bc9b62+ linux#2556 + linux#2890 (kitj7aop-p3),read-only root, default command line:
b21dcdadon main59b8b977, windowj7aura15):/efi/aurora/stage2/aura.machobooted unattended in 45 s through the default 27.0 Stage 1 with no hostclaim (original Stage 2 restored and verified byte-for-byte afterwards).
asc-firmware@1000eac8000([0x1000eac8000, +0x2c000),no-map)./sys/kernel/debug/memblock/memory:0x1000e988000..0x1000eaf3fff NOMAP(covers the log and adjacent display logs);/sys/kernel/debug/memblock/reserved:0x10008e70000..0x10011ab3d7f.byte with 0 chunks changed. Five 1 s PCM captures through the AOP audio DAI (1 before, 3 during the fill, 1 after)
all completed (
rc 0, 192044 bytes each).apple_aopstayed bound,AppleJ775Dstayed registered, 0 DART faultsor errors.
iwdlacks integration defconfig crypto options;systemd-networkd-persistent-storageon read-only root), 5 err-level kernel lines (same 3 DCP + 1 USB HID + macaudio speaker-safety line as below), 0
WARNING/BUG/Oops. ALARM has no SELinux, so there is no AVC count.
b21dcdadon main59b8b977, imageaura-aopres3c, windowj7aura13):preserving firmware mappings in locked DARTthenfirmware segment [0x100101f4000, +0x2c000) is in the OS's memory: reserved, RAM only./sys/kernel/debug/memblock/memory:0x100100b4000..0x1001021ffff NOMAP; 72 GiB fill 0 chunks changed; 5/5 audiocaptures
rc 0(192044 bytes); 0 DART faults; same 2 failed units and 5 err-level kernel lines.b21dcdadplus test-onlyfdt_pack(dt)beforedt_reserve_aop_os_ram()andfdt_open_into()after so later passes finish, imageaura-aopres3-nospace2, windowj7aura14):preserving firmware mappings in locked DARTthenits firmware RAM could not be reserved: AOP kept offwithout bailing.
/proc/device-tree/soc@200000000/aop@290c00000/statusis"fail", no partial or OS-RAMasc-firmwarenode was added,apple_aopbound count is 0,AppleJ775Dcard count is 0, 0 DART faults, 2 failedunits, 4 err-level kernel lines (macaudio does not probe).
j7aura8on main90f11310vsj7aura9atadaf5a5fonf1daef3e):identical functional and error counts (2 failed units, 5 err-level lines, 0 WARNING/BUG/Oops), with the PR adding the
3rd AOP firmware reservation (
0x2c000bytes in OS RAM).Host tests, builds and static checks
sh tests/run-fdt-disable.sh(ASan + UBSan): 10/10 pass (with room ->"disabled"; packed"okay"->"fail"inplace; packed
"ok"and status-less -> whole node, child and phandles NOP'd with siblings untouched;fail_statusinjection; missing node error with tree unchanged).
sh tests/run-aop-os-ram.sh(ASan + UBSan,-Wall -Wextra -Werror, production functions extracted fromsrc/kboot.cagainst
src/fdt_disable.cand reallibfdt): 14/14 pass (aligned segment; unalignedr.physspanning a 16 KiBboundary rounded down/up to cover both pages;
u64wrap onr.phys + sizeand on 16 KiB rounding; > 64 segments;outside ADT DRAM; already-covered
no-mapuntouched; partial overlap / smaller same-name refused without clobber;non-
no-mapoverlap refused; packed FDT + halted AOP"okay"->"fail"and"ok"-> node/child/phandle NOP'd;packed FDT + running AOP -> bail;
asc_init()NULL -> bail; tight FDT mid-creationNOSPACE-> partial subnoderolled back and halted AOP disabled).
RELEASE=1 CHAINLOADING=1 ESP_STAGE2=1 USE_CLANG=1 BUILTIN_LOGO=aurora BUILDSTD=1) on main59b8b977:clean, no new warnings.
clang-formatclean.Still to run
enabled): confirms the reservation line (when an OS-RAM segment is present) and clean AOP binding on other boards
entering this branch.