Bug 464609 - Valgrind memcheck should support Linux pidfd_open
Summary: Valgrind memcheck should support Linux pidfd_open
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: memcheck (show other bugs)
Version: 3.20 GIT
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
: 461926 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-01-21 20:04 UTC by earl_chew
Modified: 2023-04-19 23:33 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Patch to support pidfd_open() (8.01 KB, text/plain)
2023-01-21 20:04 UTC, earl_chew
Details

Note You need to log in before you can comment on or make changes to this bug.
Description earl_chew 2023-01-21 20:04:46 UTC
Created attachment 155482 [details]
Patch to support pidfd_open()

SUMMARY

Linux pidfd_open() has been supported since 5.3 (https://man7.org/linux/man-pages/man2/pidfd_open.2.html) but is not supported on valgrind.

--2029068-- WARNING: unhandled amd64-linux syscall: 434
--2029068-- You may be able to write your own handler.
--2029068-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--2029068-- Nevertheless we consider this a bug.  Please report

Contribution is attached.
Comment 1 Marcos Paulo de Souza 2023-04-08 18:27:05 UTC
Ping? I've seen reports of this missing syscall when trying to debug a problem on Epiphany.
Comment 2 Mark Wielaard 2023-04-14 21:11:11 UTC
Thank you, looks good. Applied as:

commit d387566dd7dbb2ebe6fea5bfb4b2353bd5ab86ba
Author: Earl Chew <earl_chew@yahoo.com>
Date:   Fri Apr 14 22:56:16 2023 +0200

    Support Linux syscall 434 pidfd_open
Comment 3 Mark Wielaard 2023-04-19 23:33:55 UTC
*** Bug 461926 has been marked as a duplicate of this bug. ***