Bug 486569

Summary: linux inotify_init syscall wrapper missing POST entry in syscall_table
Product: [Developer tools] valgrind Reporter: Paul Floyd <pjfloyd>
Component: generalAssignee: Paul Floyd <pjfloyd>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 3.22 GIT   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Paul Floyd 2024-05-04 12:58:54 UTC
From the developers mailing list

Daniel Pouzzner

coregrind/m_syswrap/syswrap-amd64-linux.c and friends have

   LINX_(__NR_inotify_init,  sys_inotify_init),

but it's supposed to be

   LINXY(__NR_inotify_init,	 sys_inotify_init),

(POST(sys_inotify_init) is already properly defined and works right.)

Interestingly, this bug only became apparent with release 3.23.0.  v3.22.0 has
the same behavior around PRE/POST -- no call to POST(sys_inotify_init) -- but
doesn't generate any false positive "already closed" errors.
Comment 1 Paul Floyd 2024-05-07 07:39:36 UTC
commit b38115cc6087f30f872c533f93c7c31a6d73eb24
Author: Paul Floyd <pjfloyd@wanadoo.fr>
Date:   Sat May 4 15:03:11 2024 +0200

    Bug 486569 - linux inotify_init syscall wrapper missing POST entry in syscall_table