Re: [PATCH] linux-user: Fix 'clock_nanosleep()' implementation

2020-08-24 Thread Laurent Vivier
Le 27/07/2020 à 22:13, Filip Bozuta a écrit : > Implementation of syscall 'clock_nanosleep()' in 'syscall.c' uses > functions 'target_to_host_timespec()' and 'host_to_target_timespec()' > to transfer the value of 'struct timespec' between target and host. > However, the implementation doesn't check

Re: [PATCH] linux-user: Fix 'clock_nanosleep()' implementation

2020-07-27 Thread Laurent Vivier
Le 27/07/2020 à 22:13, Filip Bozuta a écrit : > Implementation of syscall 'clock_nanosleep()' in 'syscall.c' uses > functions 'target_to_host_timespec()' and 'host_to_target_timespec()' > to transfer the value of 'struct timespec' between target and host. > However, the implementation doesn't check

[PATCH] linux-user: Fix 'clock_nanosleep()' implementation

2020-07-27 Thread Filip Bozuta
Implementation of syscall 'clock_nanosleep()' in 'syscall.c' uses functions 'target_to_host_timespec()' and 'host_to_target_timespec()' to transfer the value of 'struct timespec' between target and host. However, the implementation doesn't check whether this conversion succeeds and thus can return