Skip to content

bootstrap: check and log allocation failures#107

Merged
Indanz merged 2 commits intoseL4:masterfrom
au-ts:julia/bootstrap-errors
Jan 27, 2026
Merged

bootstrap: check and log allocation failures#107
Indanz merged 2 commits intoseL4:masterfrom
au-ts:julia/bootstrap-errors

Conversation

@midnightveil
Copy link
Contributor

These functions are dependencies of the init_allocator() from libsel4benchsupport. If a thread is spawned with a set of UTs where either there is not enough to bootstrap the thread, or if they are all too small (e.g. < 12 bits when the default CNode size LibSel4UtilsCSpaceSizeBits defaults to 12 + 5), then the thread would proceed to fault on a data read on a region of virtual memory that didn't get allocated.

Instead, return an error and log a reason (for the CNode case).

@midnightveil midnightveil force-pushed the julia/bootstrap-errors branch from 7172291 to 5950bcb Compare January 15, 2026 05:32
@midnightveil midnightveil force-pushed the julia/bootstrap-errors branch from 5950bcb to 106f12a Compare January 21, 2026 02:32
These functions are dependencies of the init_allocator() from
libsel4benchsupport. If a thread is spawned with a set of UTs
where either there is not enough to bootstrap the thread,
or if they are all too small (e.g. < 12 bits when the default
CNode size LibSel4UtilsCSpaceSizeBits defaults to 12 + 5),
then the thread would proceed to fault on a data read on a
region of virtual memory that didn't get allocated.

Instead, return an error and log a reason (for the CNode case).

Signed-off-by: Julia Vassiliki <[email protected]>
Signed-off-by: Julia Vassiliki <[email protected]>
@midnightveil midnightveil force-pushed the julia/bootstrap-errors branch from 106f12a to e95835f Compare January 27, 2026 06:23
@Indanz Indanz merged commit 7fcd83b into seL4:master Jan 27, 2026
24 checks passed
@midnightveil midnightveil deleted the julia/bootstrap-errors branch January 27, 2026 11: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.

3 participants