lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <174553065141.1160461.7342685341356901806.stgit@frogsfrogsfrogs>
Date: Thu, 24 Apr 2025 14:43:54 -0700
From: "Darrick J. Wong" <djwong@...nel.org>
To: tytso@....edu
Cc: linux-ext4@...r.kernel.org
Subject: [PATCH 12/16] fuse2fs: update new child timestamps during
 mkdir/symlink

From: Darrick J. Wong <djwong@...nel.org>

These two file creation functions fail to update the timestamps of the
new child file, unlike the others (mknod/creat).  Fix that.

Signed-off-by: "Darrick J. Wong" <djwong@...nel.org>
---
 misc/fuse2fs.c |    2 ++
 1 file changed, 2 insertions(+)


diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c
index 2220da4c3e8f64..a13564a30575da 100644
--- a/misc/fuse2fs.c
+++ b/misc/fuse2fs.c
@@ -1016,6 +1016,7 @@ static int op_mkdir(const char *path, mode_t mode)
 	inode.i_mode = LINUX_S_IFDIR | (mode & ~S_ISUID) |
 		       parent_sgid;
 	inode.i_generation = ff->next_generation++;
+	init_times(&inode);
 
 	err = ext2fs_write_inode_full(fs, child, (struct ext2_inode *)&inode,
 				      sizeof(inode));
@@ -1390,6 +1391,7 @@ static int op_symlink(const char *src, const char *dest)
 	inode.i_gid = ctxt->gid;
 	ext2fs_set_i_gid_high(inode, ctxt->gid >> 16);
 	inode.i_generation = ff->next_generation++;
+	init_times(&inode);
 
 	err = ext2fs_write_inode_full(fs, child, (struct ext2_inode *)&inode,
 				      sizeof(inode));


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