Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1668825

[PATCH 0/8] Isolate time_t data types for clock/timer syscalls

From Deepa Dinamani <deepa.kernel@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 0/8] Isolate time_t data types for clock/timer syscalls
Date 2017-06-19 08:50 +0200
Message-ID <tTYFA-7yd-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

The series particularly aims at changing kernel clock and timer interfaces.

The changes include
a. Add data conversion apis for native and compat modes.
b. Refactor nanosleep and clock_nanosleep logic:
   1. Move nanosleep and its compat version to a new file nanosleep.c.
      Alternatively, these can be moved into hrtimer.c.
   2. Refactor common functions for nanosleep: same functions
      are used for posix timers and posix stubs.
   3. Change the posix clock callbacks to take advantage of these
      common functions.
b. Move compat syscalls to the same files as the regular syscalls.
c. Use data conversion apis in the regular and compat syscall paths.
d. Remove set_fs()/get_fs() calls in the compat syscall path and
   use the same logic as in the regular syscall path.

Deepa Dinamani (8):
  time: add get_timespec64 and put_timespec64
  nanosleep: Move native and compat syscalls
  kernel: compat: Move clock and timer compat syscalls
  nanosleep: Use get_timespec64() and set_timespec64()
  posix-timers: Use get_timepsec64() and put_timespec64()
  time: introduce {get,put}_itimerspec64
  posix_clocks: Use get_itimerspec64() and put_itimerspec64()
  timerfd: Use get_itimerspec64() and put_itimerspec64()

 fs/timerfd.c                   |  43 +++---
 include/linux/compat.h         |   6 +
 include/linux/hrtimer.h        |   5 +-
 include/linux/posix-timers.h   |   1 -
 include/linux/time.h           |  18 +++
 kernel/compat.c                | 288 ++++++++++------------------------------
 kernel/time/Makefile           |   2 +-
 kernel/time/alarmtimer.c       |  26 ++--
 kernel/time/hrtimer.c          |  34 +----
 kernel/time/nanosleep.c        | 126 ++++++++++++++++++
 kernel/time/nanosleep.h        |  19 +++
 kernel/time/posix-cpu-timers.c |  27 ++--
 kernel/time/posix-stubs.c      | 155 +++++++++++++++++-----
 kernel/time/posix-timers.c     | 292 +++++++++++++++++++++++++++++++----------
 kernel/time/posix-timers.h     |   5 +-
 kernel/time/time.c             |  58 ++++++++
 16 files changed, 694 insertions(+), 411 deletions(-)
 create mode 100644 kernel/time/nanosleep.c
 create mode 100644 kernel/time/nanosleep.h

-- 
2.11.0

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 0/8] Isolate time_t data types for clock/timer syscalls Deepa Dinamani <deepa.kernel@gmail.com> - 2017-06-19 08:50 +0200
  [PATCH 4/8] nanosleep: Use get_timespec64() and set_timespec64() Deepa Dinamani <deepa.kernel@gmail.com> - 2017-06-19 08:50 +0200
  [PATCH 7/8] posix_clocks: Use get_itimerspec64() and put_itimerspec64() Deepa Dinamani <deepa.kernel@gmail.com> - 2017-06-19 08:50 +0200
  [PATCH 8/8] timerfd: Use get_itimerspec64() and put_itimerspec64() Deepa Dinamani <deepa.kernel@gmail.com> - 2017-06-19 08:50 +0200
  [PATCH 1/8] time: add get_timespec64 and put_timespec64 Deepa Dinamani <deepa.kernel@gmail.com> - 2017-06-19 08:50 +0200
  [PATCH 6/8] time: introduce {get,put}_itimerspec64 Deepa Dinamani <deepa.kernel@gmail.com> - 2017-06-19 08:50 +0200
  [PATCH 5/8] posix-timers: Use get_timepsec64() and put_timespec64() Deepa Dinamani <deepa.kernel@gmail.com> - 2017-06-19 08:50 +0200
  Re: [PATCH 0/8] Isolate time_t data types for clock/timer syscalls Al Viro <viro@ZenIV.linux.org.uk> - 2017-06-19 09:30 +0200
    Re: [PATCH 0/8] Isolate time_t data types for clock/timer syscalls Deepa Dinamani <deepa.kernel@gmail.com> - 2017-06-19 21:40 +0200
      Re: [PATCH 0/8] Isolate time_t data types for clock/timer syscalls Al Viro <viro@ZenIV.linux.org.uk> - 2017-06-19 21:50 +0200
        Re: [PATCH 0/8] Isolate time_t data types for clock/timer syscalls Deepa Dinamani <deepa.kernel@gmail.com> - 2017-06-19 23:00 +0200
          Re: [PATCH 0/8] Isolate time_t data types for clock/timer syscalls Al Viro <viro@ZenIV.linux.org.uk> - 2017-06-19 23:20 +0200

csiph-web