Blame SOURCES/valgrind-3.10.1-aarch64-syscalls.patch

2601b6
commit 143af81290bd49c76c46267d64baea896df50c40
2601b6
Author: sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>
2601b6
Date:   Mon Nov 24 16:19:48 2014 +0000
2601b6
2601b6
    Enable sys_flock on arm64-linux.
2601b6
    
2601b6
    
2601b6
    git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14777 a5019735-40e9-0310-863c-91ae7b9d1cf9
2601b6
2601b6
diff --git a/coregrind/m_syswrap/syswrap-arm64-linux.c b/coregrind/m_syswrap/syswrap-arm64-linux.c
2601b6
index cd27ad2..d90dcb6 100644
2601b6
--- a/coregrind/m_syswrap/syswrap-arm64-linux.c
2601b6
+++ b/coregrind/m_syswrap/syswrap-arm64-linux.c
2601b6
@@ -880,6 +880,7 @@ static SyscallTableEntry syscall_main_table[] = {
2601b6
    LINX_(__NR_inotify_add_watch, sys_inotify_add_watch), // 27
2601b6
    LINX_(__NR_inotify_rm_watch,  sys_inotify_rm_watch),  // 28
2601b6
    LINXY(__NR_ioctl,             sys_ioctl),             // 29
2601b6
+   GENX_(__NR_flock,             sys_flock),             // 32
2601b6
    LINX_(__NR_mknodat,           sys_mknodat),           // 33
2601b6
    LINX_(__NR_mkdirat,           sys_mkdirat),           // 34
2601b6
    LINX_(__NR_unlinkat,          sys_unlinkat),          // 35
2601b6
@@ -1183,7 +1184,6 @@ static SyscallTableEntry syscall_main_table[] = {
2601b6
 //ZZ    LINXY(__NR__llseek,           sys_llseek),         // 140
2601b6
 //ZZ    GENXY(__NR_getdents,          sys_getdents),       // 141
2601b6
 //ZZ    GENX_(__NR__newselect,        sys_select),         // 142
2601b6
-//ZZ    GENX_(__NR_flock,             sys_flock),          // 143
2601b6
 //ZZ 
2601b6
 //ZZ    LINXY(__NR__sysctl,           sys_sysctl),         // 149
2601b6
 //ZZ 
2601b6
commit 9ae3282faa77f89c43fdd97186875ff8da90fff9
2601b6
Author: sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>
2601b6
Date:   Thu Feb 5 15:28:28 2015 +0000
2601b6
2601b6
    Enable sys_mbind, sys_get_mempolicy, sys_set_mempolicy on arm64-linux.
2601b6
    Patch from Hideaki Kimura (hideaki.kimura@gmail.com).  Fixes #342038.
2601b6
    
2601b6
    
2601b6
    git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14907 a5019735-40e9-0310-863c-91ae7b9d1cf9
2601b6
2601b6
diff --git a/coregrind/m_syswrap/syswrap-arm64-linux.c b/coregrind/m_syswrap/syswrap-arm64-linux.c
2601b6
index a72392f..16df466 100644
2601b6
--- a/coregrind/m_syswrap/syswrap-arm64-linux.c
2601b6
+++ b/coregrind/m_syswrap/syswrap-arm64-linux.c
2601b6
@@ -1032,6 +1032,9 @@ static SyscallTableEntry syscall_main_table[] = {
2601b6
    GENX_(__NR_mlock,             sys_mlock),             // 228
2601b6
    GENX_(__NR_mlockall,          sys_mlockall),          // 230
2601b6
    GENX_(__NR_madvise,           sys_madvise),           // 233
2601b6
+   LINX_(__NR_mbind,             sys_mbind),             // 235
2601b6
+   LINXY(__NR_get_mempolicy,     sys_get_mempolicy),     // 236
2601b6
+   LINX_(__NR_set_mempolicy,     sys_set_mempolicy),     // 237
2601b6
    GENXY(__NR_wait4,             sys_wait4),             // 260
2601b6
 
2601b6
    LINXY(__NR_process_vm_readv,  sys_process_vm_readv),  // 270
2601b6
commit 9ee89cddf19b6ab8f45e8546ef73d3e4e997ad2f
2601b6
Author: mjw <mjw@a5019735-40e9-0310-863c-91ae7b9d1cf9>
2601b6
Date:   Sat Feb 7 22:36:48 2015 +0000
2601b6
2601b6
    Bug 343732 - Unhandled syscall 144 (setgid) on aarch64.
2601b6
    
2601b6
    git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14916 a5019735-40e9-0310-863c-91ae7b9d1cf9
2601b6
2601b6
diff --git a/coregrind/m_syswrap/syswrap-arm64-linux.c b/coregrind/m_syswrap/syswrap-arm64-linux.c
2601b6
index 16df466..ed66227 100644
2601b6
--- a/coregrind/m_syswrap/syswrap-arm64-linux.c
2601b6
+++ b/coregrind/m_syswrap/syswrap-arm64-linux.c
2601b6
@@ -959,6 +959,7 @@ static SyscallTableEntry syscall_main_table[] = {
2601b6
    GENX_(__NR_setpriority,       sys_setpriority),       // 140
2601b6
    GENX_(__NR_getpriority,       sys_getpriority),       // 141
2601b6
    GENX_(__NR_setregid,          sys_setregid),          // 143
2601b6
+   GENX_(__NR_setgid,            sys_setgid),            // 144
2601b6
    GENX_(__NR_setreuid,          sys_setreuid),          // 145
2601b6
    LINX_(__NR_setresuid,         sys_setresuid),         // 147
2601b6
    LINXY(__NR_getresuid,         sys_getresuid),         // 148
2601b6
@@ -1091,7 +1092,6 @@ static SyscallTableEntry syscall_main_table[] = {
2601b6
 //ZZ    LINXY(__NR_pipe,              sys_pipe),           // 42
2601b6
 //ZZ //   GENX_(__NR_prof,              sys_ni_syscall),     // 44
2601b6
 
2601b6
-//ZZ    LINX_(__NR_setgid,            sys_setgid16),       // 46
2601b6
 //ZZ    LINX_(__NR_getgid,            sys_getgid16),       // 47
2601b6
 //ZZ //zz    //   (__NR_signal,            sys_signal),         // 48 */* (ANSI C)
2601b6
 //ZZ    LINX_(__NR_geteuid,           sys_geteuid16),      // 49
2601b6
commit ae70db15b2f8e013bd8a3874d3d6716eb5b8e48c
2601b6
Author: mjw <mjw@a5019735-40e9-0310-863c-91ae7b9d1cf9>
2601b6
Date:   Sat Feb 7 22:58:51 2015 +0000
2601b6
2601b6
    Bug 343733 Unhandled syscall 187 (msgctl and related) on aarch64
2601b6
    
2601b6
    git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14917 a5019735-40e9-0310-863c-91ae7b9d1cf9
2601b6
2601b6
diff --git a/coregrind/m_syswrap/syswrap-arm64-linux.c b/coregrind/m_syswrap/syswrap-arm64-linux.c
2601b6
index ed66227..c23e6f7 100644
2601b6
--- a/coregrind/m_syswrap/syswrap-arm64-linux.c
2601b6
+++ b/coregrind/m_syswrap/syswrap-arm64-linux.c
2601b6
@@ -992,6 +992,10 @@ static SyscallTableEntry syscall_main_table[] = {
2601b6
    LINXY(__NR_mq_timedreceive,   sys_mq_timedreceive),   // 183
2601b6
    LINX_(__NR_mq_notify,         sys_mq_notify),         // 184
2601b6
    LINXY(__NR_mq_getsetattr,     sys_mq_getsetattr),     // 185
2601b6
+   LINX_(__NR_msgget,            sys_msgget),            // 186
2601b6
+   LINXY(__NR_msgctl,            sys_msgctl),            // 187
2601b6
+   LINXY(__NR_msgrcv,            sys_msgrcv),            // 188
2601b6
+   LINX_(__NR_msgsnd,            sys_msgsnd),            // 189
2601b6
    LINX_(__NR_semget,            sys_semget),            // 190
2601b6
    LINXY(__NR_semctl,            sys_semctl),            // 191
2601b6
    LINX_(__NR_semtimedop,        sys_semtimedop),        // 192
2601b6
@@ -1323,10 +1327,6 @@ static SyscallTableEntry syscall_main_table[] = {
2601b6
 //ZZ    LINXY(__NR_recvfrom,          sys_recvfrom),       // 292
2601b6
 //ZZ    LINX_(__NR_semget,            sys_semget),         // 299
2601b6
 //ZZ    LINXY(__NR_semctl,            sys_semctl),         // 300
2601b6
-//ZZ    LINX_(__NR_msgget,            sys_msgget),         
2601b6
-//ZZ    LINX_(__NR_msgsnd,            sys_msgsnd),          
2601b6
-//ZZ    LINXY(__NR_msgrcv,            sys_msgrcv),         
2601b6
-//ZZ    LINXY(__NR_msgctl,            sys_msgctl),         // 304
2601b6
 //ZZ 
2601b6
 //ZZ    LINX_(__NR_request_key,       sys_request_key),    // 287
2601b6
 //ZZ //   LINX_(__NR_ioprio_set,        sys_ioprio_set),     // 289
2601b6
commit c79fe53e9e31d5c8e5d2ad3a0943b21e84129ccb
2601b6
Author: mjw <mjw@a5019735-40e9-0310-863c-91ae7b9d1cf9>
2601b6
Date:   Tue Feb 10 13:39:04 2015 +0000
2601b6
2601b6
    Bug #344007 accept4 syscall unhandled on arm64 (242) and ppc64 (344)
2601b6
    
2601b6
    ppc64 might fall back to socketcall in some cases, but arm64 always uses
2601b6
    accept4 syscall directly. Some (confusing) background on when/how glibc
2601b6
    (wrongly) decides to use a direct accept4 or the socketcall system call:
2601b6
    https://sourceware.org/ml/libc-alpha/2013-12/msg00014.html
2601b6
    
2601b6
    git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14926 a5019735-40e9-0310-863c-91ae7b9d1cf9
2601b6
2601b6
diff --git a/coregrind/m_syswrap/syswrap-arm64-linux.c b/coregrind/m_syswrap/syswrap-arm64-linux.c
2601b6
index c23e6f7..1f9670a 100644
2601b6
--- a/coregrind/m_syswrap/syswrap-arm64-linux.c
2601b6
+++ b/coregrind/m_syswrap/syswrap-arm64-linux.c
2601b6
@@ -1040,6 +1040,7 @@ static SyscallTableEntry syscall_main_table[] = {
2601b6
    LINX_(__NR_mbind,             sys_mbind),             // 235
2601b6
    LINXY(__NR_get_mempolicy,     sys_get_mempolicy),     // 236
2601b6
    LINX_(__NR_set_mempolicy,     sys_set_mempolicy),     // 237
2601b6
+   LINXY(__NR_accept4,           sys_accept4),           // 242
2601b6
    GENXY(__NR_wait4,             sys_wait4),             // 260
2601b6
 
2601b6
    LINXY(__NR_process_vm_readv,  sys_process_vm_readv),  // 270
2601b6
@@ -1379,8 +1380,6 @@ static SyscallTableEntry syscall_main_table[] = {
2601b6
 //ZZ    LINXY(__NR_rt_tgsigqueueinfo, sys_rt_tgsigqueueinfo),// 363
2601b6
 //ZZ    LINXY(__NR_perf_event_open,   sys_perf_event_open),  // 364
2601b6
 //ZZ 
2601b6
-//ZZ    LINXY(__NR_accept4,           sys_accept4),          // 366
2601b6
-//ZZ 
2601b6
 //ZZ    LINXY(__NR_name_to_handle_at, sys_name_to_handle_at),// 370
2601b6
 //ZZ    LINXY(__NR_open_by_handle_at, sys_open_by_handle_at),// 371
2601b6
 //ZZ    LINXY(__NR_clock_adjtime,     sys_clock_adjtime)     // 372
2601b6
commit 52e770f94992d381dc1dbe104770ebc8cb9937c4
2601b6
Author: mjw <mjw@a5019735-40e9-0310-863c-91ae7b9d1cf9>
2601b6
Date:   Wed Feb 18 14:23:17 2015 +0000
2601b6
2601b6
    Bug #344307 2 unhandled syscalls on aarch64/arm64: umount2(39), mount (40)
2601b6
    
2601b6
    Reporter: Branislav Blaskovic, bblaskov@redhat.com
2601b6
    Patch: Robin Hack, rhack@redhat.com
2601b6
    Test: Miloš Prchlík, mprchlik@redhat.com
2601b6
    
2601b6
    git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14944 a5019735-40e9-0310-863c-91ae7b9d1cf9
2601b6
2601b6
diff --git a/coregrind/m_syswrap/syswrap-arm64-linux.c b/coregrind/m_syswrap/syswrap-arm64-linux.c
2601b6
index 7b7e824..fc6ca08 100644
2601b6
--- a/coregrind/m_syswrap/syswrap-arm64-linux.c
2601b6
+++ b/coregrind/m_syswrap/syswrap-arm64-linux.c
2601b6
@@ -887,6 +887,9 @@ static SyscallTableEntry syscall_main_table[] = {
2601b6
    LINX_(__NR_linkat,            sys_linkat),            // 37
2601b6
    LINX_(__NR_renameat,		 sys_renameat),          // 38
2601b6
 
2601b6
+   LINX_(__NR_umount2,            sys_umount),           // 39
2601b6
+   LINX_(__NR_mount,              sys_mount),            // 40
2601b6
+
2601b6
    // FIXME IS THIS CORRECT?  it may well not be.
2601b6
    GENXY(__NR3264_statfs,        sys_statfs),            // 43
2601b6
    GENXY(__NR3264_fstatfs,       sys_fstatfs),           // 44
2601b6
@@ -1075,7 +1078,6 @@ static SyscallTableEntry syscall_main_table[] = {
2601b6
 //ZZ    LINX_(__NR_lseek,             sys_lseek),          // 19
2601b6
 //ZZ 
2601b6
 //ZZ    GENX_(__NR_getpid,            sys_getpid),         // 20
2601b6
-//ZZ    LINX_(__NR_mount,             sys_mount),          // 21
2601b6
 //ZZ    LINX_(__NR_umount,            sys_oldumount),      // 22
2601b6
 //ZZ    LINX_(__NR_setuid,            sys_setuid16),       // 23 ## P
2601b6
 //ZZ    LINX_(__NR_getuid,            sys_getuid16),       // 24 ## P
2601b6
@@ -1107,7 +1109,6 @@ static SyscallTableEntry syscall_main_table[] = {
2601b6
 //ZZ 
2601b6
 //ZZ    LINX_(__NR_getegid,           sys_getegid16),      // 50
2601b6
 //ZZ    GENX_(__NR_acct,              sys_acct),           // 51
2601b6
-//ZZ    LINX_(__NR_umount2,           sys_umount),         // 52
2601b6
 //ZZ //   GENX_(__NR_lock,              sys_ni_syscall),     // 53
2601b6
 //ZZ 
2601b6
 //ZZ    LINXY(__NR_fcntl,             sys_fcntl),          // 55