Skip to content

evm: Poison the segments for AddressSanitizer - #1895

Open
chfast wants to merge 1 commit into
evm/memory-segmentsfrom
evm/asan-segments
Open

chfast wants to merge 1 commit into
evm/memory-segmentsfrom
evm/asan-segments

Conversation

@chfast

@chfast chfast commented Dec 6, 2026

Copy link
Copy Markdown
Member

Poison each segment of the VM context for AddressSanitizer when it is allocated. The executions unpoison their stack spaces and memories while they run, so an access to any other part of a segment is reported. Previously, only the 32 bytes after the end of each memory and the call frames of the ended executions were poisoned.

Poison each segment of the VM context for AddressSanitizer when it is
allocated. The executions unpoison their stack spaces and memories
while they run, so an access to any other part of a segment is
reported. Previously, only the 32 bytes after the end of each memory
and the call frames of the ended executions were poisoned.
@codspeed

codspeed Bot commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will regress 1 benchmark

1 warning

⚠️ 3 benchmarks with a significant change ran on different hardware

Their base and head results were measured on machines with a different CPU, core count or memory, so the changes might not come from the code. Run base and head on the same runner type.

Learn more about Macro Runners

See affected benchmarks

⚡ 2 improved benchmarks
❌ 1 regressed benchmark
✅ 1043 untouched benchmarks
⏩ 770 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ test_calldatasize[fork_Amsterdam-blockchain_test-zero_data_False-calldata_size_0-benchmark-gas-value_1M] 14.4 ms 14.6 ms -1.33%
⚡ test_callvalue_from_call[fork_Amsterdam-blockchain_test-non_zero_value_False-benchmark-gas-value_1M] 17.4 ms 17.1 ms +1.89%
⚡ test_block_full_access_list_and_data[fork_Amsterdam-blockchain_test-benchmark-gas-value_1M] 3.1 ms 3 ms +1.71%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing evm/asan-segments (046f982) with evm/memory-segments (d17d583)

Open in CodSpeed

Footnotes

  1. 770 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@codecov

codecov Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.22%. Comparing base (d17d583) to head (046f982).

Additional details and impacted files
@@                   Coverage Diff                   @@
##           evm/memory-segments    #1895      +/-   ##
=======================================================
- Coverage                98.22%   98.22%   -0.01%     
=======================================================
  Files                      192      192              
  Lines                    17663    17661       -2     
  Branches                  4036     4036              
=======================================================
- Hits                     17349    17347       -2     
  Misses                     240      240              
  Partials                    74       74              
Flag Coverage Δ
eest-develop-gmp 26.93% <100.00%> (-0.01%) ⬇️
eest-legacy 17.05% <100.00%> (-0.01%) ⬇️
eest-libsecp256k1 28.72% <100.00%> (-0.01%) ⬇️
eest-stable 83.73% <ø> (-0.01%) ⬇️
evmone-unittests 94.14% <100.00%> (-0.01%) ⬇️
riscv64 94.99% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
core 96.55% <100.00%> (-0.01%) ⬇️
tooling 94.80% <ø> (ø)
tests 99.81% <ø> (ø)
Files with missing lines Coverage Δ
lib/evmone/execution_state.hpp 100.00% <ø> (ø)
lib/evmone/vm_context.hpp 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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.

1 participant