Skip to content

[9.3] [ML] Fix CProcessStats RSS units and initialization (#2917)#2938

Open
valeriy42 wants to merge 2 commits intoelastic:9.3from
valeriy42:backport/9.3/pr-2917
Open

[9.3] [ML] Fix CProcessStats RSS units and initialization (#2917)#2938
valeriy42 wants to merge 2 commits intoelastic:9.3from
valeriy42:backport/9.3/pr-2917

Conversation

@valeriy42
Copy link
Contributor

Backport

This will backport the following commits from main to 9.3:

Questions ?

Please refer to the Backport tool documentation

Fixes two bugs in residentSetSize() on Linux:

Initialize rss to 0 (prevents UB if /proc/self/statm unreadable)
Convert from pages to bytes using sysconf(_SC_PAGE_SIZE) (was ~4096x too small)

(cherry picked from commit 46f3b00)

# Conflicts:
#	docs/CHANGELOG.asciidoc
@prodsecmachine
Copy link

prodsecmachine commented Mar 6, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@valeriy42 valeriy42 added the >bug label Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants