Bug 464609

Summary: Valgrind memcheck should support Linux pidfd_open
Product: [Developer tools] valgrind Reporter: earl_chew
Component: memcheckAssignee: Julian Seward <jseward>
Status: RESOLVED FIXED    
Severity: normal CC: marcos.souza.org, mark, rastersoft
Priority: NOR    
Version First Reported In: 3.20 GIT   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Patch to support pidfd_open()

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. ***