<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:38:10 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-10785] ll_acl_{access,default}_xattr_handler confuse name and prefix</title>
                <link>https://jira.whamcloud.com/browse/LU-10785</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In the definition of &lt;tt&gt;ll_acl_access_xattr_handler&lt;/tt&gt; we use the xattr name (&quot;system.posix_acl_access&quot;) to initialize the &lt;tt&gt;prefix&lt;/tt&gt; member:&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-java&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct xattr_handler ll_acl_access_xattr_handler = {
	.prefix = XATTR_NAME_POSIX_ACL_ACCESS,
	.flags = XATTR_ACL_ACCESS_T,
#&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; defined(HAVE_XATTR_HANDLER_SIMPLIFIED)
	.get = ll_xattr_get_common_4_3,
	.set = ll_xattr_set_common_4_3,
#elif !defined(HAVE_XATTR_HANDLER_INODE_PARAM)
	.get = ll_xattr_get_common_3_11,
	.set = ll_xattr_set_common_3_11,
#&lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
     	.get = ll_xattr_get_common,
	.set = ll_xattr_set_common,
#endif
};
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; We should leave &lt;tt&gt;prefix&lt;/tt&gt; unassigned and use the &lt;tt&gt;name&lt;/tt&gt; member instead. This causes &lt;tt&gt;getfacl()&lt;/tt&gt; (which uses &lt;tt&gt;getxattr()&lt;/tt&gt;) to fail for some kernel versions. Similarly for &lt;tt&gt;ll_acl_default_xattr_handler&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;There also may be conflicts between Lustre and upstream regarding the use of the &lt;tt&gt;flags&lt;/tt&gt; member of &lt;tt&gt;struct xattr_handler&lt;/tt&gt;. Lustre uses &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-java&quot;&gt;#define XATTR_ACL_ACCESS_T      4
#define XATTR_ACL_DEFAULT_T     5
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Upstream uses:&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-java&quot;&gt;&lt;span class=&quot;code-comment&quot;&gt;/* a_type field in acl_user_posix_entry_t */&lt;/span&gt;
#define ACL_TYPE_ACCESS		(0x8000)
#define ACL_TYPE_DEFAULT	(0x4000)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;I did not try to determine how the kernel uses the &lt;tt&gt;flags&lt;/tt&gt; member.&lt;/p&gt;

&lt;p&gt;Other filesystems use kernel defined handers for ACLs:&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-java&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct xattr_handler *ext4_xattr_handler_map[] = {
	[EXT4_XATTR_INDEX_USER]		     = &amp;amp;ext4_xattr_user_handler,
#ifdef CONFIG_EXT4_FS_POSIX_ACL
	[EXT4_XATTR_INDEX_POSIX_ACL_ACCESS]  = &amp;amp;posix_acl_access_xattr_handler,
	[EXT4_XATTR_INDEX_POSIX_ACL_DEFAULT] = &amp;amp;posix_acl_default_xattr_handler,
#endif
	[EXT4_XATTR_INDEX_TRUSTED]	     = &amp;amp;ext4_xattr_trusted_handler,
#ifdef CONFIG_EXT4_FS_SECURITY
	[EXT4_XATTR_INDEX_SECURITY]	     = &amp;amp;ext4_xattr_security_handler,
#endif
};
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;We should see if these can be used by Lustre as well.&lt;/p&gt;

&lt;p&gt;Some auditing is needed.&lt;/p&gt;</description>
                <environment></environment>
        <key id="51156">LU-10785</key>
            <summary>ll_acl_{access,default}_xattr_handler confuse name and prefix</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</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="jhammond">John Hammond</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                    </labels>
                <created>Wed, 7 Mar 2018 14:43:44 +0000</created>
                <updated>Mon, 9 Apr 2018 22:41:44 +0000</updated>
                            <resolved>Mon, 9 Apr 2018 20:56:11 +0000</resolved>
                                    <version>Lustre 2.11.0</version>
                    <version>Lustre 2.10.3</version>
                                    <fixVersion>Lustre 2.12.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="222891" author="gerrit" created="Thu, 8 Mar 2018 21:30:10 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/31595&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31595&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10785&quot; title=&quot;ll_acl_{access,default}_xattr_handler confuse name and prefix&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10785&quot;&gt;&lt;del&gt;LU-10785&lt;/del&gt;&lt;/a&gt; llite: use xattr_handler name for ACLs&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 269568dea51bcd678183402f3898b484fce08627&lt;/p&gt;</comment>
                            <comment id="222999" author="simmonsja" created="Fri, 9 Mar 2018 18:28:20 +0000"  >&lt;p&gt;Thank you John for tracking down these issues. I will port to upstream and report back the results&lt;/p&gt;</comment>
                            <comment id="224039" author="simmonsja" created="Tue, 20 Mar 2018 16:02:28 +0000"  >&lt;p&gt;I ported your changes to the upstream kernel and ran sanity test 102 and 103. From the test I see the following test fail:&lt;/p&gt;

&lt;p&gt;sanity: FAIL: test_102a /lustre/lustre/f102a.sanity missing 3 trusted.name xattrs &lt;br/&gt;
 sanity: FAIL: test_102b can&apos;t get trusted.lov from /lustre/lustre/f102b.sanity &lt;br/&gt;
 sanity: FAIL: test_103a run_acl_subtest cp failed&lt;/p&gt;

&lt;p&gt;This is testing with your latest patches.&lt;/p&gt;</comment>
                            <comment id="224264" author="jhammond" created="Thu, 22 Mar 2018 13:48:40 +0000"  >&lt;p&gt;Did these tests pass before? Can you post your port?&lt;/p&gt;</comment>
                            <comment id="224703" author="simmonsja" created="Wed, 28 Mar 2018 11:55:33 +0000"  >&lt;p&gt;Nope. I did some digging and found the bug upstream which caused 102a and 102b to fail. Now it works out of the box. Only 103a fails for the upstream client. Do you see any failures with acl/run_test permisson ? Your patches look great. Thank you!!!&lt;/p&gt;</comment>
                            <comment id="225499" author="gerrit" created="Mon, 9 Apr 2018 19:50:09 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/31595/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31595/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10785&quot; title=&quot;ll_acl_{access,default}_xattr_handler confuse name and prefix&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10785&quot;&gt;&lt;del&gt;LU-10785&lt;/del&gt;&lt;/a&gt; llite: use xattr_handler name for ACLs&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: a9998927281647f9d9b8bfa50c80b7e15cf05eda&lt;/p&gt;</comment>
                            <comment id="225525" author="simmonsja" created="Mon, 9 Apr 2018 20:27:12 +0000"  >&lt;p&gt;Before we close this I like to test Ubunut 16 sanity test again.&lt;/p&gt;</comment>
                            <comment id="225548" author="pjones" created="Mon, 9 Apr 2018 20:56:11 +0000"  >&lt;p&gt;&lt;font color=&quot;#000000&quot;&gt;Landed for 2.12&lt;/font&gt;&lt;/p&gt;</comment>
                            <comment id="225567" author="simmonsja" created="Mon, 9 Apr 2018 22:41:44 +0000"  >&lt;p&gt;Just as a note I pushed &lt;a href=&quot;https://review.whamcloud.com/#/c/31921&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/31921&lt;/a&gt;&#160; to verify these changes&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="46758">LU-9679</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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|hzzu07:</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>