Whamcloud - gitweb
Prevent i_dtime from being mistaken for an inode number post-2038 wraparound
authorTheodore Ts'o <tytso@mit.edu>
Fri, 26 Apr 2024 04:13:03 +0000 (00:13 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 26 Apr 2024 04:13:03 +0000 (00:13 -0400)
commitf590d7143b89ef33b1719595ac55785ad6d90bd7
tree16e3143283ffefe8c1ae2849ba023c98fc301bb8
parent8cfc832cf6771c950c9220b6fe8c9df82f577c52
Prevent i_dtime from being mistaken for an inode number post-2038 wraparound

We explicitly decided not to reserve space for a 64-bit dtime, since
it's never displayed or exposed to userspace.  The dtime field is used
a linked list for the ophan list, and for forensic purposes when
trying to determine when an inode was deleted.  So right after the
2038 epoch, a deleted inode might end up with a dtime which is zero or
smaller than the number of inodes, which will result in e2fsck
reporting a potential problems.  So when we set the dtime, make sure
that the dtime won't be mistaken for an inode number.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/debugfs.c
e2fsck/journal.c
e2fsck/pass1.c
e2fsck/super.c
lib/ext2fs/ext2fs.h
lib/ext2fs/ext_attr.c
lib/support/quotaio.c
misc/create_inode_libarchive.c
misc/fuse2fs.c