You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a program invokes another BPF program via CPI, the instruction counter is not carried over. Since Solana currently allows 5 layers of call depth, this allows for instructions that take extremely long to compute and can overwhelm message processing and take the network down.
Proposed Solution
Enforce instruction limits on CPI calls to other BPF programs. Potentially also limit the number of CPIs to non-BPF programs (to prevent spam of system instructions).
The text was updated successfully, but these errors were encountered:
Problem
When a program invokes another BPF program via CPI, the instruction counter is not carried over. Since Solana currently allows 5 layers of call depth, this allows for instructions that take extremely long to compute and can overwhelm message processing and take the network down.
Proposed Solution
Enforce instruction limits on CPI calls to other BPF programs. Potentially also limit the number of CPIs to non-BPF programs (to prevent spam of system instructions).
The text was updated successfully, but these errors were encountered: