You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I was just trying out the kernel with busy box by following the guidelines provided in README file.
When I execute the command touch hello.txt from any directory I get the following error :
touch : hello.txt : Bad Address
In other words, it throws EFAULT error.
Maybe there is a bug in one of the system calls invoked by touch command.
Update:
After analyzing the source code, I could see that there is an issue with the parameters passed to sys_utimes system-call.
The second parameter u_times array which is of type timeval is NULL because of which copy_from_user is returning -1, so EFAULT is thrown.
The text was updated successfully, but these errors were encountered:
So, I was just trying out the kernel with busy box by following the guidelines provided in
README
file.When I execute the command
touch hello.txt
from any directory I get the following error :In other words, it throws
EFAULT
error.Maybe there is a bug in one of the system calls invoked by
touch
command.Update:
After analyzing the source code, I could see that there is an issue with the parameters passed to
sys_utimes
system-call.The second parameter
u_times
array which is of typetimeval
isNULL
because of whichcopy_from_user
is returning-1
, soEFAULT
is thrown.The text was updated successfully, but these errors were encountered: