| Summary: | arm64 missing syscall name_to_handle_at and open_by_handle_at | ||
|---|---|---|---|
| Product: | [Developer tools] valgrind | Reporter: | Mark Wielaard <mark> |
| Component: | general | Assignee: | Julian Seward <jseward> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 3.11 SVN | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| URL: | https://bugzilla.redhat.com/show_bug.cgi?id=1339628 | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
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 |
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 };