fix(validator): uint64 underflow in Start() when head slot is below finalizedL1Offset or NumBlocks
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Read validator/service/service.go and start at Start(), then follow the checkBlobs loop. Exercise the cases where headSlot is below finalizedL1Offset and where end is below NumBlocks. Done means Start() returns an early error for the invalid head slot, clamps the other start value instead of underflowing, and no longer hangs.
Written by the indexing model from the issue text.
Description
In validator/service/service.go Start(), phase0.Slot is uint64. If headSlot < finalizedL1Offset (64), the subtraction wraps around to a very large value. Similarly if end < NumBlocks (default 600), start wraps around. The checkBlobs loop then iterates from a huge start value up to end, effectively hanging the validator.
Fixed by:
- Guard headSlot against finalizedL1Offset and return an error early
- Clamp start to 0 when end < numBlocks instead of underflowing
- Dominant language
- Go
- Stars
- 126
- Forks
- 87
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from base/blob-archiver
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
base/blob-archiver#71 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
base/blob-archiver#67 ·
-
Difficulty 2/5 1-2 days Newbie friendliness 78/100
base/blob-archiver#64 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 95/100
base/blob-archiver#62 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
base/blob-archiver#55 ·
All issues in base/blob-archiver
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100