Skip to content

core/vm: add access cost check#35261

Open
rjl493456442 wants to merge 1 commit into
ethereum:masterfrom
rjl493456442:sstore-access-cost
Open

core/vm: add access cost check#35261
rjl493456442 wants to merge 1 commit into
ethereum:masterfrom
rjl493456442:sstore-access-cost

Conversation

@rjl493456442

Copy link
Copy Markdown
Member

This is an edge case found by @weiihann.

Under 8038, the cold storage access cost is increased to 3,000 gas, which exceeds the sentry check threshold. Therefore, the sentry check no longer guarantees that the remaining gas is sufficient to cover a cold slot access.

Therefore, an additional access affordability check is added to eliminate the potential DoS vector.

@MariusVanDerWijden

Copy link
Copy Markdown
Member

I looked only at the patch and that looks good, still need to review the base impl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants