Skip to content

Bump io.sqreen:libsqreen to 17.6.0 - #13135

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
masterfrom
alejandro.gonzalez/libsqreen-17.6.0
Oct 30, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
masterfrom
alejandro.gonzalez/libsqreen-17.6.0

Conversation

@jandro996

@jandro996 jandro996 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

What Does This Do

Bumps io.sqreen:libsqreen from 17.5.0 to 17.6.0.

Motivation

Fixes a SIGSEGV in libsqreen_jni.so JNI_OnLoad during AppSec initialization (APPSEC-69052). The native ddprof profiler (ddprof --preset cpu_live_heap, v0.19.0) wrote its malloc hook into the lazily-bound GOT slot of libsqreen_jni.so before ld.so relocated the library. glibc then applied the lazy relocation on top (*slot += l_addr), and the first malloc call jumped to a garbage address.

libsqreen 17.6.0 links libsqreen_jni.so with -z now -z relro (BIND_NOW, DataDog/libddwaf-java#219), so ld.so overwrites the slot with the resolved symbol and the early write is harmless.

17.6.0 also includes DataDog/libddwaf-java#216 (reject new WAF contexts once handle closure begins).

Additional Notes

  • :dd-java-agent:appsec:test passes locally with 17.6.0 (693 tests, 0 failures).
  • All 452 affected gradle.lockfile files are updated. The 17.6.0 POM has the same dependencies as 17.5.0 (slf4j-api 1.7.30), so only the libsqreen entry changes. Cross-checked by regenerating :dd-java-agent:appsec and :dd-java-agent:agent-tooling with resolveAndLockAll --write-locks.

Jira ticket: APPSEC-69052

libsqreen 17.6.0 links libsqreen_jni.so with BIND_NOW (DataDog/libddwaf-java#219). This fixes a SIGSEGV in JNI_OnLoad when the native ddprof profiler writes its malloc hook into the lazily-bound GOT slot before ld.so relocates the library (APPSEC-69052).
@jandro996 jandro996 added type: bug fix Bug fix comp: asm waf Application Security Management (WAF) labels Oct 30, 2026
@jandro996
jandro996 requested review from a team as code owners October 30, 2026 15:16
@jandro996
jandro996 requested review from claponcet and dougqh and removed request for a team October 30, 2026 15:16
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T15:19:02.012465Z 681f06d PR opened
🔒 Security Review ✅ Completed 2026-10-30T15:20:25.549588Z 681f06d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@datadog-official datadog-official Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Bits Code Review: PASS

More details

The libsqreen 17.6.0 dependency selection raised no actionable integration concerns. The JNI relocation fix and WAF-context closure behavior remain unverified at runtime.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 681f06d

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 681f06de8f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread dd-java-agent/appsec/build.gradle Resolved
@jandro996
jandro996 requested a review from a team as a code owner October 30, 2026 15:22
@jandro996
jandro996 requested review from ValentinZakharov and removed request for a team October 30, 2026 15:22
@jandro996 jandro996 added the tag: ai generated Largely based on code generated by an AI or LLM label Oct 30, 2026
@jandro996
jandro996 enabled auto-merge October 30, 2026 15:24

@datadog-official datadog-official Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Bits Code Review: PASS

More details

The dependency declaration and all 452 affected lockfiles consistently select libsqreen 17.6.0. Native crash resolution and WAF lifecycle behavior were not verified through execution.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit ba56d63

@datadog-official

This comment has been minimized.

@dd-octo-sts

dd-octo-sts Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 14.04 s 13.93 s [-0.0%; +1.6%] (no difference)
startup:insecure-bank:tracing:Agent 12.89 s 12.96 s [-1.3%; +0.1%] (no difference)
startup:petclinic:appsec:Agent 17.21 s 17.13 s [-0.4%; +1.3%] (no difference)
startup:petclinic:iast:Agent 16.99 s 17.14 s [-1.7%; -0.0%] (maybe better)
startup:petclinic:profiling:Agent 16.73 s 16.77 s [-1.3%; +0.9%] (no difference)
startup:petclinic:sca:Agent 17.14 s 17.02 s [+0.0%; +1.4%] (maybe worse)
startup:petclinic:tracing:Agent 16.15 s 16.20 s [-1.4%; +0.7%] (no difference)

Commit: ba56d638 · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

@pr-commenter

pr-commenter Bot commented Oct 30, 2026

Copy link
Copy Markdown

Kafka / producer-benchmark

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master alejandro.gonzalez/libsqreen-17.6.0
git_commit_date 1793371951 1793373759
git_commit_sha 9438712 ba56d63
See matching parameters
Baseline Candidate
ci_job_date 1793374965 1793374965
ci_job_id 2196694105 2196694105
ci_pipeline_id 148978575 148978575
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
jdkVersion 11.0.31 11.0.31
jmhVersion 1.36 1.36
jvm /usr/lib/jvm/java-11-openjdk-amd64/bin/java /usr/lib/jvm/java-11-openjdk-amd64/bin/java
jvmArgs -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=15002 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=15002 -Dhttp.nonProxyHosts=localhost *.localhost
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-ogrg6jo9 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-ogrg6jo9 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
vmName OpenJDK 64-Bit Server VM OpenJDK 64-Bit Server VM
vmVersion 11.0.31+11-post-1ubuntu1-22.04.2-Ubuntu 11.0.31+11-post-1ubuntu1-22.04.2-Ubuntu

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 3 metrics, 0 unstable metrics.

See unchanged results
scenario Δ mean throughput
scenario:not-instrumented/KafkaProduceBenchmark.benchProduce unsure
[-72489.808op/s; -43.805op/s] or [-3.956%; -0.002%]
scenario:only-tracing-dsm-disabled-benchmarks/KafkaProduceBenchmark.benchProduce same
scenario:only-tracing-dsm-enabled-benchmarks/KafkaProduceBenchmark.benchProduce unsure
[-4567.632op/s; -813.555op/s] or [-3.610%; -0.643%]

@pr-commenter

pr-commenter Bot commented Oct 30, 2026

Copy link
Copy Markdown

Kafka / consumer-benchmark

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master alejandro.gonzalez/libsqreen-17.6.0
git_commit_date 1793371951 1793373759
git_commit_sha 9438712 ba56d63
See matching parameters
Baseline Candidate
ci_job_date 1793375027 1793375027
ci_job_id 2196694107 2196694107
ci_pipeline_id 148978575 148978575
cpu_model Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz
jdkVersion 11.0.31 11.0.31
jmhVersion 1.36 1.36
jvm /usr/lib/jvm/java-11-openjdk-amd64/bin/java /usr/lib/jvm/java-11-openjdk-amd64/bin/java
jvmArgs -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=15002 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=15002 -Dhttp.nonProxyHosts=localhost *.localhost
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-x4870dgt 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-x4870dgt 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
vmName OpenJDK 64-Bit Server VM OpenJDK 64-Bit Server VM
vmVersion 11.0.31+11-post-1ubuntu1-22.04.2-Ubuntu 11.0.31+11-post-1ubuntu1-22.04.2-Ubuntu

Summary

Found 0 performance improvements and 1 performance regressions! Performance is the same for 2 metrics, 0 unstable metrics.

scenario Δ mean throughput
scenario:only-tracing-dsm-enabled-benchmarks/KafkaConsumerBenchmark.benchConsume worse
[-8328.484op/s; -2426.008op/s] or [-5.008%; -1.459%]
See unchanged results
scenario Δ mean throughput
scenario:not-instrumented/KafkaConsumerBenchmark.benchConsume same
scenario:only-tracing-dsm-disabled-benchmarks/KafkaConsumerBenchmark.benchConsume same

@jandro996
jandro996 added this pull request to the merge queue Oct 30, 2026
@dd-octo-sts

dd-octo-sts Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-10-30 16:21:51 UTC ℹ️ Start processing command /merge


2026-10-30 16:21:55 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 2h (p90).


2026-10-30 17:17:15 UTC ℹ️ MergeQueue: This merge request was merged

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 30, 2026
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit f9b4674 into master Oct 30, 2026
626 of 634 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the alejandro.gonzalez/libsqreen-17.6.0 branch October 30, 2026 17:17
@github-actions github-actions Bot added this to the 1.69.0 milestone Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: asm waf Application Security Management (WAF) tag: ai generated Largely based on code generated by an AI or LLM type: bug fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants