Skip to content

drivers, fs: y2038 updates

Arnd Bergmann cluster-devel dri-devel linux-api linux-arm-msm linux-fsdevel linux-input linux-nfs linux-um linux-xfs lkml netdev sparclinux stable 2 versions – Applied

Status from this message: Applied, thank you.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest24 patches 21 repliesApplied
  2. v116 patches 18 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/24Input: input_event: fix struct padding on sparc64drivers/input/evdev.c drivers/input/misc/uinput.c include/uapi/linux/input.h+17 -121 reply
2/24fat: use prandom_u32() for i_generationfs/fat/inode.c+2 -10 replies
3/24dlm: use SO_SNDTIMEO_NEW instead of SO_SNDTIMEO_OLDfs/dlm/lowcomms.c+3 -30 replies
4/24xtensa: ISS: avoid struct timevalarch/xtensa/platforms/iss/include/platform/simcall.h+2 -20 replies
5/24um: ubd: use 64-bit time_t where possiblearch/um/drivers/cow.h arch/um/drivers/cow_user.c arch/um/drivers/ubd_kern.c +2 more+12 -110 replies
6/24acct: stop using get_seconds()include/uapi/linux/acct.h include/uapi/linux/taskstats.h kernel/acct.c +1 more+11 -40 replies
7/24tsacct: add 64-bit btime fieldinclude/uapi/linux/taskstats.h kernel/tsacct.c+5 -10 replies
8/24packet: clarify timestamp overflownet/packet/af_packet.c+17 -100 replies
9/24quota: avoid time_t in v1_disk_dqblk definitionfs/quota/quotaio_v1.h+4 -21 reply
10/24hostfs: pass 64-bit timestamps to/from user spacefs/hostfs/hostfs.h fs/hostfs/hostfs_kern.c+22 -150 replies
11/24hfs/hfsplus: use 64-bit inode timestampsfs/hfs/hfs_fs.h fs/hfs/inode.c fs/hfsplus/hfsplus_fs.h +1 more+53 -190 replies
12/24drm/msm: avoid using 'timespec'drivers/gpu/drm/msm/msm_drv.h+1 -20 replies
13/24drm/etnaviv: reject timeouts with tv_nsec >= NSEC_PER_SECdrivers/gpu/drm/etnaviv/etnaviv_drv.c+9 -06 replies
14/24drm/etnaviv: avoid deprecated timespecdrivers/gpu/drm/etnaviv/etnaviv_drv.c drivers/gpu/drm/etnaviv/etnaviv_drv.h drivers/gpu/drm/etnaviv/etnaviv_gem.c +3 more+18 -200 replies
15/24sunrpc: convert to time64_t for expiryinclude/linux/sunrpc/gss_api.h include/linux/sunrpc/gss_krb5.h net/sunrpc/auth_gss/gss_krb5_mech.c +5 more+30 -240 replies
16/24nfs: use time64_t internallyinclude/linux/sunrpc/cache.h net/sunrpc/auth_gss/svcauth_gss.c net/sunrpc/cache.c +1 more+37 -330 replies
17/24nfs: fix timstamp debug printsfs/nfs/nfs4xdr.c+5 -50 replies
18/24nfs: fscache: use timespec64 in inode auxdatafs/nfs/fscache-index.c fs/nfs/fscache.c fs/nfs/fscache.h+21 -110 replies
19/24xfs: rename compat_time_t to old_time32_tfs/xfs/xfs_ioctl32.c fs/xfs/xfs_ioctl32.h+2 -22 replies
20/24xfs: disallow broken ioctls without compat-32-bit-timefs/xfs/xfs_ioctl.c+26 -04 replies
21/24xfs: quota: move to time64_t interfacesfs/xfs/xfs_dquot.c fs/xfs/xfs_qm.h fs/xfs/xfs_quotaops.c +1 more+14 -125 replies
22/24y2038: remove obsolete jiffies conversion functionsinclude/linux/jiffies.h kernel/time/time.c+5 -730 replies
23/24y2038: rename itimerval to __kernel_old_itimervalinclude/linux/syscalls.h include/uapi/linux/time_types.h kernel/time/itimer.c+18 -140 replies
24/24y2038: sparc: remove use of struct timexarch/sparc/kernel/sys_sparc_64.c include/uapi/linux/timex.h+17 -142 replies

Reviews trailers per patch

7 of 24 patches have a Reviewed-by or Acked-by.

PatchDeepa DinamaniMax FilippovWillem de BruijnVyacheslav DubeykoErnesto A. FernándezJordan CrouseDarrick J. Wong
1/24
2/24
3/24A-b
4/24A-b
5/24
6/24
7/24
8/24A-b
9/24
10/24
11/24R-b R-b
12/24R-b
13/24
14/24
15/24
16/24
17/24
18/24
19/24R-b
20/24
21/24R-b
22/24
23/24
24/24

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

Read the v2 thread

Cover letter [PATCH v2 00/24] drivers, fs: y2038 updates

These are updates to devidce drivers and file systems that for some reason or another were not included in the kernel in the previous y2038 series.

I've gone through all users of time_t again to make sure the kernel is in a long-term maintainable state.

Posting these as a series for better organization, but each change here is applicable standalone.

Please merge, review, ack/nack etc as you see fit. I will add these to my y2038 branch [1] for linux-next, but can keep rebasing for feedback and to remove any patches that get picked up by a maintainer.

Changes since v1 [2]:

- Add Acks I received
- Rebase to v5.5-rc1, droping patches that got merged already
- Add NFS, XFS and the final three patches from another series
- Rewrite etnaviv patches

Arnd

[1] https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/log/?h=y2038
[2] https://lore.kernel.org/lkml/20191108213257.3097633-1-arnd at arndb.de/

Arnd Bergmann (24):
Input: input_event: fix struct padding on sparc64
fat: use prandom_u32() for i_generation
dlm: use SO_SNDTIMEO_NEW instead of SO_SNDTIMEO_OLD
xtensa: ISS: avoid struct timeval
um: ubd: use 64-bit time_t where possible
acct: stop using get_seconds()
tsacct: add 64-bit btime field
packet: clarify timestamp overflow
quota: avoid time_t in v1_disk_dqblk definition
hostfs: pass 64-bit timestamps to/from user space hfs/hfsplus: use 64-bit inode timestamps drm/msm: avoid using 'timespec'
drm/etnaviv: reject timeouts with tv_nsec >= NSEC_PER_SEC drm/etnaviv: avoid deprecated timespec
sunrpc: convert to time64_t for expiry
nfs: use time64_t internally
nfs: fix timstamp debug prints
nfs: fscache: use timespec64 in inode auxdata
xfs: rename compat_time_t to old_time32_t
xfs: disallow broken ioctls without compat-32-bit-time
xfs: quota: move to time64_t interfaces
y2038: remove obsolete jiffies conversion functions
y2038: rename itimerval to __kernel_old_itimerval
y2038: sparc: remove use of struct timex

 arch/sparc/kernel/sys_sparc_64.c              | 29 +++++-----
 arch/um/drivers/cow.h                         |  2 +-
 arch/um/drivers/cow_user.c                    |  7 ++-
 arch/um/drivers/ubd_kern.c                    | 10 ++--
 arch/um/include/shared/os.h                   |  2 +-
 arch/um/os-Linux/file.c                       |  2 +-
 .../platforms/iss/include/platform/simcall.h  |  4 +-
 drivers/gpu/drm/etnaviv/etnaviv_drv.c         | 20 ++++---
 drivers/gpu/drm/etnaviv/etnaviv_drv.h         | 11 ++--
 drivers/gpu/drm/etnaviv/etnaviv_gem.c         |  4 +-
 drivers/gpu/drm/etnaviv/etnaviv_gem.h         |  2 +-
 drivers/gpu/drm/etnaviv/etnaviv_gpu.c         |  5 +-
 drivers/gpu/drm/etnaviv/etnaviv_gpu.h         |  5 +-
 drivers/gpu/drm/msm/msm_drv.h                 |  3 +-
 drivers/input/evdev.c                         | 14 ++---
 drivers/input/misc/uinput.c                   | 14 +++--
 fs/dlm/lowcomms.c                             |  6 +-
 fs/fat/inode.c                                |  3 +-
 fs/hfs/hfs_fs.h                               | 28 +++++++--
 fs/hfs/inode.c                                |  4 +-
 fs/hfsplus/hfsplus_fs.h                       | 28 +++++++--
 fs/hfsplus/inode.c                            | 12 ++--
 fs/hostfs/hostfs.h                            | 22 ++++---
 fs/hostfs/hostfs_kern.c                       | 15 +++--
 fs/nfs/fscache-index.c                        |  6 +-
 fs/nfs/fscache.c                              | 18 ++++--
 fs/nfs/fscache.h                              |  8 ++-
 fs/nfs/nfs4xdr.c                              | 10 ++--
 fs/quota/quotaio_v1.h                         |  6 +-
 fs/xfs/xfs_dquot.c                            |  6 +-
 fs/xfs/xfs_ioctl.c                            | 26 +++++++++
 fs/xfs/xfs_ioctl32.c                          |  2 +-
 fs/xfs/xfs_ioctl32.h                          |  2 +-
 fs/xfs/xfs_qm.h                               |  6 +-
 fs/xfs/xfs_quotaops.c                         |  6 +-
 fs/xfs/xfs_trans_dquot.c                      |  8 ++-
 include/linux/jiffies.h                       | 20 -------
 include/linux/sunrpc/cache.h                  | 42 ++++++++------
 include/linux/sunrpc/gss_api.h                |  4 +-
 include/linux/sunrpc/gss_krb5.h               |  2 +-
 include/linux/syscalls.h                      |  9 ++-
 include/uapi/linux/acct.h                     |  2 +
 include/uapi/linux/input.h                    |  1 +
 include/uapi/linux/taskstats.h                |  6 +-
 include/uapi/linux/time_types.h               |  5 ++
 include/uapi/linux/timex.h                    |  2 +
 kernel/acct.c                                 |  4 +-
 kernel/time/itimer.c                          | 18 +++---
 kernel/time/time.c                            | 58 ++-----------------
 kernel/tsacct.c                               |  9 ++-
 net/packet/af_packet.c                        | 27 +++++----
 net/sunrpc/auth_gss/gss_krb5_mech.c           | 12 +++-
 net/sunrpc/auth_gss/gss_krb5_seal.c           |  8 +--
 net/sunrpc/auth_gss/gss_krb5_unseal.c         |  6 +-
 net/sunrpc/auth_gss/gss_krb5_wrap.c           | 16 ++---
 net/sunrpc/auth_gss/gss_mech_switch.c         |  2 +-
 net/sunrpc/auth_gss/svcauth_gss.c             |  6 +-
 net/sunrpc/cache.c                            | 16 ++---
 net/sunrpc/svcauth_unix.c                     | 10 ++--
 59 files changed, 351 insertions(+), 290 deletions(-)
Signature · 40 lines
2.20.0

Cc: jdike at addtoit.com
Cc: richard at nod.at
Cc: jcmvbkbc at gmail.com
Cc: stefanr at s5r6.in-berlin.de
Cc: l.stach at pengutronix.de
Cc: linux+etnaviv at armlinux.org.uk
Cc: christian.gmeiner at gmail.com
Cc: airlied at linux.ie
Cc: daniel at ffwll.ch
Cc: robdclark at gmail.com
Cc: sean at poorly.run
Cc: valdis.kletnieks at vt.edu
Cc: gregkh at linuxfoundation.org
Cc: ccaulfie at redhat.com
Cc: teigland at redhat.com
Cc: hirofumi at mail.parknet.co.jp
Cc: jack at suse.com
Cc: davem at davemloft.net
Cc: fw at strlen.de
Cc: viro at zeniv.linux.org.uk
Cc: rfontana at redhat.com
Cc: tglx at linutronix.de
Cc: linux-um at lists.infradead.org
Cc: linux1394-devel at lists.sourceforge.net
Cc: etnaviv at lists.freedesktop.org
Cc: dri-devel at lists.freedesktop.org
Cc: linux-arm-msm at vger.kernel.org
Cc: freedreno at lists.freedesktop.org
Cc: devel at driverdev.osuosl.org
Cc: cluster-devel at redhat.com
Cc: linux-fsdevel at vger.kernel.org
Cc: netdev at vger.kernel.org
Cc: trond.myklebust at hammerspace.com
Cc: anna.schumaker at netapp.com
Cc: linux-nfs at vger.kernel.org
Cc: linux-xfs at vger.kernel.org
Cc: darrick.wong at oracle.com
Cc: sparclinux at vger.kernel.org