Skip to content

tetragon: Adding missing tid setup to HandleGenericEvent#1027

Merged
olsajiri merged 1 commit into
cilium:mainfrom
olsajiri:tid_fix
May 30, 2023
Merged

tetragon: Adding missing tid setup to HandleGenericEvent#1027
olsajiri merged 1 commit into
cilium:mainfrom
olsajiri:tid_fix

Conversation

@olsajiri

@olsajiri olsajiri commented May 24, 2023

Copy link
Copy Markdown
Contributor

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.

@tixxdz tixxdz left a comment

Copy link
Copy Markdown
Member

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

tixxdz commented May 24, 2023

Copy link
Copy Markdown
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants