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

flamenco, fuzz: CPI execution mocking #2824

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ravyu-jump
Copy link
Contributor

@ravyu-jump ravyu-jump commented Aug 29, 2024

Mock CPI execution

With __wrap_fd_execute, we can simulate the execution of a CPI by modifying account states with a provided InstrEffects message.

Separate PR for dumping of account states in replay: #2931
## 2. Dumping account state in CPI calls
To generate seed corpus with execution effects, the CPI dump tool was modified to capture post-CPI instruction account data.

Also added a script that temporarily applies a patch file that dumps CPI state during CPI syscall.

@ravyu-jump ravyu-jump force-pushed the fuzz-cpi-exec-instr-effects-squashed branch 2 times, most recently from c13324a to db168ac Compare August 29, 2024 19:36
@ravyu-jump ravyu-jump force-pushed the fuzz-cpi-exec-instr-effects-squashed branch from db168ac to e1e69c6 Compare September 9, 2024 19:41
@ravyu-jump ravyu-jump force-pushed the fuzz-cpi-exec-instr-effects-squashed branch from e1e69c6 to 43aadaa Compare September 17, 2024 01:34
@ravyu-jump ravyu-jump marked this pull request as ready for review September 17, 2024 01:44
@ravyu-jump ravyu-jump force-pushed the fuzz-cpi-exec-instr-effects-squashed branch from 43aadaa to 7af8683 Compare September 17, 2024 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant