Skip to content

[Profiler] Fix possible namepipe-related issues#8821

Open
chrisnas wants to merge 5 commits into
masterfrom
chrisnas/VULN-420_impersonate
Open

[Profiler] Fix possible namepipe-related issues#8821
chrisnas wants to merge 5 commits into
masterfrom
chrisnas/VULN-420_impersonate

Conversation

@chrisnas

Copy link
Copy Markdown
Contributor

Summary of changes

  • Fix possible elevation attack
  • Fix invalid data injection

Reason for change

  • Profiler ETW client connects to \.\pipe\DD_ETW_DISPATCHER without SECURITY_SQOS_PRESENT — squatting low-priv server can ImpersonateNamedPipeClient and steal the profiled process's token
  • protect against forced crash by injecting invalid ETW events

Implementation details

Test coverage

New tests have been added

Other details

- Fix invalid data injection
@chrisnas chrisnas requested a review from a team as a code owner June 24, 2026 15:42
@github-actions github-actions Bot added the area:profiler Issues related to the continous-profiler label Jun 24, 2026
@chrisnas chrisnas changed the title [Profiler] Fix possible namepipe-related vulnerabilities [Profiler] Fix possible namepipe-related issues Jun 24, 2026
@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Jun 24, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8821) and master.

✅ No regressions detected - check the details below

Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration69.75 ± (69.69 - 69.99) ms71.97 ± (72.01 - 72.56) ms+3.2%✅⬆️
.NET Framework 4.8 - Bailout
duration73.83 ± (73.62 - 73.95) ms74.54 ± (74.51 - 74.88) ms+1.0%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1078.11 ± (1080.89 - 1087.00) ms1082.79 ± (1082.74 - 1090.12) ms+0.4%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.18 ± (22.15 - 22.22) ms22.26 ± (22.21 - 22.31) ms+0.4%✅⬆️
process.time_to_main_ms80.56 ± (80.39 - 80.72) ms82.84 ± (82.55 - 83.12) ms+2.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.93 ± (10.92 - 10.93) MB10.93 ± (10.93 - 10.93) MB+0.0%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.14 ± (22.11 - 22.17) ms22.01 ± (21.98 - 22.05) ms-0.6%
process.time_to_main_ms81.83 ± (81.67 - 81.99) ms81.86 ± (81.69 - 82.04) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.96 ± (10.95 - 10.96) MB10.96 ± (10.95 - 10.96) MB+0.0%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms210.03 ± (209.21 - 210.85) ms209.64 ± (208.63 - 210.64) ms-0.2%
process.time_to_main_ms531.66 ± (530.48 - 532.85) ms528.71 ± (527.23 - 530.19) ms-0.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.28 ± (49.25 - 49.31) MB49.24 ± (49.20 - 49.28) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.3%
.NET 6 - Baseline
process.internal_duration_ms21.21 ± (21.15 - 21.26) ms21.24 ± (21.19 - 21.30) ms+0.2%✅⬆️
process.time_to_main_ms72.22 ± (71.91 - 72.53) ms72.82 ± (72.53 - 73.11) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.63 ± (10.63 - 10.63) MB10.64 ± (10.64 - 10.64) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.87 ± (20.83 - 20.90) ms20.95 ± (20.92 - 20.99) ms+0.4%✅⬆️
process.time_to_main_ms71.64 ± (71.45 - 71.83) ms71.68 ± (71.48 - 71.87) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.76 ± (10.75 - 10.76) MB10.76 ± (10.76 - 10.77) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms369.91 ± (367.65 - 372.17) ms372.87 ± (370.35 - 375.39) ms+0.8%✅⬆️
process.time_to_main_ms535.16 ± (533.97 - 536.35) ms538.21 ± (536.98 - 539.43) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.36 ± (50.34 - 50.38) MB50.24 ± (50.22 - 50.26) MB-0.2%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.0%
.NET 8 - Baseline
process.internal_duration_ms19.10 ± (19.06 - 19.13) ms19.08 ± (19.05 - 19.12) ms-0.1%
process.time_to_main_ms68.68 ± (68.55 - 68.80) ms68.68 ± (68.54 - 68.82) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.66 ± (7.66 - 7.67) MB7.71 ± (7.70 - 7.72) MB+0.7%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.24 ± (19.19 - 19.28) ms19.28 ± (19.25 - 19.32) ms+0.2%✅⬆️
process.time_to_main_ms71.18 ± (70.93 - 71.43) ms72.75 ± (72.50 - 72.99) ms+2.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.72 - 7.73) MB7.74 ± (7.74 - 7.74) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms299.13 ± (296.81 - 301.46) ms296.81 ± (294.56 - 299.07) ms-0.8%
process.time_to_main_ms483.96 ± (482.97 - 484.95) ms485.38 ± (484.50 - 486.25) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.69 ± (37.66 - 37.72) MB37.69 ± (37.66 - 37.72) MB+0.0%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.0%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration202.69 ± (202.41 - 203.40) ms199.79 ± (199.19 - 200.14) ms-1.4%
.NET Framework 4.8 - Bailout
duration205.83 ± (205.54 - 206.38) ms203.44 ± (202.86 - 203.71) ms-1.2%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1207.53 ± (1211.86 - 1220.23) ms1204.63 ± (1203.75 - 1210.92) ms-0.2%
.NET Core 3.1 - Baseline
process.internal_duration_ms194.68 ± (194.22 - 195.15) ms193.01 ± (192.62 - 193.41) ms-0.9%
process.time_to_main_ms84.28 ± (83.98 - 84.58) ms83.92 ± (83.63 - 84.22) ms-0.4%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.09 ± (16.07 - 16.11) MB16.03 ± (16.01 - 16.06) MB-0.4%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (19 - 20)-0.2%
.NET Core 3.1 - Bailout
process.internal_duration_ms195.08 ± (194.72 - 195.43) ms192.64 ± (192.31 - 192.98) ms-1.2%
process.time_to_main_ms86.10 ± (85.91 - 86.30) ms84.76 ± (84.52 - 85.00) ms-1.6%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.17 ± (16.14 - 16.19) MB16.11 ± (16.09 - 16.14) MB-0.3%
runtime.dotnet.threads.count20 ± (20 - 21)21 ± (21 - 21)+0.7%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms387.06 ± (386.00 - 388.11) ms383.62 ± (382.44 - 384.81) ms-0.9%
process.time_to_main_ms544.58 ± (543.53 - 545.63) ms542.25 ± (541.02 - 543.49) ms-0.4%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.20 ± (58.00 - 58.41) MB57.65 ± (57.57 - 57.73) MB-1.0%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.4%
.NET 6 - Baseline
process.internal_duration_ms200.81 ± (200.41 - 201.22) ms198.05 ± (197.61 - 198.49) ms-1.4%
process.time_to_main_ms74.04 ± (73.79 - 74.29) ms73.16 ± (72.88 - 73.44) ms-1.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.40 ± (16.38 - 16.42) MB16.41 ± (16.39 - 16.44) MB+0.1%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.6%
.NET 6 - Bailout
process.internal_duration_ms199.51 ± (199.06 - 199.95) ms197.70 ± (197.23 - 198.18) ms-0.9%
process.time_to_main_ms74.62 ± (74.40 - 74.84) ms73.59 ± (73.37 - 73.81) ms-1.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.41 ± (16.39 - 16.43) MB16.50 ± (16.48 - 16.53) MB+0.5%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.6%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms585.00 ± (582.39 - 587.61) ms583.85 ± (581.18 - 586.51) ms-0.2%
process.time_to_main_ms553.26 ± (552.09 - 554.43) ms548.67 ± (547.62 - 549.73) ms-0.8%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.42 ± (61.32 - 61.51) MB61.39 ± (61.31 - 61.48) MB-0.0%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.1%
.NET 8 - Baseline
process.internal_duration_ms197.09 ± (196.73 - 197.45) ms195.62 ± (195.16 - 196.07) ms-0.7%
process.time_to_main_ms72.49 ± (72.21 - 72.76) ms71.97 ± (71.73 - 72.22) ms-0.7%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.74 ± (11.72 - 11.77) MB11.77 ± (11.75 - 11.79) MB+0.3%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.1%
.NET 8 - Bailout
process.internal_duration_ms197.64 ± (197.24 - 198.04) ms194.23 ± (193.80 - 194.65) ms-1.7%
process.time_to_main_ms73.84 ± (73.64 - 74.05) ms72.78 ± (72.59 - 72.98) ms-1.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.81 ± (11.79 - 11.83) MB11.81 ± (11.78 - 11.83) MB-0.0%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.4%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms513.76 ± (511.18 - 516.33) ms511.24 ± (508.59 - 513.89) ms-0.5%
process.time_to_main_ms502.42 ± (501.53 - 503.30) ms499.39 ± (498.62 - 500.16) ms-0.6%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.10 ± (51.06 - 51.13) MB51.13 ± (51.10 - 51.17) MB+0.1%✅⬆️
runtime.dotnet.threads.count30 ± (29 - 30)30 ± (29 - 30)-0.2%
Comparison explanation

