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: <1479228894-10533-2-git-send-email-quorum.laval@gmail.com>
Date:   Tue, 15 Nov 2016 17:54:54 +0100
From:   Quorum Laval <quorum.laval@...il.com>
To:     miklos@...redi.hu
Cc:     Quorum Laval <quorum.laval@...il.com>,
        linux-unionfs@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 2/2] ovl: use kernel facility for updating access time

Use fsstack_copy_attr_atime() instead of direct assignement.

Signed-off-by: Quorum Laval <quorum.laval@...il.com>
---
 fs/overlayfs/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/overlayfs/inode.c b/fs/overlayfs/inode.c
index 540caa6..083cbdb 100644
--- a/fs/overlayfs/inode.c
+++ b/fs/overlayfs/inode.c
@@ -329,7 +329,7 @@ int ovl_update_time(struct inode *inode, struct timespec *ts, int flags)
 	ovl_path_upper(alias, &upperpath);
 	if (upperpath.dentry) {
 		touch_atime(&upperpath);
-		inode->i_atime = d_inode(upperpath.dentry)->i_atime;
+		fsstack_copy_attr_atime(inode, d_inode(upperpath.dentry));
 	}
 
 	dput(alias);
-- 
2.7.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