Bug 363705 - arm64 missing syscall name_to_handle_at and open_by_handle_at
Summary: arm64 missing syscall name_to_handle_at and open_by_handle_at
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: 3.11 SVN
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL: https://bugzilla.redhat.com/show_bug....
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-30 13:51 UTC by Mark Wielaard
Modified: 2016-05-30 14:18 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 2016-05-30 13:51:42 UTC
name_to_handle_at system calls are used by systemd nspawn.

Reproducible: Always




(untested) patch is probably as easy as:

diff --git a/coregrind/m_syswrap/syswrap-arm64-linux.c b/coregrind/m_syswrap/syswrap-arm64-linux.c
index 0b78f20..8842765 100644
--- a/coregrind/m_syswrap/syswrap-arm64-linux.c
+++ b/coregrind/m_syswrap/syswrap-arm64-linux.c
@@ -1096,6 +1096,9 @@ static SyscallTableEntry syscall_main_table[] = {
 
    GENXY(__NR_wait4,             sys_wait4),             // 260
 
+   LINXY(__NR_name_to_handle_at, sys_name_to_handle_at), // 264
+   LINXY(__NR_open_by_handle_at, sys_open_by_handle_at), // 265
+
    LINX_(__NR_syncfs,            sys_syncfs),            // 267
 
    LINXY(__NR_sendmmsg,          sys_sendmmsg),          // 269
@@ -1374,8 +1377,6 @@ static SyscallTableEntry syscall_main_table[] = {
 //ZZ    LINXY(__NR_epoll_create1,     sys_epoll_create1),    // 357
 //ZZ    LINXY(__NR_rt_tgsigqueueinfo, sys_rt_tgsigqueueinfo),// 363
 //ZZ 
-//ZZ    LINXY(__NR_name_to_handle_at, sys_name_to_handle_at),// 370
-//ZZ    LINXY(__NR_open_by_handle_at, sys_open_by_handle_at),// 371
 //ZZ    LINXY(__NR_clock_adjtime,     sys_clock_adjtime)     // 372
 };
Comment 1 Mark Wielaard 2016-05-30 14:18:55 UTC
Yes it was as simple as that patch. Tested on arm64 against the sample code from http://www.man7.org/linux/man-pages/man2/open_by_handle_at.2.html

Commited as valgrind svn r15887