3.10.1-4 Add valgrind-3.10.1-aarch64-syscalls.patch.

mbind, get_mempolicy, set_mempolicy, flock, setgid, msgget, msgctl,
msgrcv, msgsnd
This commit is contained in:
Mark Wielaard 2015-02-08 13:50:51 +01:00
parent 3e802ca3df
commit aa82914ce5
2 changed files with 125 additions and 1 deletions

View File

@ -0,0 +1,115 @@
commit 143af81290bd49c76c46267d64baea896df50c40
Author: sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Date: Mon Nov 24 16:19:48 2014 +0000
Enable sys_flock on arm64-linux.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14777 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_syswrap/syswrap-arm64-linux.c b/coregrind/m_syswrap/syswrap-arm64-linux.c
index cd27ad2..d90dcb6 100644
--- a/coregrind/m_syswrap/syswrap-arm64-linux.c
+++ b/coregrind/m_syswrap/syswrap-arm64-linux.c
@@ -880,6 +880,7 @@ static SyscallTableEntry syscall_main_table[] = {
LINX_(__NR_inotify_add_watch, sys_inotify_add_watch), // 27
LINX_(__NR_inotify_rm_watch, sys_inotify_rm_watch), // 28
LINXY(__NR_ioctl, sys_ioctl), // 29
+ GENX_(__NR_flock, sys_flock), // 32
LINX_(__NR_mknodat, sys_mknodat), // 33
LINX_(__NR_mkdirat, sys_mkdirat), // 34
LINX_(__NR_unlinkat, sys_unlinkat), // 35
@@ -1183,7 +1184,6 @@ static SyscallTableEntry syscall_main_table[] = {
//ZZ LINXY(__NR__llseek, sys_llseek), // 140
//ZZ GENXY(__NR_getdents, sys_getdents), // 141
//ZZ GENX_(__NR__newselect, sys_select), // 142
-//ZZ GENX_(__NR_flock, sys_flock), // 143
//ZZ
//ZZ LINXY(__NR__sysctl, sys_sysctl), // 149
//ZZ
commit 9ae3282faa77f89c43fdd97186875ff8da90fff9
Author: sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Date: Thu Feb 5 15:28:28 2015 +0000
Enable sys_mbind, sys_get_mempolicy, sys_set_mempolicy on arm64-linux.
Patch from Hideaki Kimura (hideaki.kimura@gmail.com). Fixes #342038.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14907 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_syswrap/syswrap-arm64-linux.c b/coregrind/m_syswrap/syswrap-arm64-linux.c
index a72392f..16df466 100644
--- a/coregrind/m_syswrap/syswrap-arm64-linux.c
+++ b/coregrind/m_syswrap/syswrap-arm64-linux.c
@@ -1032,6 +1032,9 @@ static SyscallTableEntry syscall_main_table[] = {
GENX_(__NR_mlock, sys_mlock), // 228
GENX_(__NR_mlockall, sys_mlockall), // 230
GENX_(__NR_madvise, sys_madvise), // 233
+ LINX_(__NR_mbind, sys_mbind), // 235
+ LINXY(__NR_get_mempolicy, sys_get_mempolicy), // 236
+ LINX_(__NR_set_mempolicy, sys_set_mempolicy), // 237
GENXY(__NR_wait4, sys_wait4), // 260
LINXY(__NR_process_vm_readv, sys_process_vm_readv), // 270
commit 9ee89cddf19b6ab8f45e8546ef73d3e4e997ad2f
Author: mjw <mjw@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Date: Sat Feb 7 22:36:48 2015 +0000
Bug 343732 - Unhandled syscall 144 (setgid) on aarch64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14916 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_syswrap/syswrap-arm64-linux.c b/coregrind/m_syswrap/syswrap-arm64-linux.c
index 16df466..ed66227 100644
--- a/coregrind/m_syswrap/syswrap-arm64-linux.c
+++ b/coregrind/m_syswrap/syswrap-arm64-linux.c
@@ -959,6 +959,7 @@ static SyscallTableEntry syscall_main_table[] = {
GENX_(__NR_setpriority, sys_setpriority), // 140
GENX_(__NR_getpriority, sys_getpriority), // 141
GENX_(__NR_setregid, sys_setregid), // 143
+ GENX_(__NR_setgid, sys_setgid), // 144
GENX_(__NR_setreuid, sys_setreuid), // 145
LINX_(__NR_setresuid, sys_setresuid), // 147
LINXY(__NR_getresuid, sys_getresuid), // 148
@@ -1091,7 +1092,6 @@ static SyscallTableEntry syscall_main_table[] = {
//ZZ LINXY(__NR_pipe, sys_pipe), // 42
//ZZ // GENX_(__NR_prof, sys_ni_syscall), // 44
-//ZZ LINX_(__NR_setgid, sys_setgid16), // 46
//ZZ LINX_(__NR_getgid, sys_getgid16), // 47
//ZZ //zz // (__NR_signal, sys_signal), // 48 */* (ANSI C)
//ZZ LINX_(__NR_geteuid, sys_geteuid16), // 49
commit ae70db15b2f8e013bd8a3874d3d6716eb5b8e48c
Author: mjw <mjw@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Date: Sat Feb 7 22:58:51 2015 +0000
Bug 343733 Unhandled syscall 187 (msgctl and related) on aarch64
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14917 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_syswrap/syswrap-arm64-linux.c b/coregrind/m_syswrap/syswrap-arm64-linux.c
index ed66227..c23e6f7 100644
--- a/coregrind/m_syswrap/syswrap-arm64-linux.c
+++ b/coregrind/m_syswrap/syswrap-arm64-linux.c
@@ -992,6 +992,10 @@ static SyscallTableEntry syscall_main_table[] = {
LINXY(__NR_mq_timedreceive, sys_mq_timedreceive), // 183
LINX_(__NR_mq_notify, sys_mq_notify), // 184
LINXY(__NR_mq_getsetattr, sys_mq_getsetattr), // 185
+ LINX_(__NR_msgget, sys_msgget), // 186
+ LINXY(__NR_msgctl, sys_msgctl), // 187
+ LINXY(__NR_msgrcv, sys_msgrcv), // 188
+ LINX_(__NR_msgsnd, sys_msgsnd), // 189
LINX_(__NR_semget, sys_semget), // 190
LINXY(__NR_semctl, sys_semctl), // 191
LINX_(__NR_semtimedop, sys_semtimedop), // 192
@@ -1323,10 +1327,6 @@ static SyscallTableEntry syscall_main_table[] = {
//ZZ LINXY(__NR_recvfrom, sys_recvfrom), // 292
//ZZ LINX_(__NR_semget, sys_semget), // 299
//ZZ LINXY(__NR_semctl, sys_semctl), // 300
-//ZZ LINX_(__NR_msgget, sys_msgget),
-//ZZ LINX_(__NR_msgsnd, sys_msgsnd),
-//ZZ LINXY(__NR_msgrcv, sys_msgrcv),
-//ZZ LINXY(__NR_msgctl, sys_msgctl), // 304
//ZZ
//ZZ LINX_(__NR_request_key, sys_request_key), // 287
//ZZ // LINX_(__NR_ioprio_set, sys_ioprio_set), // 289

View File

@ -3,7 +3,7 @@
Summary: Tool for finding memory management bugs in programs
Name: %{?scl_prefix}valgrind
Version: 3.10.1
Release: 3%{?dist}
Release: 4%{?dist}
Epoch: 1
License: GPLv2+
URL: http://www.valgrind.org/
@ -64,6 +64,11 @@ Patch5: valgrind-3.10.1-mempcpy.patch
# KDE#343802 - s390x memcheck reports spurious conditional jump
Patch6: valgrind-3.10-s390-spechelper.patch
# KDE#342038, KDE#343732, KDE#343733
# mbind, get_mempolicy, set_mempolicy, flock, setgid, msgget, msgctl,
# msgrcv, msgsnd
Patch7: valgrind-3.10.1-aarch64-syscalls.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
@ -168,6 +173,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.
@ -316,6 +322,9 @@ echo ===============END TESTING===============
%endif
%changelog
* Sun Feb 08 2015 Mark Wielaard <mjw@redhat.com> - 3.10.1-4
- Add valgrind-3.10.1-aarch64-syscalls.patch.
* Thu Feb 05 2015 Mark Wielaard <mjw@redhat.com> - 3.10.1-3
- Add valgrind-3.10-s390-spechelper.patch.