<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:46:57 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-11790] ext4: include terminating u32 in size of xattr entries when expanding inodes</title>
                <link>https://jira.whamcloud.com/browse/LU-11790</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&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;
From: Theodore Ts&apos;o &amp;lt;tytso@mit.edu&amp;gt;
Subject: [PATCH] ext4: include terminating u32 in size of xattr entries when expanding inodes

In ext4_expand_extra_isize_ea(), we calculate the total size of the xattr header, plus the xattr entries so we know how much of the beginning part of the xattrs to move when expanding the inode extra size. We need to include the terminating u32 at the end of the xattr entries, or &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; there is uninitialized, non-zero bytes after the xattr entries and before the xattr values, the list of xattr entries won&apos;t be properly terminated.

Reported-by: Steve Graham &amp;lt;stgraham2000@gmail.com&amp;gt;
Signed-off-by: Theodore Ts&apos;o &amp;lt;tytso@mit.edu&amp;gt;
---
fs/ext4/xattr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c
index 7fddd519adae..86ed9c686249 100644
--- a/fs/ext4/xattr.c
+++ b/fs/ext4/xattr.c
@@ -2722,7 +2722,7 @@ &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; ext4_expand_extra_isize_ea(struct inode *inode,
         base = IFIRST(header);
         end = (void *)raw_inode + EXT4_SB(inode-&amp;gt;i_sb)-&amp;gt;s_inode_size;
         min_offs = end - base;
-        total_ino = sizeof(struct ext4_xattr_ibody_header);
+        total_ino = sizeof(struct ext4_xattr_ibody_header) + sizeof(u32);

         error = xattr_check_inode(inode, header, end);
         &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (error)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="54313">LU-11790</key>
            <summary>ext4: include terminating u32 in size of xattr entries when expanding inodes</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="dongyang">Dongyang Li</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>ldiskfs</label>
                            <label>patch</label>
                    </labels>
                <created>Mon, 17 Dec 2018 01:47:39 +0000</created>
                <updated>Tue, 19 Mar 2019 15:02:52 +0000</updated>
                            <resolved>Wed, 30 Jan 2019 19:16:12 +0000</resolved>
                                    <version>Lustre 2.12.0</version>
                    <version>Lustre 2.10.6</version>
                                    <fixVersion>Lustre 2.13.0</fixVersion>
                    <fixVersion>Lustre 2.10.7</fixVersion>
                    <fixVersion>Lustre 2.12.1</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="238678" author="adilger" created="Mon, 17 Dec 2018 11:38:25 +0000"  >&lt;p&gt;Hi Dongyang, can you please make patches for the affected kernels.&#160;&lt;/p&gt;</comment>
                            <comment id="238816" author="gerrit" created="Wed, 19 Dec 2018 03:04:44 +0000"  >&lt;p&gt;Li Dongyang (dongyangli@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/33893&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33893&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11790&quot; title=&quot;ext4: include terminating u32 in size of xattr entries when expanding inodes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11790&quot;&gt;&lt;del&gt;LU-11790&lt;/del&gt;&lt;/a&gt; ldiskfs: add terminating u32 when expanding inodes&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 93a8183d3290cf1697bf4b98c4787c282c767e3f&lt;/p&gt;</comment>
                            <comment id="240920" author="gerrit" created="Wed, 30 Jan 2019 02:39:13 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/33893/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33893/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11790&quot; title=&quot;ext4: include terminating u32 in size of xattr entries when expanding inodes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11790&quot;&gt;&lt;del&gt;LU-11790&lt;/del&gt;&lt;/a&gt; ldiskfs: add terminating u32 when expanding inodes&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 7c800e460661972925a7acab51f023d0b38161b5&lt;/p&gt;</comment>
                            <comment id="240998" author="pjones" created="Wed, 30 Jan 2019 19:16:12 +0000"  >&lt;p&gt;Landed for 2.13&lt;/p&gt;</comment>
                            <comment id="242131" author="gerrit" created="Sat, 16 Feb 2019 17:37:24 +0000"  >&lt;p&gt;Minh Diep (mdiep@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/34270&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34270&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11790&quot; title=&quot;ext4: include terminating u32 in size of xattr entries when expanding inodes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11790&quot;&gt;&lt;del&gt;LU-11790&lt;/del&gt;&lt;/a&gt; ldiskfs: add terminating u32 when expanding inodes&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: f134399730e79d1125d10f49168751470456cbb1&lt;/p&gt;</comment>
                            <comment id="242586" author="gerrit" created="Sat, 23 Feb 2019 05:10:23 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/34270/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34270/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11790&quot; title=&quot;ext4: include terminating u32 in size of xattr entries when expanding inodes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11790&quot;&gt;&lt;del&gt;LU-11790&lt;/del&gt;&lt;/a&gt; ldiskfs: add terminating u32 when expanding inodes&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 07ec3feade28bed117a8b1a93595296e723705fa&lt;/p&gt;</comment>
                            <comment id="242713" author="gerrit" created="Mon, 25 Feb 2019 17:58:26 +0000"  >&lt;p&gt;Minh Diep (mdiep@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/34314&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34314&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11790&quot; title=&quot;ext4: include terminating u32 in size of xattr entries when expanding inodes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11790&quot;&gt;&lt;del&gt;LU-11790&lt;/del&gt;&lt;/a&gt; ldiskfs: add terminating u32 when expanding inodes&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 58f266fdf37e5509038a7c9aae24f32a63450769&lt;/p&gt;</comment>
                            <comment id="244216" author="gerrit" created="Tue, 19 Mar 2019 06:02:41 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/34314/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34314/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11790&quot; title=&quot;ext4: include terminating u32 in size of xattr entries when expanding inodes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11790&quot;&gt;&lt;del&gt;LU-11790&lt;/del&gt;&lt;/a&gt; ldiskfs: add terminating u32 when expanding inodes&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 9894f5904bf5c1dd098cb569f6c1efb12feadc0b&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|i00853:</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>