Skip to content

fix(transport): Keep path validation frames out of PMTUD probes - #4393

Closed
larseggert wants to merge 1 commit into
mozilla:mainfrom
larseggert:fix-path-frames-in-pmtud-probe
Closed

larseggert wants to merge 1 commit into
mozilla:mainfrom
larseggert:fix-path-frames-in-pmtud-probe

Conversation

@larseggert

Copy link
Copy Markdown
Collaborator

They are not retransmitted, so a probe the path drops must not carry them. Fixes #4345.

They are not retransmitted, so a probe the path drops must not carry them.

Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-92PAKM0D.
@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.62%. Comparing base (e166635) to head (6d384d2).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4393      +/-   ##
==========================================
- Coverage   96.73%   96.62%   -0.12%     
==========================================
  Files         113      118       +5     
  Lines       43491    43893     +402     
  Branches    43491    43893     +402     
==========================================
+ Hits        42073    42413     +340     
- Misses       1406     1459      +53     
- Partials       12       21       +9     
Flag Coverage Δ
freebsd 94.13% <100.00%> (-0.10%) ⬇️
linux 96.77% <100.00%> (+<0.01%) ⬆️
macos 94.53% <100.00%> (+0.01%) ⬆️
windows 94.58% <100.00%> (+0.01%) ⬆️

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

Components Coverage Δ
neqo-common 99.33% <ø> (ø)
neqo-http3 96.00% <ø> (ø)
neqo-qpack 96.55% <ø> (ø)
neqo-transport 97.14% <100.00%> (+<0.01%) ⬆️
neqo-udp 87.63% <ø> (ø)
mtu 91.31% <ø> (ø)

@codspeed

codspeed Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will degrade performance by 1.46%

1 warning

⚠️ 1 benchmark is dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

⚡ 3 improved benchmarks
❌ 4 regressed benchmarks
✅ 94 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ Walltime walltime/pacing-false/same-seed 3.4 ms 3.6 ms -6.9%
❌ Walltime walltime/pacing-false/varying-seeds 3.4 ms 3.6 ms -4.92%
❌ Walltime walltime/pacing-true/same-seed 4 ms 4.2 ms -3.88%
❌ Walltime walltime/pacing-true/varying-seeds 4 ms 4.1 ms -3.25%
⚡ Walltime 1-conn/1-100mb-resp (aka. Download) 61.7 ms 59.7 ms +3.44%
⚡ Walltime neqo-neqo-cubic 26.9 ms 26.1 ms +3.26%
⚡ Walltime 1-conn/1-100mb-req (aka. Upload) 62.1 ms 60.5 ms +2.6%

Tip

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


Comparing larseggert:fix-path-frames-in-pmtud-probe (6d384d2) with main (e166635)

Open in CodSpeed

@github-actions

Copy link
Copy Markdown
Contributor

Benchmark results

No significant performance differences relative to e166635.

All results
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500
       time:   [60.896 ms 60.956 ms 61.013 ms]
       thrpt:  [1.6006 GiB/s 1.6021 GiB/s 1.6036 GiB/s]
Found 15 outliers among 100 measurements (15.00%)
1 (1.00%) low severe
12 (12.00%) low mild
2 (2.00%) high mild
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500
       time:   [60.254 ms 60.307 ms 60.362 ms]
       thrpt:  [1.6178 GiB/s 1.6193 GiB/s 1.6207 GiB/s]
Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) high mild
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500
       time:   [3.8046 ms 3.8053 ms 3.8060 ms]
       thrpt:  [262.75   B/s 262.79   B/s 262.84   B/s]
Found 6 outliers among 100 measurements (6.00%)
4 (4.00%) low mild
2 (2.00%) high severe
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500
       time:   [88.134 ms 88.284 ms 88.428 ms]
       thrpt:  [113.09 Kelem/s 113.27 Kelem/s 113.46 Kelem/s]
streams-flow-controlled/walltime/1-streams/each-4194304-bytes
       time:   [13.018 ms 13.022 ms 13.026 ms]
       thrpt:  [307.09 MiB/s 307.18 MiB/s 307.28 MiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) low mild
streams-flow-controlled/walltime/10-streams/each-1048576-bytes
       time:   [36.146 ms 36.158 ms 36.171 ms]
       thrpt:  [276.47 MiB/s 276.56 MiB/s 276.65 MiB/s]
streams/walltime/1-streams/each-1000-bytes
       time:   [163.20 µs 163.87 µs 164.70 µs]
       thrpt:  [5.7903 MiB/s 5.8198 MiB/s 5.8435 MiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
streams/walltime/1000-streams/each-1-bytes
       time:   [4.7777 ms 4.7797 ms 4.7816 ms]
       thrpt:  [204.23 KiB/s 204.32 KiB/s 204.40 KiB/s]
Found 3 outliers among 100 measurements (3.00%)
1 (1.00%) low severe
2 (2.00%) low mild
streams/walltime/1000-streams/each-1000-bytes
       time:   [15.148 ms 15.159 ms 15.170 ms]
       thrpt:  [62.867 MiB/s 62.912 MiB/s 62.957 MiB/s]
transfer/walltime/pacing-false/same-seed
       time:   [3.3480 ms 3.3493 ms 3.3509 ms]
       thrpt:  [1.1657 GiB/s 1.1663 GiB/s 1.1667 GiB/s]
transfer/walltime/pacing-false/varying-seeds
       time:   [3.3503 ms 3.3521 ms 3.3543 ms]
       thrpt:  [1.1645 GiB/s 1.1653 GiB/s 1.1659 GiB/s]
transfer/walltime/pacing-true/same-seed
       time:   [4.0364 ms 4.0376 ms 4.0392 ms]
       thrpt:  [990.30 MiB/s 990.68 MiB/s 990.99 MiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
transfer/walltime/pacing-true/varying-seeds
       time:   [3.9979 ms 3.9992 ms 4.0008 ms]
       thrpt:  [999.79 MiB/s 1000.2 MiB/s 1000.5 MiB/s]
Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) high mild

Instructions per cycle

Criterion reported no significant timing changes.

All benchmarks
Benchmark IPC before IPC after ΔIPC
transfer/walltime/pacing-false/same-seed 2.84 2.87 +1.2%
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500 3.09 3.12 +0.8%
streams/walltime/1000-streams/each-1000-bytes 2.95 2.97 +0.6%
transfer/walltime/pacing-true/same-seed 2.86 2.87 +0.6%
streams-flow-controlled/walltime/10-streams/each-1048576-bytes 3.10 3.08 -0.4%
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500 3.10 3.11 +0.4%
streams-flow-controlled/walltime/1-streams/each-4194304-bytes 2.98 2.97 -0.3%
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500 3.22 3.23 +0.3%
transfer/walltime/pacing-false/varying-seeds 2.86 2.87 +0.3%
transfer/walltime/pacing-true/varying-seeds 2.88 2.88 -0.1%
streams/walltime/1000-streams/each-1-bytes 3.27 3.27 -0.1%
streams/walltime/1-streams/each-1000-bytes 2.57 2.57 -0.1%
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500 2.25 2.25 +0.0%
Profiles for profiler.firefox.com (64)

Download data for profiler.firefox.com or download performance comparison data.

@github-actions

Copy link
Copy Markdown
Contributor

Failed Interop Tests

QUIC Interop Runner, client vs. server, differences relative to main at e166635.

neqo-pr as clientneqo-pr as server
neqo-pr vs. go-x-net: BP BA
neqo-pr vs. haproxy: BP BA
neqo-pr vs. kwik: ⚠️LR C20 Z U L1 C1 🚀C2 V2 ⚠️6 BP
neqo-pr vs. linuxquic: CM
neqo-pr vs. lsquic: L1 C1
neqo-pr vs. msquic: A L1 C1
neqo-pr vs. mvfst: H DC LR C20 M S R Z 3 B U E A L1 L2 C1 C2 6 V2 BP BA CM
neqo-pr vs. neqo: ⚠️Z A
neqo-pr vs. nginx: BP BA
neqo-pr vs. ngtcp2: Z L1 🚀C1 CM
neqo-pr vs. picoquic: A 🚀BP
neqo-pr vs. quic-go: A
neqo-pr vs. quiche: BP BA
neqo-pr vs. s2n-quic: CM
neqo-pr vs. tquic: S BP BA
neqo-pr vs. xquic: Z A 🚀L1 C1
go-x-net vs. neqo-pr: CM
kwik vs. neqo-pr: CM
msquic vs. neqo-pr: CM
mvfst vs. neqo-pr: H DC LR C20 M S R Z 3 B U E A L1 L2 C1 C2 6 V2 BP BA CM
neqo vs. neqo-pr: A
openssl vs. neqo-pr: LR M A CM
quic-go vs. neqo-pr: CM
quic-zig vs. neqo-pr: CM
quiche vs. neqo-pr: CM
quinn vs. neqo-pr: V2 CM
s2n-quic vs. neqo-pr: 🚀BA CM
tquic vs. neqo-pr: CM
xquic vs. neqo-pr: M CM
All results

Succeeded Interop Tests

QUIC Interop Runner, client vs. server

neqo-pr as client

neqo-pr as server

Unsupported Interop Tests

QUIC Interop Runner, client vs. server

neqo-pr as client

neqo-pr as server

@github-actions

Copy link
Copy Markdown
Contributor

Client/server transfer results

Performance differences relative to e166635.

Transfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.

Client vs. server Mean±σ Min–Max Median±MAD MiB/s±σ ΔMedian
neqo-neqo-newreno 24.2 ± 0.2 23.8 – 25.0 24.1 ± 0.2 1323.4 ± 11.7 💔 +0.3 (+1.2%)

Table above only shows statistically significant changes. See all results below.

All results

Transfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.

Client vs. server Mean±σ Min–Max Median±MAD MiB/s±σ ΔMedian
google-google 157.4 ± 0.5 156.2 – 159.1 157.4 ± 0.4 203.3 ± 0.6
google-neqo-cubic 80.0 ± 0.4 79.2 – 80.7 80.0 ± 0.4 400.2 ± 1.8 +0.7 (+0.9%)
neqo-google-cubic ⚠️ 245.5 ± 42.8 206.4 – 332.5 211.1 ± 5.2 130.4 ± 22.7 +1.0 (+0.5%)
neqo-neqo-cubic 24.2 ± 0.2 23.8 – 25.1 24.2 ± 0.2 1322.8 ± 10.8 +0.2 (+0.8%)
neqo-neqo-cubic-nopacing 23.3 ± 0.2 23.1 – 24.0 23.3 ± 0.1 1371.1 ± 10.2 +0.0 (+0.0%)
neqo-neqo-newreno 24.2 ± 0.2 23.8 – 25.0 24.1 ± 0.2 1323.4 ± 11.7 💔 +0.3 (+1.2%)
neqo-neqo-newreno-nopacing 23.4 ± 0.2 23.1 – 24.1 23.3 ± 0.1 1368.4 ± 12.8 +0.1 (+0.2%)
neqo-quiche-cubic 35.7 ± 0.3 35.1 – 36.6 35.6 ± 0.3 896.7 ± 7.9 -0.0 (-0.0%)
neqo-s2n-cubic 45.3 ± 0.2 44.8 – 45.8 45.3 ± 0.2 706.9 ± 3.5 +0.0 (+0.0%)
quiche-neqo-cubic 36.6 ± 0.5 35.4 – 37.8 36.6 ± 0.5 874.5 ± 10.9 +0.1 (+0.2%)
quiche-quiche 42.4 ± 0.3 41.8 – 43.3 42.4 ± 0.3 754.2 ± 5.3
s2n-neqo-cubic 126.6 ± 0.6 125.0 – 128.3 126.5 ± 0.6 252.8 ± 1.3 -0.3 (-0.2%)
s2n-s2n ⚠️ 176.9 ± 23.6 147.8 – 270.1 171.2 ± 1.1 180.9 ± 24.1

Download data for profiler.firefox.com or download performance comparison data.

@larseggert larseggert closed this Nov 19, 2026
@larseggert
larseggert deleted the fix-path-frames-in-pmtud-probe branch November 19, 2026 22:40
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.

transport: PATH_RESPONSE sent in PMTUD probe: paths with MTU below 1380 never validate

1 participant