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:
- geth’s
evmtool, the reference. geth is an independent implementation of the EVM, in another language, from another team. - Cinder’s state test runner, the same EVM code that the node runs. The runner writes its trace in a format that goevmlab reads.
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:
- 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.
- 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.
| Row | Generated 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 |
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 state tests of every fork from Paris to Osaka: 0 failures.
- The Engine API tests with a new database: 63 908 passed, 0 failed.
- The unit tests and the Osaka state tests in a debug build with AddressSanitizer and UndefinedBehaviorSanitizer: all passed.
- All 1 074 mainnet blocks of the benchmark: equal to mainnet with each build.
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.
- The runs were small. 600 tests in 40 minutes, and 152 in the review. The EVM has many opcodes, gas rules and edge cases. A few hundred random programs reach a small part of them.
- One fork. Every test ran on Osaka. A rule that only an earlier fork has is not in these runs. The state tests of the earlier forks cover those.
- One reference. If Cinder and geth make the same mistake, the traces agree and the fuzzer sees nothing. The shared test suite is the check for that case.
- The EVM only. A state test runs code on a prepared state. It does not touch the Engine API, block import, the database, the state root of a full block on disk, JSON-RPC or the network.
- The generator chooses. A fuzzer finds the shapes that its generator makes. A bug outside those shapes stays hidden for any number of runs.
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:
- Four layers of checks, from the Ethereum test suite to mainnet blocks, with the first fuzz hour of September.
- The JSON-RPC comparison with reth, where the same request goes to both nodes and the answers must match.
- The release check, which an earlier post describes for 0.9.5: before a release, the release build runs for at least one hour on live mainnet, and a tool compares its JSON-RPC answers with reth’s. A difference that is not by design stops the release.
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.