Execution-time benchmarks measure the whole time it takes to execute a program, and are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are highlighted in **red**. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard.

Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph).

Duration charts
FakeDbCommand (.NET Framework 4.8)
gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8821) - mean (72ms)  : 68, 77
    master - mean (70ms)  : 68, 72

    section Bailout
    This PR (8821) - mean (75ms)  : 73, 77
    master - mean (74ms)  : 72, 75

    section CallTarget+Inlining+NGEN
    This PR (8821) - mean (1,086ms)  : 1032, 1141
    master - mean (1,084ms)  : 1039, 1129

Loading
FakeDbCommand (.NET Core 3.1)
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8821) - mean (112ms)  : 105, 120
    master - mean (109ms)  : 106, 112

    section Bailout
    This PR (8821) - mean (110ms)  : 108, 113
    master - mean (111ms)  : 109, 112

    section CallTarget+Inlining+NGEN
    This PR (8821) - mean (778ms)  : 760, 795
    master - mean (780ms)  : 755, 804

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8821) - mean (101ms)  : 94, 107
    master - mean (100ms)  : 93, 107

    section Bailout
    This PR (8821) - mean (99ms)  : 95, 103
    master - mean (99ms)  : 94, 104

    section CallTarget+Inlining+NGEN
    This PR (8821) - mean (945ms)  : 907, 983
    master - mean (939ms)  : 900, 979

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8821) - mean (94ms)  : 92, 97
    master - mean (94ms)  : 92, 97

    section Bailout
    This PR (8821) - mean (100ms)  : 93, 106
    master - mean (98ms)  : 92, 103

    section CallTarget+Inlining+NGEN
    This PR (8821) - mean (812ms)  : 775, 849
    master - mean (813ms)  : 781, 845

