Bug 351140

Summary: arm64 syscalls setuid (146) and setresgid (149) not implemented
Product: [Developer tools] valgrind Reporter: Mark Wielaard <mark>
Component: generalAssignee: Julian Seward <jseward>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Mark Wielaard 2015-08-09 22:35:55 UTC
--30710-- WARNING: unhandled syscall: 149
--30710-- You may be able to write your own handler.
--30710-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--30710-- Nevertheless we consider this a bug.  Please report
--30710-- it at http://valgrind.org/support/bug_reports.html.

--8871-- WARNING: unhandled arm64-linux syscall: 146
--8871-- You may be able to write your own handler.
--8871-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--8871-- Nevertheless we consider this a bug.  Please report
--8871-- it at http://valgrind.org/support/bug_reports.html.


Reproducible: Always




Proposed patch:

--- a/coregrind/m_syswrap/syswrap-arm64-linux.c
+++ b/coregrind/m_syswrap/syswrap-arm64-linux.c
@@ -957,8 +957,10 @@ static SyscallTableEntry syscall_main_table[] = {
    GENX_(__NR_setregid,          sys_setregid),          // 143
    GENX_(__NR_setgid,            sys_setgid),            // 144
    GENX_(__NR_setreuid,          sys_setreuid),          // 145
+   GENX_(__NR_setuid,            sys_setuid),            // 146
    LINX_(__NR_setresuid,         sys_setresuid),         // 147
    LINXY(__NR_getresuid,         sys_getresuid),         // 148
+   LINX_(__NR_setresgid,         sys_setresgid),         // 149
    LINXY(__NR_getresgid,         sys_getresgid),         // 150
    GENXY(__NR_times,             sys_times),             // 153
    GENX_(__NR_setpgid,           sys_setpgid),           // 154
Comment 1 Mark Wielaard 2015-08-09 22:38:23 UTC
valgrind svn r15517