Skip to content

RFC vfs: Add timestamp range check support

Deepa Dinamani linux-ext4 linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6vfs: Add file timestamp range supportfs/libfs.c fs/super.c include/linux/fs.h +1 more+11 -00 replies
2/6vfs: Add checks for filesystem timestamp limitsfs/inode.c fs/internal.h fs/namespace.c +5 more+42 -10 replies
3/6afs: Add time limits in the super blockfs/afs/super.c+2 -00 replies
4/6ext4: Initialize timestamps limitsfs/ext4/ext4.h fs/ext4/super.c+10 -10 replies
5/6vfs: Add timestamp_truncate() apifs/inode.c+31 -10 replies
6/6utimes: Clamp the timestamps before updatefs/utimes.c+13 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC 0/6] vfs: Add timestamp range check support

The series is aimed at adding timestamp checking and policy related to it to vfs.

The series was developed with discussions and guidance from Arnd Bergmann.

The original idea for the series was the discussion:
https://lkml.org/lkml/2014/5/30/551

Patches 5 and 6 can be merged only after vfs is transitioned to use 64 bit timestamps as noted in the respective commit texts.

The series only includes adding range limits to filesystems:
ext4 and afs as examples to keep the series simple. Every filesystem will be updated to add these limits.

There is an ext4 current_time() api replacement patch that the series depends on:
https://lkml.org/lkml/2016/6/9/38 .
This needs reposting to the mailing list.

The branch for the tree along with dependency can be found at

https://github.com/deepa-hub/vfs.git refs/heads/vfs_timestamp_policy

Deepa Dinamani (6):
vfs: Add file timestamp range support
vfs: Add checks for filesystem timestamp limits
afs: Add time limits in the super block
ext4: Initialize timestamps limits
vfs: Add timestamp_truncate() api
utimes: Clamp the timestamps before update

 fs/afs/super.c          |  2 ++
 fs/ext4/ext4.h          |  4 ++++
 fs/ext4/super.c         |  7 ++++++-
 fs/inode.c              | 37 ++++++++++++++++++++++++++++++++++++-
 fs/internal.h           |  2 ++
 fs/libfs.c              |  4 ++++
 fs/namespace.c          | 12 ++++++++++++
 fs/super.c              |  8 ++++++++
 fs/utimes.c             | 17 +++++++++++++----
 include/linux/fs.h      |  4 ++++
 include/linux/time64.h  |  6 ++++++
 include/uapi/linux/fs.h |  6 +++++-
 kernel/sysctl.c         |  7 +++++++
 13 files changed, 109 insertions(+), 7 deletions(-)
Signature · 12 lines
2.7.4

Cc: [email protected]
Cc: "Theodore Ts'o" <[email protected]>
Cc: Andreas Dilger <[email protected]>
Cc: [email protected]


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