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-next>] [day] [month] [year] [list]
Message-Id: <20201121003331.21342-1-xifeng@redhat.com>
Date:   Sat, 21 Nov 2020 08:33:31 +0800
From:   XiaoLi Feng <xifeng@...hat.com>
To:     linux-kernel@...r.kernel.org, ira.weiny@...el.com,
        darrick.wong@...cle.com
Cc:     Xiaoli Feng <fengxiaoli0714@...il.com>
Subject: [PATCH] fs/stat: set attributes_mask for STATX_ATTR_DAX

From: Xiaoli Feng <fengxiaoli0714@...il.com>

keep attributes and attributes_mask are consistent for
STATX_ATTR_DAX.
---
 fs/stat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/stat.c b/fs/stat.c
index dacecdda2e79..914a61d256b0 100644
--- a/fs/stat.c
+++ b/fs/stat.c
@@ -82,7 +82,7 @@ int vfs_getattr_nosec(const struct path *path, struct kstat *stat,
 
 	if (IS_DAX(inode))
 		stat->attributes |= STATX_ATTR_DAX;
-
+	stat->attributes_mask |= STATX_ATTR_DAX;
 	if (inode->i_op->getattr)
 		return inode->i_op->getattr(path, stat, request_mask,
 					    query_flags);
-- 
2.18.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