Skip to content

converting system calls to 64-bit time_t, part 2

Arnd Bergmann linux-api linux-arch lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9y2038: remove unneeded ipc uapi header filesarch/alpha/include/asm/Kbuild arch/alpha/include/uapi/asm/ipcbuf.h arch/alpha/include/uapi/asm/msgbuf.h +37 more+48 -8081 reply
2/9y2038: asm-generic: extend sysvipc data structuresarch/arm64/include/asm/compat.h arch/tile/include/asm/compat.h include/uapi/asm-generic/msgbuf.h +2 more+64 -582 replies
3/9y2038: mips: extend sysvipc data structuresarch/mips/include/asm/compat.h arch/mips/include/uapi/asm/msgbuf.h arch/mips/include/uapi/asm/sembuf.h +1 more+92 -400 replies
4/9y2038: x86: extend sysvipc data structuresarch/x86/include/asm/compat.h arch/x86/include/uapi/asm/msgbuf.h arch/x86/include/uapi/asm/sembuf.h +1 more+123 -180 replies
5/9y2038: parisc: extend sysvipc data structuresarch/parisc/include/asm/compat.h arch/parisc/include/uapi/asm/msgbuf.h arch/parisc/include/uapi/asm/sembuf.h +1 more+47 -480 replies
6/9y2038: sparc: extend sysvipc data structuresarch/sparc/include/asm/compat.h arch/sparc/include/uapi/asm/msgbuf.h arch/sparc/include/uapi/asm/sembuf.h +1 more+41 -470 replies
7/9y2038: powerpc: extend sysvipc data structuresarch/powerpc/include/asm/compat.h arch/powerpc/include/uapi/asm/msgbuf.h arch/powerpc/include/uapi/asm/sembuf.h +1 more+40 -420 replies
8/9y2038: xtensa: extend sysvipc data structuresarch/xtensa/include/uapi/asm/msgbuf.h arch/xtensa/include/uapi/asm/sembuf.h arch/xtensa/include/uapi/asm/shmbuf.h+28 -480 replies
9/9y2038: ipc: report long times to user spaceinclude/linux/msg.h include/linux/sem.h include/linux/shm.h +4 more+64 -370 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/9] converting system calls to 64-bit time_t, part 2

This is a follow-up to the series posted at [1]. To make review a little easier, I'm focusing on just one class of system calls here, and this is one that is handled differently from all the others.

In particular, for sys_msgctl, sys_semctl and sys_shmctl, I do not introduce a completely new set of replacement system calls, but instead extend the existing ones to return data in the reserved fields of the normal data structure.

This should be completely transparent to any existing user space, and only after the 32-bit time_t wraps, it will make a difference in the returned data.

libc implementations will consequently have to provide their own data structures when they move to 64-bit time_t, and convert the structures in user space from the ones returned by the kernel.

There are three cases here:

- little-endian architectures (except powerpc and mips) can use the normal layout and just cast the data structure to the user space type that contains 64-bit numbers.

- parisc and sparc can do the same thing with big-endian user space

- little-endian powerpc and most big-endian architectures have to flip the upper and lower 32-bit halves of the time_t value in memory, but can otherwise keep using the normal layout

- mips and big-endian xtensa need to be more careful because they are not consistent in their definitions, and they have to provide custom libc implementations for the system calls to use 64-bit time_t.

Please review.

Arnd

[1] http://lwn.net/Articles/643407/

Arnd Bergmann (8):
y2038: asm-generic: extend sysvipc data structures
y2038: mips: extend sysvipc data structures
y2038: x86: extend sysvipc data structures
y2038: parisc: extend sysvipc data structures
y2038: sparc: extend sysvipc data structures
y2038: powerpc: extend sysvipc data structures
y2038: xtensa: extend sysvipc data structures
y2038: ipc: report long times to user space

 arch/arm64/include/asm/compat.h        | 32 +++++++++----------
 arch/mips/include/asm/compat.h         | 38 +++++++++++-----------
 arch/mips/include/uapi/asm/msgbuf.h    | 56 +++++++++++++++++++++-----------
 arch/mips/include/uapi/asm/sembuf.h    | 15 +++++++--
 arch/mips/include/uapi/asm/shmbuf.h    | 23 ++++++++++++--
 arch/parisc/include/asm/compat.h       | 32 +++++++++----------
 arch/parisc/include/uapi/asm/msgbuf.h  | 32 +++++++++----------
 arch/parisc/include/uapi/asm/sembuf.h  | 13 ++++----
 arch/parisc/include/uapi/asm/shmbuf.h  | 18 +++++------
 arch/powerpc/include/asm/compat.h      | 32 +++++++++----------
 arch/powerpc/include/uapi/asm/msgbuf.h | 18 +++++------
 arch/powerpc/include/uapi/asm/sembuf.h | 14 ++++----
 arch/powerpc/include/uapi/asm/shmbuf.h | 18 +++++------
 arch/sparc/include/asm/compat.h        | 32 +++++++++----------
 arch/sparc/include/uapi/asm/msgbuf.h   | 21 ++++++------
 arch/sparc/include/uapi/asm/sembuf.h   | 15 ++++-----
 arch/sparc/include/uapi/asm/shmbuf.h   | 20 ++++++------
 arch/tile/include/asm/compat.h         | 32 +++++++++----------
 arch/x86/include/asm/compat.h          | 32 +++++++++----------
 arch/x86/include/uapi/asm/msgbuf.h     | 41 +++++++++++++++++++++++-
 arch/x86/include/uapi/asm/sembuf.h     | 10 ++++++
 arch/x86/include/uapi/asm/shmbuf.h     | 58 +++++++++++++++++++++++++++++++++-
 arch/xtensa/include/uapi/asm/msgbuf.h  | 24 +++++++-------
 arch/xtensa/include/uapi/asm/sembuf.h  | 16 +++++-----
 arch/xtensa/include/uapi/asm/shmbuf.h  | 36 +++++----------------
 include/linux/msg.h                    |  7 ++--
 include/linux/sem.h                    |  3 +-
 include/linux/shm.h                    |  7 ++--
 include/uapi/asm-generic/msgbuf.h      | 16 +++++-----
 include/uapi/asm-generic/sembuf.h      | 26 +++++++++------
 include/uapi/asm-generic/shmbuf.h      | 16 +++++-----
 ipc/compat.c                           |  8 +++++
 ipc/msg.c                              | 23 ++++++++------
 ipc/sem.c                              | 32 +++++++++++--------
 ipc/shm.c                              | 21 +++++++-----
 35 files changed, 499 insertions(+), 338 deletions(-)
Signature · 6 lines
2.1.0.rc2

_______________________________________________
Y2038 mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/y2038