Loading
HttpMessageHandler (.NET Framework 4.8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8821) - mean (200ms)  : 194, 205
    master - mean (203ms)  : 197, 208

    section Bailout
    This PR (8821) - mean (203ms)  : 199, 207
    master - mean (206ms)  : 202, 210

    section CallTarget+Inlining+NGEN
    This PR (8821) - mean (1,207ms)  : 1155, 1260
    master - mean (1,216ms)  : 1153, 1279

Loading
HttpMessageHandler (.NET Core 3.1)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8821) - mean (287ms)  : 281, 293
    master - mean (289ms)  : 282, 296

    section Bailout
    This PR (8821) - mean (287ms)  : 282, 293
    master - mean (291ms)  : 287, 295

    section CallTarget+Inlining+NGEN
    This PR (8821) - mean (966ms)  : 949, 983
    master - mean (973ms)  : 953, 994

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8821) - mean (281ms)  : 275, 287
    master - mean (284ms)  : 278, 290

    section Bailout
    This PR (8821) - mean (281ms)  : 274, 287
    master - mean (284ms)  : 277, 290

    section CallTarget+Inlining+NGEN
    This PR (8821) - mean (1,165ms)  : 1130, 1201
    master - mean (1,175ms)  : 1138, 1211

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8821) - mean (278ms)  : 271, 285
    master - mean (280ms)  : 275, 284

    section Bailout
    This PR (8821) - mean (277ms)  : 272, 283
    master - mean (282ms)  : 278, 286

    section CallTarget+Inlining+NGEN
    This PR (8821) - mean (1,041ms)  : 995, 1088
    master - mean (1,048ms)  : 1004, 1092

Loading

@pr-commenter

pr-commenter Bot commented Jun 24, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-07 09:23:32

Comparing candidate commit 58a68a2 in PR branch chrisnas/VULN-420_impersonate with baseline commit 2f13b49 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 2 performance regressions! Performance is the same for 70 metrics, 0 unstable metrics, 60 known flaky benchmarks, 66 flaky benchmarks without significant changes.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

