Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: increase loop iteration count in pid lookup #3264

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bpf/lib/bpf_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ __event_find_parent(struct task_struct *task)
int i;

#pragma unroll
for (i = 0; i < 4; i++) {
for (i = 0; i < 6; i++) {
probe_read_kernel(&task, sizeof(task), _(&task->real_parent));
if (!task)
break;
Expand Down Expand Up @@ -157,7 +157,7 @@ FUNC_INLINE struct execve_map_value *event_find_curr(__u32 *ppid, bool *walked)
__u32 pid;

#pragma unroll
for (i = 0; i < 4; i++) {
for (i = 0; i < 6; i++) {
probe_read_kernel(&pid, sizeof(pid), _(&task->tgid));
value = execve_map_get_noinit(pid);
if (value && value->key.ktime != 0)
Expand Down
Loading