<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:15:15 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-8171] stack overrun in hai_dump_data_field</title>
                <link>https://jira.whamcloud.com/browse/LU-8171</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;With the stock 3.10 kernel, hai_dump_data_field will do a stack buffer overrun when cat&apos;ing /proc/fs/lustre/.../hsm/actions if an action has some data in it. &lt;/p&gt;

&lt;p&gt;On that kernel, these 2 snprintf:&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;                cnt = snprintf(buffer, 1, &quot;%.2X&quot;, 54);
                cnt = snprintf(buffer, 2, &quot;%.2X&quot;, 54);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;will return 2 instead of 0 and 1 respectively. The strings generated are correct, with 0 and 1 character followed by NUL, respectively.&lt;/p&gt;

&lt;p&gt;The coordinator code calls hai_dump_data_field with 12 bytes in the buffer. The last byte is printed incompletely to make room for the terminating NUL. However since that version of the kernel returns that 2 characters were written, when hai_dump_data_field writes the final NUL, it does it outside the reserved buffer, in the 13th byte. This stack buffer overrun hangs my VM.&lt;/p&gt;

&lt;p&gt;This doesn&apos;t happen on CentOS 6.&lt;/p&gt;</description>
                <environment></environment>
        <key id="37085">LU-8171</key>
            <summary>stack overrun in hai_dump_data_field</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="fzago">Frank Zago</reporter>
                        <labels>
                            <label>cea</label>
                    </labels>
                <created>Thu, 19 May 2016 21:16:17 +0000</created>
                <updated>Wed, 15 Mar 2017 09:39:59 +0000</updated>
                            <resolved>Tue, 14 Jun 2016 23:04:22 +0000</resolved>
                                                    <fixVersion>Lustre 2.9.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="152911" author="fzago" created="Thu, 19 May 2016 21:28:29 +0000"  >&lt;p&gt;Actually that snprintf behaviour is normal. It&apos;s a bug in Lustre.&lt;/p&gt;</comment>
                            <comment id="152912" author="gerrit" created="Thu, 19 May 2016 21:32:35 +0000"  >&lt;p&gt;Frank Zago (fzago@cray.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/20338&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/20338&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8171&quot; title=&quot;stack overrun in hai_dump_data_field&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8171&quot;&gt;&lt;del&gt;LU-8171&lt;/del&gt;&lt;/a&gt; hsm: stack overrun in hai_dump_data_field&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 54e077102fbb5ec4fb7d1a86c89b24db2e31a6b8&lt;/p&gt;</comment>
                            <comment id="153227" author="jgmitter" created="Mon, 23 May 2016 17:24:07 +0000"  >&lt;p&gt;Hi John,&lt;/p&gt;

&lt;p&gt;Could you please advise here and have a look at the patch?&lt;/p&gt;

&lt;p&gt;Thanks.&lt;br/&gt;
Joe&lt;/p&gt;</comment>
                            <comment id="155623" author="gerrit" created="Tue, 14 Jun 2016 03:54:53 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/20338/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/20338/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8171&quot; title=&quot;stack overrun in hai_dump_data_field&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8171&quot;&gt;&lt;del&gt;LU-8171&lt;/del&gt;&lt;/a&gt; hsm: stack overrun in hai_dump_data_field&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: b631a91e7e70ff609268def24e51b5bb089a5545&lt;/p&gt;</comment>
                            <comment id="155714" author="jgmitter" created="Tue, 14 Jun 2016 23:04:22 +0000"  >&lt;p&gt;patch has landed to master for 2.9&lt;/p&gt;</comment>
                            <comment id="159569" author="riauxjb" created="Fri, 22 Jul 2016 09:27:19 +0000"  >&lt;p&gt;Backport to b2_7_fe  &lt;a href=&quot;http://review.whamcloud.com/#/c/21478/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/21478/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <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|hzyc9j:</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>