We can run out of box reserved memory in vmpu_load_boxes, even when we actually have enough memory
- Dominant language
- C
- Stars
- 135
- Forks
- 72
- PR merge metrics
- No merged PRs in 30d
Description
We can run out of box reserved memory in vmpu_load_boxes, even when we actually have enough memory. This is because the amount reserved by the linkerscript for bss_boxes is only enough space if we optimally pack the box reserved memories (which may not be possible to do with certain alignment requirements); otherwise, we waste enough space when aligning a box reserved memory to its size as to overflow the available bss_boxes space.
Contributor guide
Research direction
Start at vmpu_load_boxes and the linker script reservation for bss_boxes; inspect how box-reserved memories are aligned and packed. Reproduce an overflow with non-optimal alignment, then verify that the reserved space remains sufficient without relying on optimal packing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100