<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:24:59 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-16210] Lustre on RHEL8 with selinux disabled tries to retrieve security.selinux xattr</title>
                <link>https://jira.whamcloud.com/browse/LU-16210</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;On Centos7, selinux_is_enabled() was used to prevent this but on RHEL8 this interface disappears (on 5.1 kernel):&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-c&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;&lt;/span&gt; ll_xattr_get_common()
...
 	&lt;span class=&quot;code-comment&quot;&gt;/* LU-549:  Disable security.selinux when selinux is disabled */&lt;/span&gt;
 	if (handler-&amp;gt;flags == XATTR_SECURITY_T &amp;amp;&amp;amp; !selinux_is_enabled() &amp;amp;&amp;amp;
	    !strcmp(name, &lt;span class=&quot;code-quote-red&quot;&gt;&quot;selinux&quot;&lt;/span&gt;))
 		RETURN(-EOPNOTSUPP);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The patch &lt;a href=&quot;https://review.whamcloud.com/38480&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38480&lt;/a&gt; &quot;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12355&quot; title=&quot;Support for linux kernel version 5.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12355&quot;&gt;&lt;del&gt;LU-12355&lt;/del&gt;&lt;/a&gt; llite: include file linux/selinux.h removed&quot; was submitted to add the compatibility to 5.1 kernel. But it considers selinux enabled if &quot;selinux_is_enabled&quot; is not found.&lt;/p&gt;

&lt;p&gt;So on RHEL8 with selinux disabled, we send unneeded RPCs on the MDS to retrieved security.selinux xattr. This has performance issues.&lt;/p&gt;

&lt;p&gt;Here the behavior with &quot;ls&quot;:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;Centos 7 :
getenforce 0
Disabled
strace -e getxattr,lgetxattr ls -lda &#8220;directory&#8221;
lgetxattr(&quot;directory&quot;, &quot;security.selinux&quot;, 0x1096100, 255) = -1 EOPNOTSUPP (Operation not supported)
getxattr(&quot;directory&quot;, &quot;system.posix_acl_access&quot;, NULL, 0) = -1 ENODATA (No data available)
getxattr(&quot;directory&quot;, &quot;system.posix_acl_default&quot;, NULL, 0) = -1 ENODATA (No data available)
 
Centos 8 :
getenforce 0
Disabled
lgetxattr(&quot;directory&quot;, &quot;security.selinux&quot;, 0x1096100, 255) = -1 ENODATA (No data available)
getxattr(&quot;directory&quot;, &quot;system.posix_acl_access&quot;, NULL, 0) = -1 ENODATA (No data available)
getxattr(&quot;directory&quot;, &quot;system.posix_acl_default&quot;, NULL, 0) = -1 ENODATA (No data available)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Here the &quot;perf report&quot; diff on getfattr:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;Centos 7 :
+   10.59%     0.00%  getfattr  libc-2.17.so      [.] __GI___lxstat64 (inlined)                                                                                            
+   10.59%     0.00%  getfattr  [kernel.vmlinux]  [k] system_call                                                                                                          
+   10.59%     0.00%  getfattr  [kernel.vmlinux]  [k] sys_newlstat                                                                                                         
+   10.59%     0.00%  getfattr  [kernel.vmlinux]  [k] SYSC_newlstat                                                                                                        
+   10.59%     0.00%  getfattr  [kernel.vmlinux]  [k] vfs_fstatat                                                                                                          
+   10.59%     0.00%  getfattr  [kernel.vmlinux]  [k] user_path_at                                                                                                         
+   10.59%     0.00%  getfattr  [kernel.vmlinux]  [k] user_path_at_empty                                                                                                   
+   10.59%     0.00%  getfattr  [kernel.vmlinux]  [k] filename_lookup                                                                                                      
+   10.59%     0.00%  getfattr  [kernel.vmlinux]  [k] path_lookupat                                                                                                        
+   10.59%     0.00%  getfattr  [kernel.vmlinux]  [k] link_path_walk                                                                                                       
+   10.59%     0.00%  getfattr  [kernel.vmlinux]  [k] inode_permission                                                                                                     
+   10.59%     0.00%  getfattr  [kernel.vmlinux]  [k] __inode_permission                                                                                                  
+   10.59%     0.00%  getfattr  [lustre]          [k] ll_inode_permission                                                                                                  
+   10.59%     0.00%  getfattr  [lustre]          [k] ll_inode_revalidate                                                                                                  
+   10.59%     0.00%  getfattr  [lmv]             [k] lmv_intent_lock  
 
Centos 8 :
+   15.74%     0.00%  getfattr  libc-2.28.so       [.] __GI_getxattr (inlined)                                                                                             
+   15.74%     0.00%  getfattr  [kernel.kallsyms]  [k] path_getxattr                                                                                                       
+   15.74%     0.00%  getfattr  [kernel.kallsyms]  [k] getxattr                                                                                                           
+   15.74%     0.00%  getfattr  [kernel.kallsyms]  [k] vfs_getxattr                                                                                                      
+   15.74%     0.00%  getfattr  [kernel.kallsyms]  [k] __vfs_getxattr                                                                                                      
+   15.74%     0.00%  getfattr  [kernel.kallsyms]  [k] ll_xattr_get_common                                                                                                 
+   15.74%     0.00%  getfattr  [kernel.kallsyms]  [k] ll_xattr_list                                                                                                       
+   15.74%     0.00%  getfattr  [kernel.kallsyms]  [k] lmv_getxattr                                                                                                        
+   15.74%     0.00%  getfattr  [kernel.kallsyms]  [k] mdc_getxattr                                                                                                        
+   15.74%     0.00%  getfattr  [kernel.kallsyms]  [k] mdc_xattr_common         &amp;lt;----------                                                                                      
+   15.74%     0.00%  getfattr  [kernel.kallsyms]  [k] ptlrpc_queue_wait                                                                                                   
+   15.74%     0.00%  getfattr  [kernel.kallsyms]  [k] ptlrpc_set_wait                                                                                  
+   15.74%     0.00%  getfattr  [kernel.kallsyms]  [k] ptlrpc_check_set.part
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="72663">LU-16210</key>
            <summary>Lustre on RHEL8 with selinux disabled tries to retrieve security.selinux xattr</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="eaujames">Etienne Aujames</assignee>
                                    <reporter username="eaujames">Etienne Aujames</reporter>
                        <labels>
                            <label>SELinux</label>
                            <label>performance</label>
                    </labels>
                <created>Wed, 5 Oct 2022 09:13:30 +0000</created>
                <updated>Tue, 28 Mar 2023 13:38:17 +0000</updated>
                            <resolved>Fri, 13 Jan 2023 14:49:20 +0000</resolved>
                                                    <fixVersion>Lustre 2.16.0</fixVersion>
                    <fixVersion>Lustre 2.15.3</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="348749" author="eaujames" created="Wed, 5 Oct 2022 09:54:16 +0000"  >&lt;p&gt;The CEA proposes to implement something like Ceph/NFS to fix this issue:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-c&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;bool&lt;/span&gt;&lt;/span&gt; ceph_security_xattr_wanted(&lt;span class=&quot;code-keyword&quot;&gt;struct&lt;/span&gt; inode *in)
 {
         &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; in-&amp;gt;i_security != &lt;span class=&quot;code-keyword&quot;&gt;NULL&lt;/span&gt;;
 }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="348755" author="sebastien" created="Wed, 5 Oct 2022 11:25:53 +0000"  >&lt;p&gt;Thanks for reporting this.&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;Centos 7 :
getenforce 0
Disabled
strace -e getxattr,lgetxattr ls -lda &#8220;directory&#8221;
lgetxattr(&quot;directory&quot;, &quot;security.selinux&quot;, 0x1096100, 255) = -1 EOPNOTSUPP (Operation not supported)
getxattr(&quot;directory&quot;, &quot;system.posix_acl_access&quot;, NULL, 0) = -1 ENODATA (No data available)
getxattr(&quot;directory&quot;, &quot;system.posix_acl_default&quot;, NULL, 0) = -1 ENODATA (No data available)
 
Centos 8 :
getenforce 0
Disabled
lgetxattr(&quot;directory&quot;, &quot;security.selinux&quot;, 0x1096100, 255) = -1 ENODATA (No data available)
getxattr(&quot;directory&quot;, &quot;system.posix_acl_access&quot;, NULL, 0) = -1 ENODATA (No data available)
getxattr(&quot;directory&quot;, &quot;system.posix_acl_default&quot;, NULL, 0) = -1 ENODATA (No data available)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Except the different return code (EOPNOTSUPP vs ENODATA), I do not see a different behavior between CentOS 7 and CentOS 8. Both ls are doing a getxattr on &lt;tt&gt;security.selinux&lt;/tt&gt;, so what is the problem you are seeing?&lt;/p&gt;</comment>
                            <comment id="348758" author="JIRAUSER18416" created="Wed, 5 Oct 2022 12:33:37 +0000"  >
&lt;p&gt;Hi Sebastien,&lt;/p&gt;

&lt;p&gt;The problem is, when ENODATA is reported, it means an action on the MDT side, but not when EOPNOTSUPP, the client will not try to fetch any security xattrs.&lt;/p&gt;

&lt;p&gt;In Etienne behavior description, `ls` check only the directory dentry, but with the full&#160; `ls` of the directory, you can see :&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;## CentOS 8
$ strace -e getxattr,lgetxattr ls -l
lgetxattr(&quot;squashfs&quot;, &quot;security.selinux&quot;, 0x564355468230, 255) = -1 ENODATA (No data available)
getxattr(&quot;squashfs&quot;, &quot;system.posix_acl_access&quot;, NULL, 0) = -1 ENODATA (No data available)
getxattr(&quot;squashfs&quot;, &quot;system.posix_acl_default&quot;, NULL, 0) = -1 ENODATA (No data available)
lgetxattr(&quot;repository.app&quot;, &quot;security.selinux&quot;, 0x564355477cc0, 255) = -1 ENODATA (No data available)
getxattr(&quot;repository.app&quot;, &quot;system.posix_acl_access&quot;, NULL, 0) = -1 ENODATA (No data available)
getxattr(&quot;repository.app&quot;, &quot;system.posix_acl_default&quot;, NULL, 0) = -1 ENODATA (No data available)
lgetxattr(&quot;repository&quot;, &quot;security.selinux&quot;, 0x564355477dd0, 255) = -1 ENODATA (No data available)
getxattr(&quot;repository&quot;, &quot;system.posix_acl_access&quot;, NULL, 0) = -1 ENODATA (No data available)
getxattr(&quot;repository&quot;, &quot;system.posix_acl_default&quot;, NULL, 0) = -1 ENODATA (No data available)
lgetxattr(&quot;libpcocc_slurm.so&quot;, &quot;security.selinux&quot;, 0x564355478cf0, 255) = -1 ENODATA (No data available)
getxattr(&quot;libpcocc_slurm.so&quot;, &quot;system.posix_acl_access&quot;, NULL, 0) = -1 ENODATA (No data available)
lgetxattr(&quot;ubuntu-mate&quot;, &quot;security.selinux&quot;, 0x564355478e20, 255) = -1 ENODATA (No data available)
getxattr(&quot;ubuntu-mate&quot;, &quot;system.posix_acl_access&quot;, NULL, 0) = -1 ENODATA (No data available)
getxattr(&quot;ubuntu-mate&quot;, &quot;system.posix_acl_default&quot;, NULL, 0) = -1 ENODATA (No data available)
&#160;
## CentOS 7
$ strace -e getxattr,lgetxattr ls -l
lgetxattr(&quot;squashfs&quot;, &quot;security.selinux&quot;, 0xba0140, 255) = -1 EOPNOTSUPP (Operation not supported)
getxattr(&quot;squashfs&quot;, &quot;system.posix_acl_access&quot;, NULL, 0) = -1 ENODATA (No data available)
getxattr(&quot;squashfs&quot;, &quot;system.posix_acl_default&quot;, NULL, 0) = -1 ENODATA (No data available)
getxattr(&quot;repository.app&quot;, &quot;system.posix_acl_access&quot;, NULL, 0) = -1 ENODATA (No data available)
getxattr(&quot;repository.app&quot;, &quot;system.posix_acl_default&quot;, NULL, 0) = -1 ENODATA (No data available)
getxattr(&quot;repository&quot;, &quot;system.posix_acl_access&quot;, NULL, 0) = -1 ENODATA (No data available)
getxattr(&quot;repository&quot;, &quot;system.posix_acl_default&quot;, NULL, 0) = -1 ENODATA (No data available)
getxattr(&quot;libpcocc_slurm.so&quot;, &quot;system.posix_acl_access&quot;, NULL, 0) = -1 ENODATA (No data available)
getxattr(&quot;libpcocc_slurm.so&quot;, &quot;system.posix_acl_default&quot;, NULL, 0) = -1 ENODATA (No data available)
getxattr(&quot;ubuntu-mate&quot;, &quot;system.posix_acl_access&quot;, NULL, 0) = -1 ENODATA (No data available)
getxattr(&quot;ubuntu-mate&quot;, &quot;system.posix_acl_default&quot;, NULL, 0) = -1 ENODATA (No data available)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So there are some optimisation in userspace saying that if a lgetxattr returns EOPNOTSUPP, don&apos;t try to gather selinux xattr anymore.&lt;/p&gt;</comment>
                            <comment id="348761" author="eaujames" created="Wed, 5 Oct 2022 12:43:20 +0000"  >&lt;p&gt;There is no issue from users/applications standpoint.&lt;br/&gt;
The issue here is performance: EOPNOTSUPP is returned directly from client llite layer, ENODATA is returned from MDT.&lt;br/&gt;
That means we consume unnecessarily resources to send the RPC and get a reply. And &quot;ll&quot; by default try to get xattr &quot;security.selinux&quot;.&lt;/p&gt;</comment>
                            <comment id="348766" author="sebastien" created="Wed, 5 Oct 2022 13:14:45 +0000"  >&lt;p&gt;OK, it is clear to me now, thanks.&lt;/p&gt;

&lt;p&gt;I looked at how the &lt;tt&gt;i_security&lt;/tt&gt; field is set in the kernel. Only SELinux sets it, via the following path:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;alloc_inode
   inode_init_always
      security_inode_alloc   --&amp;gt; sets i_security to NULL
         inode_alloc_security
            selinux_inode_alloc_security
               inode_alloc_security   --&amp;gt; sets i_security to non-NULL
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So indeed, we could consider that once inode has been allocated, &lt;tt&gt;i_security&lt;/tt&gt; is not NULL if SELinux is enabled.&lt;/p&gt;</comment>
                            <comment id="348767" author="sebastien" created="Wed, 5 Oct 2022 13:15:56 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=eaujames&quot; class=&quot;user-hover&quot; rel=&quot;eaujames&quot;&gt;eaujames&lt;/a&gt; please add me as a reviewer to the patch you are cooking.&lt;/p&gt;</comment>
                            <comment id="348908" author="gerrit" created="Thu, 6 Oct 2022 15:05:40 +0000"  >&lt;p&gt;&quot;Etienne AUJAMES &amp;lt;eaujames@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/48796&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/48796&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16210&quot; title=&quot;Lustre on RHEL8 with selinux disabled tries to retrieve security.selinux xattr&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16210&quot;&gt;&lt;del&gt;LU-16210&lt;/del&gt;&lt;/a&gt; llite: replace selinux_is_enabled()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: b47eb08c932842af9aa10633b017e18153ad711d&lt;/p&gt;</comment>
                            <comment id="349723" author="gerrit" created="Fri, 14 Oct 2022 21:12:15 +0000"  >&lt;p&gt;&quot;Etienne AUJAMES &amp;lt;eaujames@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/48875&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/48875&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16210&quot; title=&quot;Lustre on RHEL8 with selinux disabled tries to retrieve security.selinux xattr&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16210&quot;&gt;&lt;del&gt;LU-16210&lt;/del&gt;&lt;/a&gt; llite: replace selinux_is_enabled()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 19da032d77292cc068859e4dbe44a2376465515d&lt;/p&gt;</comment>
                            <comment id="350991" author="eaujames" created="Thu, 27 Oct 2022 15:22:16 +0000"  >&lt;p&gt;*&lt;a href=&quot;https://review.whamcloud.com/48796&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/48796&lt;/a&gt; : implements a solution with a simple i_security check.&lt;br/&gt;
This will &lt;b&gt;only&lt;/b&gt; work if SELinux is disabled at boot time (adding &quot;selinux=0&quot; on kernel cmdline) for RHEL &amp;gt;= 8.5.&lt;br/&gt;
 *&lt;a href=&quot;https://review.whamcloud.com/48875&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/48875&lt;/a&gt; : implements a more complex solution by retrieving and saving the security xattr name used by the LSM module at mount time (via security_inode_listsecurity()). Then it will use this stored value to filter out &quot;security.selinux&quot; (if SELinux is disabled, nothing is returned by security_inode_listsecurity()).&lt;br/&gt;
