syscalls: Remove incorrect usage of libc structures
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 0 repliesNew
- v15 patches 0 repliesSuperseded
Changes in v2 from the cover letter
- Use .restore_wallclock flag and remove unnecessary restoration code.
- Update tst_clock_*() syscall's implementation instead of its users.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | tst_safe_clocks: Remove safe_clock_adjtime()include/ | +0 | 0 replies | |
| 2/6 | syscalls: settimeofday01: Set .restore_wallclock flagtestcases/ | +1 | 0 replies | |
| 3/6 | syscalls: settimeofday02: Remove time restoration codetestcases/ | +0 | 0 replies | |
| 4/6 | syscalls: settimeofday: Use gettimeofday()testcases/ | +2 | 1 reply | |
| 5/6 | syscalls: Don't pass struct timespec to tst_syscall()lib/ | +56 | 18 replies | |
| 5/6 | syscalls: Don't pass struct timespec to tst_syscall() | +0 | 2 replies | |
| 6/6 | syscalls: Don't pass struct timeval to tst_syscall()include/ testcases/ testcases/ +1 more | +10 | 1 reply |
Reviews trailers per patch
2 of 7 patches have a Reviewed-by or Acked-by.
| Patch | Arnd Bergmann |
|---|---|
| 1/6 | |
| 2/6 | |
| 3/6 | |
| 4/6 | |
| 5/6 | R-b |
| 5/6 | R-b |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [LTP] [PATCH V2 0/6] syscalls: Remove incorrect usage of libc structures
Hi,
It is incorrect to use the libc structures (timespec, timeval, timex), to the non-time64 syscalls called via tst_syscall() as the kernel expects the old structures in there and the libc structure definition may change in the future.
V2:
- Use .restore_wallclock flag and remove unnecessary restoration code.
- Update tst_clock_*() syscall's implementation instead of its users.
Viresh Kumar (6):
tst_safe_clocks: Remove safe_clock_adjtime()
syscalls: settimeofday01: Set .restore_wallclock flag
syscalls: settimeofday02: Remove time restoration code
syscalls: settimeofday: Use gettimeofday()
syscalls: Don't pass struct timespec to tst_syscall()
syscalls: Don't pass struct timeval to tst_syscall()
include/tst_safe_clocks.h | 18 ------ include/tst_timer.h | 6 ++ lib/tst_clocks.c | 59 ++++++++++++++++++- .../syscalls/clock_adjtime/clock_adjtime.h | 5 -- .../syscalls/gettimeofday/gettimeofday02.c | 3 +- .../syscalls/settimeofday/settimeofday01.c | 21 +------ .../syscalls/settimeofday/settimeofday02.c | 21 ------- testcases/kernel/syscalls/stime/stime_var.h | 3 +- 8 files changed, 69 insertions(+), 67 deletions(-)
Signature · 1 line
2.25.0.rc1.19.g042ed3e048af