Skip to content

Isolate time_t data types for clock/timer syscalls

Deepa Dinamani linux-fsdevel lkml netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 7 repliesIn review
  2. v23 of 7 patches 0 repliesSuperseded
  3. v18 patches 5 repliesSuperseded

Changes since v1 from the cover letter

* Rebased and removed common code paths on the tip linux-next. Changes since v2:
* Removed accidental inclusion of wrong version of patch 3/7.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7time: add get_timespec64 and put_timespec64include/linux/compat.h include/linux/time.h kernel/compat.c +1 more+79 -00 replies
2/7time: introduce {get,put}_itimerspec64include/linux/compat.h include/linux/posix-timers.h include/linux/time.h +2 more+68 -10 replies
3/7posix-stubs: Conditionally include COMPAT_SYS_NI defineskernel/time/posix-stubs.c+7 -60 replies
4/7posix-timers: Use get_timepsec64() and put_timespec64()kernel/time/posix-stubs.c kernel/time/posix-timers.c+70 -820 replies
5/7nanosleep: Use get_timepsec64() and put_timespec64()include/linux/hrtimer.h kernel/time/alarmtimer.c kernel/time/hrtimer.c +2 more+26 -380 replies
6/7timerfd: Use get_itimerspec64() and put_itimerspec64()fs/timerfd.c+21 -220 replies
7/7posix_clocks: Use get_itimerspec64() and put_itimerspec64()kernel/time/posix-timers.c+16 -280 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/7] Isolate time_t data types for clock/timer syscalls

The series aims at isolating data conversions of time_t based structures:
struct timespec and struct itimerspec at user space boundaries. This helps to later change the underlying types to handle y2038 changes to these.

The series is an update to Arnd Bergmann's previous series:
http://sourceware.org/ml/libc-alpha/2015-05/msg00070.html

Changes since v1:
* Rebased and removed common code paths on the tip linux-next. Changes since v2:
* Removed accidental inclusion of wrong version of patch 3/7.

Deepa Dinamani (7):
time: add get_timespec64 and put_timespec64
time: introduce {get,put}_itimerspec64
posix-stubs: Conditionally include COMPAT_SYS_NI defines
posix-timers: Use get_timepsec64() and put_timespec64()
nanosleep: Use get_timepsec64() and put_timespec64()
timerfd: Use get_itimerspec64() and put_itimerspec64()
posix_clocks: Use get_itimerspec64() and put_itimerspec64()

 fs/timerfd.c                   |  43 +++++++------
 include/linux/compat.h         |   6 ++
 include/linux/hrtimer.h        |   2 +-
 include/linux/posix-timers.h   |   1 -
 include/linux/time.h           |  18 ++++++
 kernel/compat.c                |  65 ++++++++++++++++++++
 kernel/time/alarmtimer.c       |   4 +-
 kernel/time/hrtimer.c          |  30 ++++------
 kernel/time/posix-cpu-timers.c |   8 +--
 kernel/time/posix-stubs.c      |  96 +++++++++++++++--------------
 kernel/time/posix-timers.c     | 133 +++++++++++++++--------------------------
 kernel/time/time.c             |  58 ++++++++++++++++++
 12 files changed, 287 insertions(+), 177 deletions(-)
Signature · 1 line
2.11.0