Loader: Fix BusFault in handling of OOM #3992
+7
−5
Open
Task list completed / task-list-completed
Started
2024-11-07 04:13:42
ago
0 / 3 tasks completed
3 tasks still to be completed
Details
Required Tasks
Task | Status |
---|---|
during OOM propagation, ELF file has small chance of trying to free relocation data that is not allocated: | Incomplete |
elf_load_section_data() does not allocate fast_rel->data if not enough ram |
Incomplete |
but elf_preload_section() allocated fast_rel itself, so both would try to be freed when only 1 exists |
Incomplete |
in particular, this was observable in upython app | Incomplete |
try to run upython app | Incomplete |
either it opens, or it gives out of memory message, not crash | Incomplete |
PR has description of feature/bug or link to Confluence/Jira task | Incomplete |
Description contains actions to verify feature/bugfix | Incomplete |
I've built this code, uploaded it to the device and verified feature/bugfix | Incomplete |
Loading