int fanotify_mark(int fanotify_fd, unsigned int flags, uint64_t mask, int dirfd, const char *_Nullable pathname); The PRE handler in coregrind/m_syswrap/syswrap-linux.c only check fd, not dirfd. Note that: - dirfd may be AT_FDCWD. - if pathname is absolute, then dirfd is ignored.
On 32bit platforms fanotify_fd wasn't checked either.
commit 5f753c39ea6285fec27cc68cbaf6a629c5051f23 (HEAD -> master, origin/master, origin/HEAD) Author: Paul Floyd <pjfloyd@wanadoo.fr> Date: Sun Aug 31 08:21:23 2025 +0200 Bug 507866 - fanotify_mark dirfd isn't checked