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

concurrent map read and map write in validateAuth #31474

Open
rekyyang opened this issue Mar 24, 2025 · 1 comment
Open

concurrent map read and map write in validateAuth #31474

rekyyang opened this issue Mar 24, 2025 · 1 comment
Labels

Comments

@rekyyang
Copy link
Contributor

rekyyang commented Mar 24, 2025

It seems that there could have "concurrent map read and map write" while execute pool.all.auths[from]? pool.all.Remove & pool.all.Add has lock, but validateAuth has no lock for pool.all

if pool.currentState.GetCodeHash(from) == types.EmptyCodeHash && len(pool.all.auths[from]) == 0 {

@rekyyang
Copy link
Contributor Author

@rekyyang rekyyang changed the title data race in validateAuth concurrent map read and map write in validateAuth Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant