Skip to content

Cherry-pick "Use bottom-up ELF placement policy" - #1408

Merged
Sangho Lee (sangho2) merged 1 commit into
uliteboxfrom
ulitebox-pr-1395
Sep 23, 2026
Merged

Sangho Lee (sangho2) merged 1 commit into
uliteboxfrom
ulitebox-pr-1395

Conversation

@sangho2

Copy link
Copy Markdown
Contributor

No description provided.

This PR replaces the Linux shim loader's top-down fallback placement
policy with a bottom-up policy. Currently, if placement of the main ELF
at `DEFAULT_LOW_ADDR` fails, the loader searches downward from
`TASK_ADDR_MAX` for a suitable gap without accounting for trampoline
allocation or `brk`-based heap growth. Instead, this PR places the ELF
in the first suitable gap at or above `DEFAULT_LOW_ADDR`.

---------

Co-authored-by: Sangho Lee <sanghle@microsoft.com>
(cherry picked from commit fcad93e)
@github-actions

Copy link
Copy Markdown

🤖 SemverChecks 🤖 No breaking API changes detected

Note: this does not mean API is unchanged, or even that there are no breaking changes; simply, none of the detections triggered.

@sangho2
Sangho Lee (sangho2) added this pull request to the merge queue Sep 23, 2026
Merged via the queue into ulitebox with commit dcdffbb Sep 23, 2026
10 checks passed
@sangho2
Sangho Lee (sangho2) deleted the ulitebox-pr-1395 branch September 23, 2026 01:41
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