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