apache / apache/teaclave-sgx-sdk
How to handle too big of a memory allocation?
Open
- Dominant language
- Rust
- Stars
- 1.2k
- Forks
- 268
- PR merge metrics
- No merged PRs in 30d
Description
We have `HeapMaxSize` set to 10 MiB. When we try to allocate more than 10 MiB we get `SIGILL`. Is there a nice way to catch and recover from these type of rogue allocations?
cc @reuvenpo @Cashmaney
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no files or tests. Start by reproducing the allocation with HeapMaxSize set to 10 MiB, then trace the SDK's allocation failure and SIGILL handling path. Done means establishing and documenting a recoverable behavior for allocations exceeding the configured limit, or clearly identifying the limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100