scenario:Benchmarks.Trace.DbCommandBenchmark.ExecuteNonQuery net472

  • 🟥 throughput [-30152.678op/s; -27028.712op/s] or [-8.493%; -7.613%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-5505.023op/s; -4909.795op/s] or [-6.284%; -5.605%]

Known flaky benchmarks

These benchmarks are marked as flaky and will not trigger a failure. Modify FLAKY_BENCHMARKS_REGEX to control which benchmarks are marked as flaky.

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1

  • 🟩 throughput [+11195.981op/s; +14304.539op/s] or [+5.192%; +6.633%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-7762.699op/s; -7280.313op/s] or [-9.204%; -8.632%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+324.061ms; +325.527ms] or [+160.811%; +161.538%]
  • 🟥 throughput [-40.776op/s; -37.216op/s] or [-7.336%; -6.696%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • 🟥 execution_time [+378.187ms; +380.889ms] or [+298.791%; +300.925%]
  • 🟩 throughput [+85.372op/s; +92.266op/s] or [+11.256%; +12.165%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟥 execution_time [+391.983ms; +394.359ms] or [+346.890%; +348.993%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net472

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.528%; +27.540%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net6.0

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.976%; +9.987%]
  • 🟩 execution_time [-16.054ms; -11.882ms] or [-7.498%; -5.549%]
  • 🟩 throughput [+7170.557op/s; +9962.890op/s] or [+5.234%; +7.272%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody netcoreapp3.1

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.500%; +27.510%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net472

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-264391.710op/s; -255892.010op/s] or [-26.996%; -26.128%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net6.0

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.557%; +38.566%]
  • 🟩 execution_time [-26.313ms; -21.427ms] or [-11.734%; -9.556%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody netcoreapp3.1

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟥 throughput [-154412.338op/s; -137814.753op/s] or [-22.186%; -19.801%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net6.0

  • 🟩 throughput [+9146.040op/s; +12070.109op/s] or [+5.819%; +7.680%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody netcoreapp3.1

  • 🟩 throughput [+9346.301op/s; +12082.553op/s] or [+7.446%; +9.625%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net6.0

  • 🟩 throughput [+492701.222op/s; +511358.315op/s] or [+16.429%; +17.051%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody netcoreapp3.1

  • 🟩 execution_time [-18.359ms; -13.534ms] or [-8.463%; -6.238%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs net472

  • 🟥 execution_time [+299.774ms; +301.008ms] or [+149.787%; +150.403%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs net6.0

  • 🟥 execution_time [+300.072ms; +303.299ms] or [+151.327%; +152.954%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs netcoreapp3.1

  • 🟥 execution_time [+300.482ms; +303.266ms] or [+151.359%; +152.762%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net472

  • 🟥 execution_time [+297.125ms; +298.810ms] or [+145.936%; +146.763%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net6.0

  • 🟥 execution_time [+294.023ms; +296.774ms] or [+143.737%; +145.082%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs netcoreapp3.1

  • 🟥 execution_time [+298.395ms; +302.801ms] or [+149.138%; +151.339%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net6.0

  • 🟥 execution_time [+24.918µs; +48.659µs] or [+7.955%; +15.534%]
  • 🟥 throughput [-449.990op/s; -250.390op/s] or [-14.028%; -7.805%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.644ms; +300.421ms] or [+149.553%; +149.941%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net6.0

  • unstable execution_time [+321.972ms; +391.730ms] or [+349.836%; +425.631%]
  • 🟩 throughput [+650.985op/s; +856.187op/s] or [+5.349%; +7.035%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest netcoreapp3.1

  • unstable execution_time [+245.157ms; +308.977ms] or [+186.145%; +234.603%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+331.155ms; +419.173ms] or [+152.262%; +192.732%]
  • 🟥 throughput [-669.002op/s; -615.923op/s] or [-60.618%; -55.809%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • unstable execution_time [+198.730ms; +331.936ms] or [+84.690%; +141.457%]
  • 🟥 throughput [-676.913op/s; -593.460op/s] or [-45.150%; -39.584%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • unstable execution_time [+347.272ms; +368.761ms] or [+207.709%; +220.562%]
  • 🟥 throughput [-442.903op/s; -402.377op/s] or [-30.839%; -28.017%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net6.0

  • 🟩 throughput [+27.899op/s; +43.594op/s] or [+5.508%; +8.606%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+303.476ms; +305.762ms] or [+152.825%; +153.976%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net6.0

  • 🟥 execution_time [+297.337ms; +310.129ms] or [+148.996%; +155.406%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch netcoreapp3.1

  • 🟥 execution_time [+302.467ms; +305.787ms] or [+151.947%; +153.615%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+300.685ms; +302.306ms] or [+150.994%; +151.808%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net6.0

  • 🟥 execution_time [+297.000ms; +306.924ms] or [+146.853%; +151.760%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync netcoreapp3.1

  • 🟥 execution_time [+303.206ms; +307.362ms] or [+153.678%; +155.785%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+300.994ms; +302.671ms] or [+151.072%; +151.914%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net6.0

  • 🟥 execution_time [+302.723ms; +305.740ms] or [+150.880%; +152.383%]
  • 🟩 throughput [+38013.166op/s; +45721.432op/s] or [+7.548%; +9.079%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync netcoreapp3.1

  • 🟥 execution_time [+298.804ms; +302.945ms] or [+148.652%; +150.712%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net6.0

  • 🟩 execution_time [-16.453ms; -12.773ms] or [-7.651%; -5.939%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net472

  • unstable execution_time [+18.181µs; +61.150µs] or [+4.491%; +15.104%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net6.0

  • 🟩 allocated_mem [-19.186KB; -19.164KB] or [-6.999%; -6.991%]
  • unstable execution_time [-40.853µs; +14.508µs] or [-8.074%; +2.867%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark netcoreapp3.1

  • unstable execution_time [-46.681µs; +20.356µs] or [-8.090%; +3.528%]
  • unstable throughput [-39.515op/s; +145.358op/s] or [-2.258%; +8.305%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net6.0

  • unstable execution_time [+9.606µs; +16.041µs] or [+22.706%; +37.915%]
  • 🟥 throughput [-6251.624op/s; -4108.896op/s] or [-26.317%; -17.297%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark netcoreapp3.1

  • unstable execution_time [-14.141µs; -6.225µs] or [-21.939%; -9.658%]
  • unstable throughput [+1572.399op/s; +3311.987op/s] or [+9.647%; +20.320%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.132ms; +302.934ms] or [+152.209%; +153.120%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net6.0

  • 🟥 execution_time [+301.506ms; +304.171ms] or [+153.465%; +154.822%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+299.936ms; +302.103ms] or [+150.155%; +151.240%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net6.0

  • 🟩 throughput [+39900.578op/s; +45704.979op/s] or [+7.552%; +8.651%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+299.288ms; +301.407ms] or [+149.168%; +150.224%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net6.0

  • 🟥 execution_time [+303.536ms; +306.450ms] or [+152.421%; +153.885%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+302.985ms; +305.359ms] or [+153.655%; +154.858%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.703ms; +300.722ms] or [+149.493%; +150.002%]
  • 🟩 throughput [+66049343.993op/s; +66394022.080op/s] or [+48.101%; +48.352%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net6.0

  • 🟥 execution_time [+417.936ms; +421.582ms] or [+519.778%; +524.313%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore netcoreapp3.1

  • 🟥 execution_time [+299.245ms; +300.431ms] or [+149.257%; +149.848%]
  • 🟩 throughput [+18211128.522op/s; +19198226.615op/s] or [+8.066%; +8.504%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net6.0

  • 🟩 throughput [+97574.416op/s; +105371.873op/s] or [+9.110%; +9.838%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope netcoreapp3.1

  • 🟩 throughput [+59130.011op/s; +78697.218op/s] or [+6.844%; +9.109%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net6.0

  • 🟩 throughput [+89619.362op/s; +120514.058op/s] or [+6.937%; +9.328%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan netcoreapp3.1

  • 🟩 throughput [+86159.705op/s; +95417.736op/s] or [+8.557%; +9.477%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net6.0

  • 🟩 throughput [+43557.374op/s; +49588.333op/s] or [+7.909%; +9.004%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net6.0

  • 🟩 throughput [+71707.918op/s; +89062.339op/s] or [+8.012%; +9.950%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes netcoreapp3.1
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

// Refuse to continue so we never end up attaching to an impersonated pipe.
if (lastError == ERROR_ACCESS_DENIED)
{
pThis->ShowLastError("Failed to create named pipe: the name is already in use (possible squatting); aborting...", lastError);

@bouwkast bouwkast Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Does this actually block the startup when there is already the pipe created?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It means that we won't get any event from the agent but the profiler will still be working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:profiler Issues related to the continous-profiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants