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
..
2018-04-10 11:39:22 -07:00
2018-02-19 10:55:36 +00:00
2018-04-10 11:39:22 -07:00
2018-04-10 11:39:22 -07:00
2016-08-03 08:16:30 +02:00
2017-01-25 02:51:11 +01:00
2018-04-13 17:10:27 -07:00
2017-11-03 09:02:30 -07:00
2018-02-19 10:55:36 +00:00
2017-04-10 11:56:07 +02:00
2018-04-10 11:39:22 -07:00