Page MenuHomeFreeBSD

arm64: Fix calculating kernel size for preload metadata
ClosedPublic

Authored by jhb on Nov 11 2025, 8:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 15, 1:38 AM
Unknown Object (File)
Sat, Apr 11, 8:24 PM
Unknown Object (File)
Sat, Apr 11, 11:20 AM
Unknown Object (File)
Mon, Apr 6, 2:23 PM
Unknown Object (File)
Sun, Apr 5, 3:06 PM
Unknown Object (File)
Sun, Apr 5, 1:50 AM
Unknown Object (File)
Fri, Apr 3, 1:09 PM
Unknown Object (File)
Mon, Mar 30, 5:46 AM
Subscribers

Details

Summary

Cast &end to vm_offset_t before subtracting VM_MIN_KERNEL_ADDRESS to
ensure the resulting size is correct for PRELOAD_PUSH_VALUE.
Previously the correct size was effectively divided by sizeof(void *).

Obtained from: CheriBSD

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable