Skip to content

cl/beacon/handler: reject a nil BlobsBundle instead of dereferencing it - #23586

Open
awskii wants to merge 2 commits into
mainfrom
awskii/blobsbundle-nil-guard
Open

cl/beacon/handler: reject a nil BlobsBundle instead of dereferencing it#23586
awskii wants to merge 2 commits into
mainfrom
awskii/blobsbundle-nil-guard

Conversation

@awskii

@awskii awskii commented Aug 26, 2026

Copy link
Copy Markdown
Member

produceBeaconBody derefs bundles at block_production.go:1197 with no nil check. getAssembledBlockFromResponse guards only ExecutionPayload and passes resp.BlobsBundle through, so an EL omitting blobsBundle arrives nil. The deref sits inside the wg.Go at :1144 — unrecoverable, kills the process.

Changes

  • Guard bundles == nil before the version branch: error from Deneb, where the engine API makes the field mandatory; empty bundle before it, where it does not exist. At the consumer, so it covers every ExecutionEngine.
  • Two tests, either side of Deneb, driving a mocked engine that returns a non-nil payload with a nil bundle.

Notes

Unguarded, the first test dies SIGSEGV at :1197. Three mutations go red: remove the guard, drop the pre-Deneb fallback, invert the version test.

Also on release/3.6:1188 and release/3.5:960.

@awskii
awskii requested a lite review from Copilot August 26, 2026 10:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@awskii
awskii requested a lite review from Copilot August 26, 2026 10:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread cl/beacon/handler/block_production_nil_bundle_test.go Outdated
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.

2 participants