Skip to content

y2038 cleanups

Arnd Bergmann linux-alpha linux-api linux-arch linux-fsdevel linux-ia64 linux-mips linux-parisc linux-pm linux-um linuxppc-dev lkml netdev selinux sparclinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest23 patches 56 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/23y2038: remove CONFIG_64BIT_TIMEarch/Kconfig fs/aio.c ipc/syscall.c +3 more+6 -142 replies
2/23y2038: add __kernel_old_timespec and __kernel_old_time_tinclude/uapi/asm-generic/posix_types.h include/uapi/linux/time_types.h+6 -03 replies
3/23y2038: vdso: change timeval to __kernel_old_timevalarch/nds32/kernel/vdso/gettimeofday.c arch/powerpc/kernel/asm-offsets.c arch/sparc/vdso/vclock_gettime.c +2 more+16 -161 reply
4/23y2038: vdso: change timespec to __kernel_old_timespecarch/ia64/kernel/asm-offsets.c arch/nds32/kernel/vdso/gettimeofday.c arch/sparc/vdso/vclock_gettime.c +1 more+26 -260 replies
5/23y2038: vdso: change time_t to __kernel_old_time_tarch/x86/entry/vdso/vclock_gettime.c arch/x86/entry/vsyscall/vsyscall_64.c arch/x86/um/vdso/um_vdso.c +1 more+8 -81 reply
6/23y2038: vdso: nds32: open-code timespec_add_ns()arch/nds32/kernel/vdso/gettimeofday.c+15 -180 replies
7/23y2038: vdso: powerpc: avoid timespec referencesarch/powerpc/include/asm/vdso_datapage.h arch/powerpc/kernel/asm-offsets.c arch/powerpc/kernel/time.c +2 more+18 -216 replies
8/23y2038: ipc: remove __kernel_time_t reference from headersarch/mips/include/uapi/asm/msgbuf.h arch/mips/include/uapi/asm/sembuf.h arch/mips/include/uapi/asm/shmbuf.h +15 more+55 -562 replies
9/23y2038: stat: avoid 'time_t' in 'struct stat'arch/mips/include/uapi/asm/stat.h arch/powerpc/include/uapi/asm/stat.h arch/sparc/include/uapi/asm/stat.h+21 -210 replies
10/23y2038: uapi: change __kernel_time_t to __kernel_old_time_tinclude/linux/syscalls.h include/linux/time32.h include/linux/types.h +9 more+27 -272 replies
11/23y2038: rusage: use __kernel_old_timevalarch/alpha/kernel/osf_sys.c include/uapi/linux/resource.h kernel/sys.c+5 -56 replies
12/23y2038: syscalls: change remaining timeval to __kernel_old_timevalarch/powerpc/include/asm/asm-prototypes.h arch/powerpc/kernel/syscalls.c fs/select.c +4 more+20 -192 replies
13/23y2038: socket: remove timespec reference in timestampinginclude/uapi/linux/errqueue.h net/core/scm.c+11 -22 replies
14/23y2038: make ns_to_compat_timeval use __kernel_old_timevalinclude/linux/compat.h+2 -20 replies
15/23y2038: elfcore: Use __kernel_old_timeval for process timesarch/mips/kernel/binfmt_elfn32.c arch/mips/kernel/binfmt_elfo32.c fs/binfmt_elf.c +3 more+22 -220 replies
16/23y2038: timerfd: Use timespec64 internallyfs/timerfd.c+7 -71 reply
17/23y2038: time: avoid timespec usage in settimeofday()include/linux/syscalls.h kernel/time/time.c+10 -128 replies
18/23y2038: itimer: compat handling to itimer.cinclude/linux/compat.h kernel/compat.c kernel/time/itimer.c+39 -421 reply
19/23y2038: use compat_{get,set}_itimer on alphaarch/alpha/kernel/osf_sys.c arch/alpha/kernel/syscalls/syscall.tbl kernel/time/itimer.c+4 -691 reply
20/23y2038: move itimer reset into itimer.cinclude/linux/time.h kernel/time/itimer.c security/selinux/hooks.c+21 -137 replies
21/23y2038: itimer: change implementation to timespec64include/trace/events/timer.h kernel/time/itimer.c+100 -668 replies
22/23y2038: itimer: use ktime_t internallyinclude/trace/events/timer.h kernel/time/itimer.c+129 -1291 reply
23/23y2038: allow disabling time32 system callsarch/Kconfig kernel/sys_ni.c+25 -11 reply

