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

Linux: task.get_parent_pid() fix to mimic getppid() syscall #1428

Merged

Conversation

gcmoreira
Copy link
Contributor

@gcmoreira gcmoreira commented Dec 18, 2024

In the context of #1412, I missed another bug when retrieving the task parent in the initial fix. The correct value should be task.real_parent.tgid rather than the initial task.parent.pid. See https://elixir.bootlin.com/linux/v6.12.5/source/kernel/sys.c#L989

Copy link
Member

@ikelos ikelos left a comment

Choose a reason for hiding this comment

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

Ok, as long as people in Linux land are getting what they expect...

@ikelos ikelos merged commit 2383ea2 into volatilityfoundation:develop Dec 18, 2024
13 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.

2 participants