Cinder

Differential fuzzing of the EVM: 600 tests, 0 differences, and what that does not prove

TL;DR

On 2026-10-16 we kept three changes that made the interpreter 9.8% faster on 1 074 mainnet blocks. One of the checks before we kept them was differential fuzzing. goevmlab generates random state tests on the Osaka fork and runs each one on geth's evm and on Cinder's test runner. Then it compares the trace of every opcode and the state root. Two runs of 25 and 15 minutes made 600 tests with 0 differences. Only the second run (219 tests) was all on the final build, because the first run changed builds partway. A 10-minute run in the independent review gave 0 differences in 152 tests. The September hour made 8 348 tests, so the October runs were small. They check the EVM only, on one fork, against one reference. They do not check the Engine API, the database or JSON-RPC. Other checks cover those.

Published 2026-10-30. The fuzz runs took place on 2026-10-16. Written from the interpreter speed record of that day and the results summary of 2026-09-26.

On 2026-10-16 we kept three changes to Cinder’s EVM interpreter. Together they made the block execution 9.8% faster on all 1 074 blocks of our offline engine benchmark. The changes are small to read and risky to get wrong. One of them keeps the gas and the stack pointer in local variables of the interpreter loop. Each path that reads the gas outside the loop must now see the current value, not an old copy. A mistake there does not crash. It gives a different gas number, and then a different state root.

So the speed record has a long correctness section. This post is about one line of it: the differential fuzzing against geth. I like this check. It does not care what anyone expected to find.

Why random programs

The Ethereum test suite (EEST) is the first check of every change. On the final build, all 19 517 Osaka state tests passed, and 21 558 blockchain tests passed. These tests are good, and they are cases that a person chose. A bug that sits in a combination nobody wrote a test for stays hidden.

Differential fuzzing looks for that kind of bug. The method is simple: make random inputs, give each input to two independent implementations, and report each input where the two disagree. Neither implementation needs to be known as correct. A difference is a question, and one of the two has the bug.

How the check works

We use goevmlab, a set of fuzzing tools for EVMs. Our script starts its generic fuzzer with these two programs:

The fuzzer makes a random state test: accounts, code and transactions on the Osaka fork. It runs the test on both programs and compares two things:

  1. The trace of every opcode. One line per step: the program counter, the opcode, the gas, the stack and more. The first line that is not the same is the difference.
  2. The state root after the test. It catches a difference that a trace does not show, for example in a balance or a storage write.

When the two disagree, the fuzzer keeps the test and both outputs for us to read. A result of 0 differences means that the fuzzer kept no test.

The runs

Run Time Tests Differences
2026-09-26, baseline 1 hour 8 348 0
2026-10-16, two runs 25 and 15 min 600 0
of these, final build 15 min 219 0
2026-10-16, review 10 min 152 0

The baseline ran against geth evm 1.17.6. The “final build” row is the second of the two October runs, and “review” is the run of the independent review. Records: the results summary of 2026-09-26 for the baseline, the interpreter speed record of 2026-10-16 for the others.

The October runs made far fewer tests than the September hour.

RowGenerated tests
September, first baseline (1 hour)8 348 tests
October, two runs (25 and 15 minutes)600 tests
October, independent review (10 minutes)152 tests
Tests that goevmlab generated per run, differential fuzzing of Cinder's EVM against geth's evm on the Osaka fork. Each run gave 0 differences. Linear axis from zero. Records: docs/results/2026-09-summary.md (2026-09-26) and docs/results/2026-10-interp-speed.md (2026-10-16).

The September run made more tests per minute than the October runs. The records do not give the number of parallel workers or the machine load of the October runs, so I do not know the cause. I do not guess it here.

The run that changed builds partway

The record says this about the first October run: “The first run changed builds partway.” The script runs the test runner from the build directory. A new build in that directory during a run changes the program that the run tests. Some tests of the first run ran on an earlier build of the changes, and some on the final build. We do not know which tests ran on which build.

We could have reported 600 tests on the final build. That would have been wrong. The record gives the 600 and then says that only the second run, 219 tests, was all on the final build. I copy the same split here. The 0 differences of the first run are still worth something: no build in that run disagreed with geth. But the clean number for the final build is 219.

What else checked the same changes

Fuzzing against geth was one line in a list. On the final build of the interpreter changes, the record also has:

The independent review added a second kind of differential check. It ran 80 000 random programs (about 67 million steps) on the new interpreter and on the interpreter before the changes. The results were byte for byte the same, with and without a trace. That check compares Cinder with its old self, so it finds a change in behaviour, not an error that both versions share. The check against geth covers the second case.

What 0 differences does not prove

I want to be exact about this, because “0 differences” reads stronger than it is.

So 0 differences tells us that, in these tests, Cinder’s EVM did the same thing as geth’s, step by step. It does not tell us that Cinder’s EVM has no bugs. Nothing does.

What covers the rest

Other checks cover the parts that fuzzing does not reach. I wrote about them before, so here they are as links:

What next

The interpreter record plans more speed work: fewer checks per dispatch, and a live A/B test of these changes on the node. Each new interpreter change goes through the same list of checks, fuzzing against geth included. The records do not plan a longer fuzz run yet. When one runs, its result goes into a record first, and then here.