Reviews trailers per patch

11 of 23 patches have a Reviewed-by or Acked-by.

PatchDeepa DinamaniChristian BraunerCyrill GorcunovThomas GleixnerRafael J. Wysocki
1/23
2/23A-b
3/23R-b
4/23
5/23R-b
6/23
7/23
8/23
9/23
10/23A-b A-b
11/23R-b
12/23A-b A-b
13/23A-b
14/23
15/23
16/23R-b
17/23
18/23R-b
19/23
20/23R-b
21/23
22/23
23/23A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 00/23] y2038 cleanups

This is a series of cleanups for the y2038 work, mostly intended for namespace cleaning: the kernel defines the traditional time_t, timeval and timespec types that often lead to y2038-unsafe code. Even though the unsafe usage is mostly gone from the kernel, having the types and associated functions around means that we can still grow new users, and that we may be missing conversions to safe types that actually matter.

As there is no rush on any of these patches, I would either queue them up in linux-next through my y2038 branch, or Thomas could add them to the tip tree if he wants.

As mentioned in another series, this is part of a larger effort to fix all the remaining bits and pieces that are not completed yet from the y2038 conversion, and the full set can be found at:

https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/log/?h=y2038-endgame

Maintainers, please review and provide Acks.

Let me know if you have any opinion on whether we should do the include last two patches of this series or not.

Arnd

Arnd Bergmann (23):
y2038: remove CONFIG_64BIT_TIME
y2038: add __kernel_old_timespec and __kernel_old_time_t
y2038: vdso: change timeval to __kernel_old_timeval
y2038: vdso: change timespec to __kernel_old_timespec
y2038: vdso: change time_t to __kernel_old_time_t
y2038: vdso: nds32: open-code timespec_add_ns()
y2038: vdso: powerpc: avoid timespec references
y2038: ipc: remove __kernel_time_t reference from headers
y2038: stat: avoid 'time_t' in 'struct stat'
y2038: uapi: change __kernel_time_t to __kernel_old_time_t
y2038: rusage: use __kernel_old_timeval
y2038: syscalls: change remaining timeval to __kernel_old_timeval
y2038: socket: remove timespec reference in timestamping
y2038: make ns_to_compat_timeval use __kernel_old_timeval
y2038: elfcore: Use __kernel_old_timeval for process times
y2038: timerfd: Use timespec64 internally
y2038: time: avoid timespec usage in settimeofday()
y2038: itimer: compat handling to itimer.c
y2038: use compat_{get,set}_itimer on alpha
y2038: move itimer reset into itimer.c
y2038: itimer: change implementation to timespec64 [RFC] y2038: itimer: use ktime_t internally
y2038: allow disabling time32 system calls

 arch/Kconfig                              |  11 +-
 arch/alpha/kernel/osf_sys.c               |  67 +-----
 arch/alpha/kernel/syscalls/syscall.tbl    |   4 +-
 arch/ia64/kernel/asm-offsets.c            |   2 +-
 arch/mips/include/uapi/asm/msgbuf.h       |   6 +-
 arch/mips/include/uapi/asm/sembuf.h       |   4 +-
 arch/mips/include/uapi/asm/shmbuf.h       |   6 +-
 arch/mips/include/uapi/asm/stat.h         |  16 +-
 arch/mips/kernel/binfmt_elfn32.c          |   4 +-
 arch/mips/kernel/binfmt_elfo32.c          |   4 +-
 arch/nds32/kernel/vdso/gettimeofday.c     |  61 +++--
 arch/parisc/include/uapi/asm/msgbuf.h     |   6 +-
 arch/parisc/include/uapi/asm/sembuf.h     |   4 +-
 arch/parisc/include/uapi/asm/shmbuf.h     |   6 +-
 arch/powerpc/include/asm/asm-prototypes.h |   3 +-
 arch/powerpc/include/asm/vdso_datapage.h  |   6 +-
 arch/powerpc/include/uapi/asm/msgbuf.h    |   6 +-
 arch/powerpc/include/uapi/asm/sembuf.h    |   4 +-
 arch/powerpc/include/uapi/asm/shmbuf.h    |   6 +-
 arch/powerpc/include/uapi/asm/stat.h      |   2 +-
 arch/powerpc/kernel/asm-offsets.c         |  18 +-
 arch/powerpc/kernel/syscalls.c            |   4 +-
 arch/powerpc/kernel/time.c                |   5 +-
 arch/powerpc/kernel/vdso32/gettimeofday.S |   6 +-
 arch/powerpc/kernel/vdso64/gettimeofday.S |   8 +-
 arch/sparc/include/uapi/asm/msgbuf.h      |   6 +-
 arch/sparc/include/uapi/asm/sembuf.h      |   4 +-
 arch/sparc/include/uapi/asm/shmbuf.h      |   6 +-
 arch/sparc/include/uapi/asm/stat.h        |  24 +-
 arch/sparc/vdso/vclock_gettime.c          |  36 +--
 arch/x86/entry/vdso/vclock_gettime.c      |   6 +-
 arch/x86/entry/vsyscall/vsyscall_64.c     |   4 +-
 arch/x86/include/uapi/asm/msgbuf.h        |   6 +-
 arch/x86/include/uapi/asm/sembuf.h        |   4 +-
 arch/x86/include/uapi/asm/shmbuf.h        |   6 +-
 arch/x86/um/vdso/um_vdso.c                |  12 +-
 fs/aio.c                                  |   2 +-
 fs/binfmt_elf.c                           |  12 +-
 fs/binfmt_elf_fdpic.c                     |  12 +-
 fs/compat_binfmt_elf.c                    |   4 +-
 fs/select.c                               |  10 +-
 fs/timerfd.c                              |  14 +-
 fs/utimes.c                               |   8 +-
 include/linux/compat.h                    |  19 +-
 include/linux/syscalls.h                  |  16 +-
 include/linux/time.h                      |   9 +-
 include/linux/time32.h                    |   2 +-
 include/linux/types.h                     |   2 +-
 include/trace/events/timer.h              |  29 +--
 include/uapi/asm-generic/msgbuf.h         |  12 +-
 include/uapi/asm-generic/posix_types.h    |   1 +
 include/uapi/asm-generic/sembuf.h         |   7 +-
 include/uapi/asm-generic/shmbuf.h         |  12 +-
 include/uapi/linux/cyclades.h             |   6 +-
 include/uapi/linux/elfcore.h              |   8 +-
 include/uapi/linux/errqueue.h             |   7 +
 include/uapi/linux/msg.h                  |   6 +-
 include/uapi/linux/ppp_defs.h             |   4 +-
 include/uapi/linux/resource.h             |   4 +-
 include/uapi/linux/sem.h                  |   4 +-
 include/uapi/linux/shm.h                  |   6 +-
 include/uapi/linux/time.h                 |   6 +-
 include/uapi/linux/time_types.h           |   5 +
 include/uapi/linux/utime.h                |   4 +-
 ipc/syscall.c                             |   2 +-
 kernel/compat.c                           |  24 --
 kernel/power/power.h                      |   2 +-
 kernel/sys.c                              |   4 +-
 kernel/sys_ni.c                           |  23 ++
 kernel/time/hrtimer.c                     |   2 +-
 kernel/time/itimer.c                      | 280 ++++++++++++++--------
 kernel/time/time.c                        |  32 ++-
 lib/vdso/gettimeofday.c                   |   4 +-
 net/core/scm.c                            |   6 +-
 net/socket.c                              |   2 +-
 security/selinux/hooks.c                  |  10 +-
 76 files changed, 501 insertions(+), 504 deletions(-)
Signature · 51 lines
2.20.0

Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]>
Cc: [email protected]>
Cc: [email protected]>
Cc: [email protected]>
Cc: [email protected]>
Cc: [email protected]>
Cc: [email protected]>
Cc: [email protected]>
Cc: [email protected]>
Cc: [email protected]>
Cc: [email protected]>
Cc: [email protected]>
Cc: [email protected]>


--
To unsubscribe, send a message with 'unsubscribe linux-aio' in
the body to [email protected].  For more info on Linux AIO,
see: http://www.kvack.org/aio/
Don't email: <a href=mailto:"[email protected]">[email protected]</a>