Bug 351140 - arm64 syscalls setuid (146) and setresgid (149) not implemented
Summary: arm64 syscalls setuid (146) and setresgid (149) not implemented
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-09 22:35 UTC by Mark Wielaard
Modified: 2015-08-09 22:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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