llvm-project
82f48a71 - [sanitizer] Use clock_nanosleep_time64 for 32-bit Linux delays (#241663)

Commit
1 day ago
[sanitizer] Use clock_nanosleep_time64 for 32-bit Linux delays (#241663) internal_usleep passes libc's struct timespec directly to the nanosleep syscall. On 32-bit Linux with time64 musl, that structure does not match the legacy syscall layout. Use clock_nanosleep_time64 when its syscall number is available, with explicit 64-bit seconds and nanoseconds. clock_nanosleep_time64 was introduced in Linux 5.1. On older kernels, ENOSYS triggers a DCHECK in debug builds.
Author
Parents
Loading