Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syscalls/timer_getoverrun01: use kernel_timer_t type
Testcase is failing on s390x, with glibc-2.39 and 6.9-rc0 (git commit a4145ce1e7bc). Userspace defines timer_t as void * (8 bytes), while __kernel_timer_t is defined as int (4 bytes). This means that kernel only populates 4 bytes, and other 4 can remain uninitialized, possibly containing some non-zero garbage, e.g.: timer_create(CLOCK_REALTIME, {sigev_signo=SIGALRM, sigev_notify=SIGEV_SIGNAL}, <unfinished ...> <... timer_create resumed>[0]) = 0 timer_getoverrun(1 <unfinished ...> timer_getoverrun resumed>) = -1 EINVAL (Invalid argument) timer_delete(1) = -1 EINVAL (Invalid argument) Since we are dealing with syscalls directly, use kernel_timer_t. Signed-off-by: Jan Stancek <[email protected]> Reviewed-by: Li Wang <[email protected]> Reviewed-by: Petr Vorel <[email protected]>
- Loading branch information