]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Implement /proc/self/exe readlink[at] fallback in POST handler
authorMark Wielaard <mark@klomp.org>
Sun, 22 Sep 2024 21:24:34 +0000 (23:24 +0200)
committerMark Wielaard <mark@klomp.org>
Sat, 5 Oct 2024 12:52:47 +0000 (14:52 +0200)
commit0690dc39644d15fc89813419ffcdf9754b098260
treeb035654facac7d3077f2528b7c8378aeb9376f7f
parentddf397c024c80382f7a2f3a0d46d58fb839eef96
Implement /proc/self/exe readlink[at] fallback in POST handler

Calling the readlink[at] syscall directly from the PRE handler defeats
the FUSE_COMPATIBLE_MAY_BLOCK (SfMayBlock) flag. Add a POST handler
that only explicitly calls the readlink[at] handler for the
/proc/self/exe fallback (this should be fine unless /proc is also
implemented as fuse in this process).

Adjust readlink[at] GENX_ and LINX_ syswrap macros to GENXY and LINXY.

https://bugs.kde.org/show_bug.cgi?id=493507
14 files changed:
NEWS
coregrind/m_syswrap/syswrap-amd64-linux.c
coregrind/m_syswrap/syswrap-arm-linux.c
coregrind/m_syswrap/syswrap-arm64-linux.c
coregrind/m_syswrap/syswrap-generic.c
coregrind/m_syswrap/syswrap-linux.c
coregrind/m_syswrap/syswrap-mips32-linux.c
coregrind/m_syswrap/syswrap-mips64-linux.c
coregrind/m_syswrap/syswrap-nanomips-linux.c
coregrind/m_syswrap/syswrap-ppc32-linux.c
coregrind/m_syswrap/syswrap-ppc64-linux.c
coregrind/m_syswrap/syswrap-s390x-linux.c
coregrind/m_syswrap/syswrap-solaris.c
coregrind/m_syswrap/syswrap-x86-linux.c