diff --git a/valgrind-3.12.0-arm64-ppc64-prlimit64.patch b/valgrind-3.12.0-arm64-ppc64-prlimit64.patch
new file mode 100644
index 0000000..4b4e9ac
--- /dev/null
+++ b/valgrind-3.12.0-arm64-ppc64-prlimit64.patch
@@ -0,0 +1,24 @@
+diff --git a/coregrind/m_syswrap/syswrap-arm64-linux.c b/coregrind/m_syswrap/syswrap-arm64-linux.c
+index 1be6629..f8b5b7c 100644
+--- a/coregrind/m_syswrap/syswrap-arm64-linux.c
++++ b/coregrind/m_syswrap/syswrap-arm64-linux.c
+@@ -868,6 +868,7 @@ static SyscallTableEntry syscall_main_table[] = {
+    LINXY(__NR_recvmmsg,          sys_recvmmsg),          // 243
+ 
+    GENXY(__NR_wait4,             sys_wait4),             // 260
++   LINXY(__NR_prlimit64,         sys_prlimit64),         // 261
+ 
+    LINXY(__NR_name_to_handle_at, sys_name_to_handle_at), // 264
+    LINXY(__NR_open_by_handle_at, sys_open_by_handle_at), // 265
+diff --git a/coregrind/m_syswrap/syswrap-ppc64-linux.c b/coregrind/m_syswrap/syswrap-ppc64-linux.c
+index f90140d..ce5cbbb 100644
+--- a/coregrind/m_syswrap/syswrap-ppc64-linux.c
++++ b/coregrind/m_syswrap/syswrap-ppc64-linux.c
+@@ -905,6 +905,7 @@ static SyscallTableEntry syscall_table[] = {
+    LINX_(__NR_pwritev,           sys_pwritev),          // 321
+    LINXY(__NR_rt_tgsigqueueinfo, sys_rt_tgsigqueueinfo),// 322
+ 
++   LINXY(__NR_prlimit64,         sys_prlimit64),        // 325
+    LINXY(__NR_socket,            sys_socket),           // 326
+    LINX_(__NR_bind,              sys_bind),             // 327
+    LINX_(__NR_connect,           sys_connect),          // 328
diff --git a/valgrind.spec b/valgrind.spec
index ce27607..f850025 100644
--- a/valgrind.spec
+++ b/valgrind.spec
@@ -81,6 +81,9 @@ Patch5: valgrind-3.12.0-nocwd-cleanup.patch
 # This has always been invalid code, and is no longer quietly tolerated.
 Patch6: valgrind-3.12.0-ppc64-r2.patch
 
+# KDE#376611 ppc64 and arm64 don't know about prlimit64 syscall
+Patch7: valgrind-3.12.0-arm64-ppc64-prlimit64.patch
+
 %if %{build_multilib}
 # Ensure glibc{,-devel} is installed for both multilib arches
 BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so
@@ -196,6 +199,7 @@ Valgrind User Manual for details.
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %build
 # We need to use the software collection compiler and binutils if available.
@@ -389,6 +393,9 @@ echo ===============END TESTING===============
 %endif
 
 %changelog
+* Sat Feb 18 2017 Mark Wielaard <mjw@redhat.com>
+- Add valgrind-3.12.0-arm64-ppc64-prlimit64.patch
+
 * Fri Feb 17 2017 Mark Wielaard <mjw@redhat.com> - 3.12.0-5
 - Add valgrind-3.12.0-ppc64-r2.patch (#1424367)