<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:07:23 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-7261] EA list corruption</title>
                <link>https://jira.whamcloud.com/browse/LU-7261</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;After some requirements from customers i checked an large EA patch and see we have a corrupted EA list in result. It&apos;s easy replicated with leave test file on disk and run a e2fsck / debugfs over test file.&lt;br/&gt;
to leave a test file may used patch&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;bash-3.2$ git diff
diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh
index 824ba8f..620a626e 100644
--- a/lustre/tests/sanity.sh
+++ b/lustre/tests/sanity.sh
@@ -6810,7 +6810,7 @@ grow_xattr() {
        [[ &lt;span class=&quot;code-quote&quot;&gt;&quot;$&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt;&quot;&lt;/span&gt; != &lt;span class=&quot;code-quote&quot;&gt;&quot;$orig&quot;&lt;/span&gt; ]] &amp;amp;&amp;amp; error &lt;span class=&quot;code-quote&quot;&gt;&quot;$xbig different after growing $xsml&quot;&lt;/span&gt;
        log &lt;span class=&quot;code-quote&quot;&gt;&quot;$xbig still valid after growing $xsml&quot;&lt;/span&gt;
 
-       rm -f $file
+#      rm -f $file
 }
 
 test_102h() { # bug 15777
diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh
index be6d1ec..d1e91fb 100755
--- a/lustre/tests/test-framework.sh
+++ b/lustre/tests/test-framework.sh
@@ -4325,8 +4325,8 @@ check_and_cleanup_lustre() {
     fi
 
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; is_mounted $MOUNT; then
-               [ -n &lt;span class=&quot;code-quote&quot;&gt;&quot;$DIR&quot;&lt;/span&gt; ] &amp;amp;&amp;amp; rm -rf $DIR/[Rdfs][0-9]* ||
-                       error &lt;span class=&quot;code-quote&quot;&gt;&quot;remove sub-test dirs failed&quot;&lt;/span&gt;
+#              [ -n &lt;span class=&quot;code-quote&quot;&gt;&quot;$DIR&quot;&lt;/span&gt; ] &amp;amp;&amp;amp; rm -rf $DIR/[Rdfs][0-9]* ||
+#                      error &lt;span class=&quot;code-quote&quot;&gt;&quot;remove sub-test dirs failed&quot;&lt;/span&gt;
                [ &lt;span class=&quot;code-quote&quot;&gt;&quot;$ENABLE_QUOTA&quot;&lt;/span&gt; ] &amp;amp;&amp;amp; restore_quota || &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
        fi
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;debugfs / e2fsck output:&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;]# /Users/shadow/work/lustre/work/WorkQ/CLSTR-4851/e2fsprogs/debugfs/debugfs -R &quot;stat ROOT/f102ha.sanity&quot; /tmp/lustre-mdt1
debugfs 1.42.12.x1 (03-Apr-2015)
Inode: 133   Type: regular    Mode:  0644   Flags: 0x0
Generation: 1408916363    Version: 0x00000001:00000010
User:     0   Group:     0   Size: 0
File ACL: 0    Directory ACL: 0
Links: 1   Blockcount: 0
Fragment:  Address: 0    Number: 0    Size: 0
 ctime: 0x5614a1b5:00000000 -- Wed Oct  7 07:38:13 2015
 atime: 0x5614a1a8:00000000 -- Wed Oct  7 07:38:00 2015
 mtime: 0x5614a1a8:00000000 -- Wed Oct  7 07:38:00 2015
crtime: 0x5614a1a8:def3d250 -- Wed Oct  7 07:38:00 2015
Size of extra inode fields: 28
Extended attributes stored in inode body: 
  lma = &quot;00 00 00 00 00 00 00 00 01 04 00 00 02 00 00 00 03 00 00 00 00 00 00 00 &quot; (24)
  lma: fid=[0x200000401:0x3:0x0] compat=0 incompat=0
  lov = &quot;d0 0b d1 0b 01 00 00 00 03 00 00 00 00 00 00 00 01 04 00 00 02 00 00 00 00 00 10 00 02 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 &quot; (80)
  link = &quot;df f1 ea 11 01 00 00 00 37 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1f 00 00 00 02 00 00 00 07 00 00 00 01 00 00 00 00 66 31 30 32 68 61 2e 73 61 6e 69 74 79 &quot; (55)
1. invalid EA entry in inode -&amp;gt; big
BLOCKS:
e2fsck 1.42.12.x1 (03-Apr-2015)
Pass 1: Checking inodes, blocks, and sizes
Extended attribute in inode 133 has a value size (65536) which is invalid
Clear? yes

Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Unattached inode 134
Connect to /lost+found? yes

Unattached inode 135
Connect to /lost+found? yes

Pass 5: Checking group summary information
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;one note. e2fsck 1.42.3.wc3 (15-Aug-2012) - can&apos;t find a bug in EA.&lt;/p&gt;

&lt;p&gt;Root cause of it bug, large EA forget to skip when we start update an data offsets after EA record changed.&lt;br/&gt;
fix is simple&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;-@@ -605,13 +883,17 @@ ext4_xattr_set_entry(struct ext4_xattr_i
+@@ -606,13 +884,18 @@ ext4_xattr_set_entry(struct ext4_xattr_i
                        last = s-&amp;gt;first;
                        while (!IS_LAST_ENTRY(last)) {
                                size_t o = le16_to_cpu(last-&amp;gt;e_value_offs);
 -                              if (!last-&amp;gt;e_value_block &amp;amp;&amp;amp;
 -                                  last-&amp;gt;e_value_size &amp;amp;&amp;amp; o &amp;lt; offs)
-+                              if (last-&amp;gt;e_value_size &amp;gt; 0 &amp;amp;&amp;amp; o &amp;lt; offs)
++                              if ((last-&amp;gt;e_value_size &amp;gt; 0 &amp;amp;&amp;amp; o &amp;lt; offs) 
++                                   &amp;amp;&amp;amp; last-&amp;gt;e_value_inum == 0)
                                        last-&amp;gt;e_value_offs =
                                                cpu_to_le16(o + size);
                                last = EXT4_XATTR_NEXT(last);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;but i don&apos;t able to send because lack of gerrit login after OAuth changes.&lt;/p&gt;</description>
                <environment>RHEL6 + lustre/master</environment>
        <key id="32528">LU-7261</key>
            <summary>EA list corruption</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="adilger">Andreas Dilger</assignee>
                                    <reporter username="shadow">Alexey Lyashkov</reporter>
                        <labels>
                    </labels>
                <created>Wed, 7 Oct 2015 04:45:20 +0000</created>
                <updated>Fri, 1 Jul 2016 18:49:20 +0000</updated>
                            <resolved>Wed, 11 Nov 2015 18:04:51 +0000</resolved>
                                    <version>Lustre 2.5.0</version>
                    <version>Lustre 2.6.0</version>
                    <version>Lustre 2.7.0</version>
                    <version>Lustre 2.8.0</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>13</watches>
                                                                            <comments>
                            <comment id="129923" author="gerrit" created="Fri, 9 Oct 2015 06:30:32 +0000"  >&lt;p&gt;Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/16777&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/16777&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7261&quot; title=&quot;EA list corruption&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7261&quot;&gt;&lt;del&gt;LU-7261&lt;/del&gt;&lt;/a&gt; ldiskfs: fix large_xattr overwrite&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 892aa251a50d7777eb759f73520bc19de4ae51fb&lt;/p&gt;</comment>
                            <comment id="129924" author="gerrit" created="Fri, 9 Oct 2015 06:37:23 +0000"  >&lt;p&gt;Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/16778&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/16778&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7261&quot; title=&quot;EA list corruption&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7261&quot;&gt;&lt;del&gt;LU-7261&lt;/del&gt;&lt;/a&gt; ldiskfs: clean up code style for large_xattr&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: e7083690d7b292de287ed579bfa9f05d18ec6bd2&lt;/p&gt;</comment>
                            <comment id="131070" author="gerrit" created="Wed, 21 Oct 2015 22:48:47 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/16777/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/16777/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7261&quot; title=&quot;EA list corruption&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7261&quot;&gt;&lt;del&gt;LU-7261&lt;/del&gt;&lt;/a&gt; ldiskfs: fix large_xattr overwrite&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 66ca2bc59135b00cd20a4e5095a23cf54cdfa2eb&lt;/p&gt;</comment>
                            <comment id="131225" author="adilger" created="Thu, 22 Oct 2015 19:04:15 +0000"  >&lt;p&gt;Have reduced priority after main fix patch has landed.  Remaining patch is cleanup and no longer a blocker, but bug shouldn&apos;t be closed until it is landed (hopefully still for 2.8.0 to avoid having to fork the bug just to track that patch).&lt;/p&gt;</comment>
                            <comment id="133239" author="gerrit" created="Wed, 11 Nov 2015 15:26:18 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/16778/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/16778/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7261&quot; title=&quot;EA list corruption&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7261&quot;&gt;&lt;del&gt;LU-7261&lt;/del&gt;&lt;/a&gt; ldiskfs: clean up code style for large_xattr&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: ab07d78bec9bc127d1a2240b7e8c16e52f117b41&lt;/p&gt;</comment>
                            <comment id="133271" author="jgmitter" created="Wed, 11 Nov 2015 18:04:51 +0000"  >&lt;p&gt;Landed for 2.8&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </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|hzxpsf:</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>