Skip to content

[CORE-643] fix: fork probe to lookup in user_pids map to handle processes marked for tracking by user space#47

Merged
RonFed merged 1 commit into
mainfrom
fix_fork_track_with_tracked_pids
Mar 2, 2026
Merged

[CORE-643] fix: fork probe to lookup in user_pids map to handle processes marked for tracking by user space#47
RonFed merged 1 commit into
mainfrom
fix_fork_track_with_tracked_pids

Conversation

@RonFed

@RonFed RonFed commented Mar 2, 2026

Copy link
Copy Markdown
Collaborator

Fix a bug where processes that were added by TrackPIDs were not reporting fork events.

TrackPIDs is updating the map user_pid_to_container_pid - with the pid as seen from the user pid namespace.
The fork probe was looking in the tracked_pids_to_ns_pids map - which container the pids in the host pid namespace (as seen by the bpf_get_current_pid_tgid helper). This caused fork events for processes that were added by the user to be missing.

@RonFed RonFed changed the title fix: fork probe to lookup in user_pids map to handle processes marked for tracking by user space [CORE-643] fix: fork probe to lookup in user_pids map to handle processes marked for tracking by user space Mar 2, 2026
@RonFed RonFed force-pushed the fix_fork_track_with_tracked_pids branch from b30d1cd to 43df677 Compare March 2, 2026 16:46
@RonFed RonFed force-pushed the fix_fork_track_with_tracked_pids branch from 43df677 to 3389c2d Compare March 2, 2026 16:52
@tamirdavid1 tamirdavid1 marked this pull request as ready for review March 2, 2026 18:18
@RonFed RonFed added the bug Something isn't working label Mar 2, 2026
@RonFed RonFed merged commit 1855b94 into main Mar 2, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants