<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:34:28 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-10371] Kernel &gt;= 4.8 has no posix_acl_xattr_entry a_entries[0]</title>
                <link>https://jira.whamcloud.com/browse/LU-10371</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Compiling on Kernel &amp;gt;= 4.8 results in error&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;error: &#8216;struct posix_acl_xattr_header&#8217; has no member named &#8216;a_entries&#8217;



&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;due to Linux Kernel commit &#160;2211d5ba5c6c4e972ba6dbc912b2897425ea6621&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;...
-typedef struct {
+struct posix_acl_xattr_header {
        __le32                  a_version;
-       posix_acl_xattr_entry   a_entries[0];
-} posix_acl_xattr_header;
+};
...


&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;where the a_entries&lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt; was removed. There exists in already a check for this structure&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;#
# LC_STRUCT_POSIX_ACL_XATTR
#
# Kernel version 4.8 commit 2211d5ba5c6c4e972ba6dbc912b2897425ea6621
# posix_acl: xattr representation cleanups
#
AC_DEFUN([LC_STRUCT_POSIX_ACL_XATTR], [
LB_CHECK_COMPILE([&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;code-quote&quot;&gt;&apos;struct posix_acl_xattr_{header,entry}&apos;&lt;/span&gt; defined],
struct_posix_acl_xattr, [
        #include &amp;lt;linux/fs.h&amp;gt;
        #include &amp;lt;linux/posix_acl_xattr.h&amp;gt;
],[
        struct posix_acl_xattr_header *h = NULL;
        struct posix_acl_xattr_entry  *e;
        e = (void *)(h + 1);
],[
        AC_DEFINE(HAVE_STRUCT_POSIX_ACL_XATTR, 1,
                [struct posix_acl_xattr_{header,entry} defined])
])
]) # LC_STRUCT_POSIX_ACL_XATTR

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;so let&apos;s use the check for fixing it e.g. as follows:&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;diff --git a/lustre/ptlrpc/wiretest.c b/lustre/ptlrpc/wiretest.c
index 40e3d55..01a5220 100644
--- a/lustre/ptlrpc/wiretest.c
+++ b/lustre/ptlrpc/wiretest.c
@@ -4548,10 +4548,12 @@ void lustre_assert_wire_constants(void)
                 (&lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt;)(&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;)offsetof(posix_acl_xattr_header, a_version));
        LASSERTF((&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;)sizeof(((posix_acl_xattr_header *)0)-&amp;gt;a_version) == 4, &lt;span class=&quot;code-quote&quot;&gt;&quot;found %lld\n&quot;&lt;/span&gt;,
                 (&lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt;)(&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;)sizeof(((posix_acl_xattr_header *)0)-&amp;gt;a_version));
+#ifndef HAVE_STRUCT_POSIX_ACL_XATTR
        LASSERTF((&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;)offsetof(posix_acl_xattr_header, a_entries) == 4, &lt;span class=&quot;code-quote&quot;&gt;&quot;found %lld\n&quot;&lt;/span&gt;,
                 (&lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt;)(&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;)offsetof(posix_acl_xattr_header, a_entries));
        LASSERTF((&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;)sizeof(((posix_acl_xattr_header *)0)-&amp;gt;a_entries) == 0, &lt;span class=&quot;code-quote&quot;&gt;&quot;found %lld\n&quot;&lt;/span&gt;,
                 (&lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt;)(&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;)sizeof(((posix_acl_xattr_header *)0)-&amp;gt;a_entries));
+#endif &lt;span class=&quot;code-comment&quot;&gt;/* HAVE_STRUCT_POSIX_ACL_XATTR */&lt;/span&gt;
 #endif &lt;span class=&quot;code-comment&quot;&gt;/* CONFIG_FS_POSIX_ACL */&lt;/span&gt;

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>Debian 9 Stretch (4.9.65-3)</environment>
        <key id="49692">LU-10371</key>
            <summary>Kernel &gt;= 4.8 has no posix_acl_xattr_entry a_entries[0]</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="thomas.stibor">Thomas Stibor</assignee>
                                    <reporter username="thomas.stibor">Thomas Stibor</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Tue, 12 Dec 2017 14:19:19 +0000</created>
                <updated>Mon, 8 Jan 2018 19:14:47 +0000</updated>
                            <resolved>Fri, 22 Dec 2017 12:51:34 +0000</resolved>
                                    <version>Lustre 2.10.1</version>
                                    <fixVersion>Lustre 2.11.0</fixVersion>
                    <fixVersion>Lustre 2.10.3</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="216052" author="gerrit" created="Tue, 12 Dec 2017 14:35:33 +0000"  >&lt;p&gt;Thomas Stibor (t.stibor@gsi.de) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/30495&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/30495&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10371&quot; title=&quot;Kernel &amp;gt;= 4.8 has no posix_acl_xattr_entry a_entries[0]&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10371&quot;&gt;&lt;del&gt;LU-10371&lt;/del&gt;&lt;/a&gt; ptlrpc: check for posix_acl a_entries&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 7f1ba9e03a428cb0deb8dc90a80606928109aab4&lt;/p&gt;</comment>
                            <comment id="216055" author="simmonsja" created="Tue, 12 Dec 2017 14:54:21 +0000"  >&lt;p&gt;I saw they finally actually remove a_entries in kernel 4.13&lt;/p&gt;</comment>
                            <comment id="217052" author="gerrit" created="Fri, 22 Dec 2017 06:49:50 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/30495/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/30495/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10371&quot; title=&quot;Kernel &amp;gt;= 4.8 has no posix_acl_xattr_entry a_entries[0]&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10371&quot;&gt;&lt;del&gt;LU-10371&lt;/del&gt;&lt;/a&gt; ptlrpc: check for posix_acl a_entries&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 429ad0e18eccd7261011ee2c7c193b822747e732&lt;/p&gt;</comment>
                            <comment id="217113" author="pjones" created="Fri, 22 Dec 2017 12:51:34 +0000"  >&lt;p&gt;Landed for 2.11&lt;/p&gt;</comment>
                            <comment id="217312" author="gerrit" created="Tue, 2 Jan 2018 16:15:06 +0000"  >&lt;p&gt;Minh Diep (minh.diep@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/30691&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/30691&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10371&quot; title=&quot;Kernel &amp;gt;= 4.8 has no posix_acl_xattr_entry a_entries[0]&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10371&quot;&gt;&lt;del&gt;LU-10371&lt;/del&gt;&lt;/a&gt; ptlrpc: check for posix_acl a_entries&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 37bc792558b3020ff1fba914e0b8780373c6f556&lt;/p&gt;</comment>
                            <comment id="217698" author="gerrit" created="Mon, 8 Jan 2018 16:33:22 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/30691/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/30691/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10371&quot; title=&quot;Kernel &amp;gt;= 4.8 has no posix_acl_xattr_entry a_entries[0]&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10371&quot;&gt;&lt;del&gt;LU-10371&lt;/del&gt;&lt;/a&gt; ptlrpc: check for posix_acl a_entries&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: d3ea5a422f15a50b0705dd3049b5af390ae4bc4b&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_10030" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic/Theme</customfieldname>
                        <customfieldvalues>
                                        <label>patch</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzzp73:</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>