Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix async eldritch functions crashing golem/imix. #148

Merged
merged 21 commits into from Mar 16, 2023

Conversation

hulto
Copy link
Collaborator

@hulto hulto commented Mar 15, 2023

What type of PR is this?

/kind bug
/kind eldritch-function

What this PR does / why we need it:

Async functions like download, and port_scan cause the agent to crash with an error about nested block_on runtimes.
To resolve this we've implemented new threads for each eldritch execution.
This creates a unique runtime for each allowing the eldritch function to create a tokio runtime.

Also resolves dll inject test failure by disabling defender in CI vms.

@hulto hulto added the bug Something isn't working label Mar 15, 2023
@codecov
Copy link

codecov bot commented Mar 15, 2023

Codecov Report

Merging #148 (acb7f15) into main (b4d8672) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #148   +/-   ##
=======================================
  Coverage   54.15%   54.15%           
=======================================
  Files          27       27           
  Lines        1313     1313           
=======================================
  Hits          711      711           
  Misses        531      531           
  Partials       71       71           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Collaborator

@Cictrone Cictrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix pls

implants/eldritch/src/lib.rs Outdated Show resolved Hide resolved
@hulto hulto merged commit 9406cfd into main Mar 16, 2023
11 checks passed
@hulto hulto deleted the async-functions-crash-debug branch March 16, 2023 04:28
KCarretto pushed a commit that referenced this pull request Feb 1, 2024
 
Fix async eldritch functions crashing golem/imix. (#148)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants