Skip to content

Update Falco with event parsing fix - #3681

Open
Stringy wants to merge 1 commit into
masterfrom
giles/fix-sinsp-event-parse-crash
Open

Update Falco with event parsing fix#3681
Stringy wants to merge 1 commit into
masterfrom
giles/fix-sinsp-event-parse-crash

Conversation

@Stringy

@Stringy Stringy commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Description

Updates the falcosecurity-libs submodule to include the lenient filename parameter extraction fix.

stackrox/falcosecurity-libs#98

Checklist

  • Investigated and inspected CI test results
  • Updated documentation accordingly

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

CI shuold be enough. Fedora CoreOS x86 was crashing, so this is the priority.

@Stringy
Stringy requested a review from a team as a code owner July 31, 2026 09:44
@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Updated the bundled Falco security libraries to a newer revision.
    • No user-facing functionality or public interfaces changed.

Walkthrough

The falcosecurity-libs submodule reference changes from commit fdb27236a5b589fb2f658cb3453b6e52388eb22c to commit 9d74644c35b11dbea3e19e9fca8bcf21dffab1bd.

Changes

Falco libraries update

Layer / File(s) Summary
Update submodule reference
falcosecurity-libs
The submodule reference changes to commit 9d74644c35b11dbea3e19e9fca8bcf21dffab1bd.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the event parsing fix, which matches the primary purpose of the changes.
Description check ✅ Passed The description includes the required sections, explains the submodule update, and provides a testing rationale.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch giles/fix-sinsp-event-parse-crash

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@collector/lib/system-inspector/Service.cpp`:
- Around line 130-136: Update the sinsp_exception handling in GetNext() so only
genuinely recoverable parse failures return nullptr for Run() to retry;
propagate fatal or invalid-state exceptions or reinitialize the capture instead.
Replace the unthrottled CLOG warning with CLOG_THROTTLED for repeated failures,
preserving the existing successful-event path.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 50f110a2-060a-44bb-857d-5889c44504de

📥 Commits

Reviewing files that changed from the base of the PR and between 2b7522e and 7219d7e.

📒 Files selected for processing (2)
  • collector/lib/system-inspector/Service.cpp
  • falcosecurity-libs

Comment thread collector/lib/system-inspector/Service.cpp Outdated
@codecov-commenter

codecov-commenter commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 27.43%. Comparing base (2b7522e) to head (701263d).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3681   +/-   ##
=======================================
  Coverage   27.43%   27.43%           
=======================================
  Files          94       94           
  Lines        5406     5406           
  Branches     2535     2535           
=======================================
  Hits         1483     1483           
  Misses       3198     3198           
  Partials      725      725           
Flag Coverage Δ
collector-unit-tests 27.43% <ø> (ø)

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

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Updates the falcosecurity-libs submodule to include the lenient
filename parameter extraction fix that prevents collector from
crashing on malformed BPF probe data during execve event parsing.
@Stringy
Stringy force-pushed the giles/fix-sinsp-event-parse-crash branch from 7219d7e to 701263d Compare July 31, 2026 10:30
@Stringy Stringy changed the title Catch sinsp_exception in Service::GetNext() Update Falco with event parsing fix Jul 31, 2026
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.

2 participants