Bug 412408

Summary: unhandled arm-linux syscall: 124 - adjtime - on arm-linux
Product: [Developer tools] valgrind Reporter: Rob Bresalier <rob.bresalier>
Component: memcheckAssignee: Julian Seward <jseward>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 3.15 SVN   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Rob Bresalier 2019-09-27 22:06:23 UTC
SUMMARY

adjtime system call is not supported on arm-linux. I was able to get it to work in my system by locally patching syswrap-arm-linux.c and uncommenting the line:

//zz    LINXY(__NR_adjtimex,          sys_adjtimex),       // 124

Looks like this has been commented out since at least 2010 for arm-linux. I could not find the reason.

STEPS TO REPRODUCE
1. Build an arm-linux (32bit) program and have it call adjtime()
2. Run it under valgrind

OBSERVED RESULT

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

EXPECTED RESULT

adjtime should be supported

SOFTWARE/OS VERSIONS

Valgrind 3.15.0 
Embedded system running BusyBox linux distribution
Linux version: 3.4.91-WR5.0.1.40_standard+

ADDITIONAL INFORMATION
Comment 1 Julian Seward 2020-01-22 10:04:44 UTC
Fixed, dad7f1d7174d2e5e4bc16eac09653c55ab6eb7e5.