https://bugs.kde.org/show_bug.cgi?id=440670

Mark Wielaard <m...@klomp.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |m...@klomp.org
             Status|REPORTED                    |CONFIRMED
     Ever confirmed|0                           |1

--- Comment #1 from Mark Wielaard <m...@klomp.org> ---
Thanks for finding this. This seems to come from this commit included in glibc
2.34:

 commit f6e616435d885afef1761a407ed0ae1256293bf8
 Author: Adhemerval Zanella <adhemerval.zane...@linaro.org>
 Date:   Fri Feb 5 21:26:57 2021 +0000

     linux: Consolidate statfs implementations

All other arches that have stat64/fstat64 (including ppc32) already had that
syscall hooked up, it was just ppc64 that was missing it.

So luckily the fix is extremely simple:

diff --git a/coregrind/m_syswrap/syswrap-ppc64-linux.c
b/coregrind/m_syswrap/syswrap-ppc64-linux.c
index 76610e142..f1a88f7ce 100644
--- a/coregrind/m_syswrap/syswrap-ppc64-linux.c
+++ b/coregrind/m_syswrap/syswrap-ppc64-linux.c
@@ -900,8 +900,8 @@ static SyscallTableEntry syscall_table[] = {

    LINXY(__NR_tgkill,            sys_tgkill),             // 250
 // _____(__NR_utimes,            sys_utimes),             // 251
-// _____(__NR_statfs64,          sys_statfs64),           // 252
-// _____(__NR_fstatfs64,         sys_fstatfs64),          // 253
+   GENXY(__NR_statfs64,          sys_statfs64),           // 252
+   GENXY(__NR_fstatfs64,         sys_fstatfs64),          // 253
 // /* #define __NR_fadvise64_64    254     32bit only */

 // _____(__NR_rtas,              sys_rtas),               // 255

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to