googleprojectzero / googleprojectzero/Jackalope
Error allocating remote code buffer
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 157
- PR merge metrics
- No merged PRs in 30d
Description
Getting this error after few hours:
[-] PROGRAM ABORT : Error allocating remote code buffer
Location : TinyInst::InstrumentModule(), D:\Research\Jackalope\TinyInst\tinyinst.cpp:1685
looks like its not able to allocate memory:
module->instrumented_code_remote =
(char *)RemoteAllocateNear((uint64_t)module->min_address,
(uint64_t)module->max_address,
module->instrumented_code_size,
READEXECUTE);
if (!module->instrumented_code_remote) {
// TODO also try allocating after the module
FATAL("Error allocating remote code buffer\n");
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with TinyInst::InstrumentModule() in TinyInst/tinyinst.cpp at line 1685 and trace the RemoteAllocateNear call and its address range arguments. Reproduce the reported remote code buffer allocation failure on the affected setup; done means the underlying allocation failure is resolved or its handling is clearly corrected without the reported abort.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100