Re: [PATCH] linux-user: Check for EFAULT failure in nanosleep

2025-07-10 Thread Richard Henderson
On 7/10/25 10:43, Peter Maydell wrote: target_to_host_timespec() returns an error if the memory the guest passed us isn't actually readable. We check for this everywhere except the callsite in the TARGET_NR_nanosleep case, so this mistake was caught by a Coverity heuristic. Add the missing erro

Re: [PATCH] linux-user: Check for EFAULT failure in nanosleep

2025-07-10 Thread Richard Henderson
On 7/10/25 10:43, Peter Maydell wrote: target_to_host_timespec() returns an error if the memory the guest passed us isn't actually readable. We check for this everywhere except the callsite in the TARGET_NR_nanosleep case, so this mistake was caught by a Coverity heuristic. Add the missing erro

[PATCH] linux-user: Check for EFAULT failure in nanosleep

2025-07-10 Thread Peter Maydell
target_to_host_timespec() returns an error if the memory the guest passed us isn't actually readable. We check for this everywhere except the callsite in the TARGET_NR_nanosleep case, so this mistake was caught by a Coverity heuristic. Add the missing error checks to the calls that convert betwee