linux_dsm_epyc7002/arch
Arnd Bergmann 3f3a4b3fbf y2038: mips: Extend sysvipc data structures
MIPS is the weirdest case for sysvipc, because each of the
three data structures is done differently:

* msqid64_ds has padding in the right place so we could in theory
  extend this one to just have 64-bit values instead of time_t.
  As this does not work for most of the other combinations,
  we just handle it in the common manner though.

* semid64_ds has no padding for 64-bit time_t, but has two reserved
  'long' fields, which are sufficient to extend the sem_otime
  and sem_ctime fields to 64 bit. In order to do this, the libc
  implementation will have to copy the data into another structure
  that has the fields in a different order. MIPS is the only
  architecture with this problem, so this is best done in MIPS
  specific libc code.

* shmid64_ds is slightly worse than that, because it has three
  time_t fields but only two unused 32-bit words. As a workaround,
  we extend each field only by 16 bits, ending up with 48-bit
  timestamps that user space again has to work around by itself.

The compat versions of the data structures are changed in the
same way.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2018-04-20 16:20:04 +02:00
..
alpha y2038: alpha: Remove unneeded ipc uapi header files 2018-04-20 16:19:54 +02:00
arc time: Add an asm-generic/compat.h file 2018-04-19 13:28:51 +02:00
arm time: Add an asm-generic/compat.h file 2018-04-19 13:28:51 +02:00
arm64 y2038: arm64: Extend sysvipc compat data structures 2018-04-20 16:20:01 +02:00
c6x time: Add an asm-generic/compat.h file 2018-04-19 13:28:51 +02:00
h8300 time: Add an asm-generic/compat.h file 2018-04-19 13:28:51 +02:00
hexagon time: Add an asm-generic/compat.h file 2018-04-19 13:28:51 +02:00
ia64 y2038: ia64: Remove unneeded ipc uapi header files 2018-04-20 16:19:56 +02:00
m68k time: Add an asm-generic/compat.h file 2018-04-19 13:28:51 +02:00
microblaze time: Add an asm-generic/compat.h file 2018-04-19 13:28:51 +02:00
mips y2038: mips: Extend sysvipc data structures 2018-04-20 16:20:04 +02:00
nds32 time: Add an asm-generic/compat.h file 2018-04-19 13:28:51 +02:00
nios2 time: Add an asm-generic/compat.h file 2018-04-19 13:28:51 +02:00
openrisc time: Add an asm-generic/compat.h file 2018-04-19 13:28:51 +02:00
parisc compat: Move compat_timespec/ timeval to compat_time.h 2018-04-19 13:29:54 +02:00
powerpc compat: Move compat_timespec/ timeval to compat_time.h 2018-04-19 13:29:54 +02:00
riscv RISC-V changes for 4.17 2018-04-04 16:43:47 -07:00
s390 y2038: s390: Remove unneeded ipc uapi header files 2018-04-20 16:19:58 +02:00
sh time: Add an asm-generic/compat.h file 2018-04-19 13:28:51 +02:00
sparc compat: Move compat_timespec/ timeval to compat_time.h 2018-04-19 13:29:54 +02:00
um time: Add an asm-generic/compat.h file 2018-04-19 13:28:51 +02:00
unicore32 time: Add an asm-generic/compat.h file 2018-04-19 13:28:51 +02:00
x86 y2038: x86: Extend sysvipc data structures 2018-04-20 16:19:52 +02:00
xtensa time: Add an asm-generic/compat.h file 2018-04-19 13:28:51 +02:00
.gitignore
Kconfig time: Introduce CONFIG_COMPAT_32BIT_TIME 2018-04-19 13:30:40 +02:00