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

tetragon: Adding missing tid setup to HandleGenericEvent #1027

Merged
merged 1 commit into from May 30, 2023

Conversation

olsajiri
Copy link
Contributor

@olsajiri olsajiri commented May 24, 2023

We set tid for process part of the event to the tid value
we received from kprobe/uprobe/tracepoint event.

We missed it in HandleGenericEvent which is called from
Retry eventcache callback.

Copy link
Member

@tixxdz tixxdz left a comment

Choose a reason for hiding this comment

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

Yes this fixes #1025 and #1022 thanks @olsajiri ;-)

@tixxdz
Copy link
Member

tixxdz commented May 24, 2023

That internal.GetProcessCopy() inside HandleGenericEvent() may endup resetting the tid that was set before hence the failures.

I'm fine merging this as it is now... so we don't change too much layouts, then we can improve later

We set tid for process part of the event to the tid value
we received from kprobe/uprobe/tracepoint event.

We missed tid update in HandleGenericEvent function which
is called from Retry eventcache events callbacks.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
@olsajiri olsajiri changed the title fix tetragon: Adding missing tid setup to HandleGenericEvent May 24, 2023
@olsajiri olsajiri marked this pull request as ready for review May 25, 2023 07:08
@olsajiri olsajiri requested a review from a team as a code owner May 25, 2023 07:08
@olsajiri olsajiri requested a review from mtardy May 25, 2023 07:08
@olsajiri olsajiri merged commit 2625699 into cilium:main May 30, 2023
18 checks passed
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.

None yet

4 participants