https://bugs.kde.org/show_bug.cgi?id=331311
--- Comment #6 from Alexandra Hajkova <[email protected]> --- Created attachment 184210 --> https://bugs.kde.org/attachment.cgi?id=184210&action=edit patch This change prevents client programs from seeing Valgrind's internal file descriptors when scanning /proc/self/fd or /proc/<pid>/fd, addressing a security and compatibility issue where defensive programs that close all non-whitelisted file descriptors would crash when attempting to close Valgrind's reserved descriptors. This patch modifies the getdents and getdents64 syscall wrappers to selectively filter out Valgrind's internal file descriptors only when listing /proc/*/fd directories. Regular directory listings remain unaffected, ensuring the fix is targeted and doesn't interfere with normal filesystem operations. Add none/tests/getdents_filter.vgtest test that tests that the Valgrind's file descriptors are hiddent from the client program and verifies both /proc/self/fd filtering and that regular directory listings remain unfiltered. -- You are receiving this mail because: You are watching all bug changes.
