Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aarch64 physical ID heap: fix setting of memory end address #2038

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

francescolavra
Copy link
Member

In instances where the physical memory start address is fixed to a hard-coded value (such as when instantiating a Qemu "virt" machine type), the memory end address should be calculated from the hard-coded start value instead of from the start of usable memory.

This change fixes a "frame 0x00ff800042200800 already full" fatal error caused by a "data abort in el1 write" exception that is triggered when the kernel allocates memory at an address range past the end of physical memory (e.g. when the user process tries to use more memory than available).

In instances where the physical memory start address is fixed to a
hardcoded value (such as when instantiating a Qemu "virt" machine
type), the memory end address should be calculated from the
hardcoded start value instead of from the start of usable memory.

This change fixes a "frame 0x00ff800042200800 already full" fatal
error caused by a "data abort in el1 write" exception that is
triggered when the kernel allocates memory at an address range past
the end of physical memory (e.g. when the user process tries to
use more memory than available).
@francescolavra francescolavra merged commit a5b52ac into master Jul 8, 2024
5 checks passed
@francescolavra francescolavra deleted the fix/aarch64-phys-heap branch July 8, 2024 07:47
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.

2 participants