This will work in &lt;b&gt;all&lt;/b&gt; cases: SELinux is disabled via /etc/selinux/config or via kernel cmdline.&lt;/p&gt;</comment>
                            <comment id="350997" author="eaujames" created="Thu, 27 Oct 2022 15:47:58 +0000"  >&lt;p&gt;Those patches restore the behavior of the &lt;a href=&quot;http://review.whamcloud.com/2503&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/2503&lt;/a&gt; when SElinux is disabled:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;commit 7cc542fd4c26ccb117ceb13a47ac8ced3107b9b3
Author: Yevheniy Demchenko &amp;lt;zheka@uvt.cz&amp;gt;
Date:   Tue Apr 10 22:01:14 2012 +0200

    LU-549 llite: Improve statfs performance if selinux is disabled
    
    Even if selinux is disabled, client still tries to get selinux
    attributes from MDS. As xattrs are not yet cached, this significantly
    slows down xattr heavy operations like ls -l. This patch forces
    to return -EOPNOTSUPP on the client side if selinux is disabled.
    It speeds up ls -l 25% for cold-cache case and 50% for hot-cache
    case.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Tests with &quot;strace -c ls -l&quot; with 100000 files on root in a multi VMs env (on Rocky 9). FS is remounted for each tests (cache is cleaned) and selinux is disabled.&lt;/p&gt;
&lt;div class=&apos;table-wrap&apos;&gt;
&lt;table class=&apos;confluenceTable&apos;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;th class=&apos;confluenceTh&apos;&gt;Total time %&lt;/th&gt;
&lt;th class=&apos;confluenceTh&apos;&gt;lgetxattr&lt;/th&gt;
&lt;th class=&apos;confluenceTh&apos;&gt;statx&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;Without the patch:&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;29%&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;51%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;With the patch:&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;0%&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;87%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;


&lt;p&gt;&quot;ls -l&quot; uses lgetxattr to get &quot;security.selinux&quot;.&lt;/p&gt;</comment>
                            <comment id="358908" author="gerrit" created="Fri, 13 Jan 2023 07:17:33 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/48875/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/48875/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16210&quot; title=&quot;Lustre on RHEL8 with selinux disabled tries to retrieve security.selinux xattr&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16210&quot;&gt;&lt;del&gt;LU-16210&lt;/del&gt;&lt;/a&gt; llite: replace selinux_is_enabled()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 1d8faaf6caf4acaf0e2d4943b51c024a96c80624&lt;/p&gt;</comment>
                            <comment id="358966" author="pjones" created="Fri, 13 Jan 2023 14:49:20 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                            <comment id="359005" author="gerrit" created="Fri, 13 Jan 2023 16:57:07 +0000"  >&lt;p&gt;&quot;Sebastien Buisson &amp;lt;sbuisson@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49630&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49630&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16210&quot; title=&quot;Lustre on RHEL8 with selinux disabled tries to retrieve security.selinux xattr&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16210&quot;&gt;&lt;del&gt;LU-16210&lt;/del&gt;&lt;/a&gt; llite: replace selinux_is_enabled()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 06b50ff6c162ccdf57ecc59c81d8c266a184d582&lt;/p&gt;</comment>
                            <comment id="367174" author="gerrit" created="Fri, 24 Mar 2023 08:29:07 +0000"  >&lt;p&gt;&quot;Etienne AUJAMES &amp;lt;eaujames@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/50404&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50404&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16210&quot; title=&quot;Lustre on RHEL8 with selinux disabled tries to retrieve security.selinux xattr&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16210&quot;&gt;&lt;del&gt;LU-16210&lt;/del&gt;&lt;/a&gt; llite: replace selinux_is_enabled()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 4ca0eceec6182e4c611d23c386c7e36c38d8e1fc&lt;/p&gt;</comment>
                            <comment id="367503" author="gerrit" created="Tue, 28 Mar 2023 07:12:03 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49630/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49630/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16210&quot; title=&quot;Lustre on RHEL8 with selinux disabled tries to retrieve security.selinux xattr&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16210&quot;&gt;&lt;del&gt;LU-16210&lt;/del&gt;&lt;/a&gt; llite: replace selinux_is_enabled()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 71143864865361d6b6012d75d8bb03a19a36b505&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0322n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>