<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:47:32 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-4984] Integer overflow in LL_IOC_HSM_REQUEST handler</title>
                <link>https://jira.whamcloud.com/browse/LU-4984</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;There&apos;s an integer overflow in LL_IOC_HSM_REQUEST handler&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;case&lt;/span&gt; LL_IOC_HSM_REQUEST: {
                struct hsm_user_request *hur;
                &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;                      totalsize;

                OBD_ALLOC_PTR(hur);
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (hur == NULL)
                        RETURN(-ENOMEM);

                &lt;span class=&quot;code-comment&quot;&gt;/* We don&apos;t know the &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt; size yet; copy the fixed-size part */&lt;/span&gt;
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (copy_from_user(hur, (void *)arg, sizeof(*hur))) {
                        OBD_FREE_PTR(hur);
                        RETURN(-EFAULT);
                }

                &lt;span class=&quot;code-comment&quot;&gt;/* Compute the whole struct size */&lt;/span&gt;
                totalsize = hur_len(hur);
                OBD_FREE_PTR(hur);

                &lt;span class=&quot;code-comment&quot;&gt;/* Make sure the size is reasonable */&lt;/span&gt;
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (totalsize &amp;gt;= MDS_MAXREQSIZE)
                        RETURN(-E2BIG);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Instead of checking totalsize which is past multiplication and is subject to overflow already, what we must do is we must ensure hur-&amp;gt;hur_request.hr_itemcount is safe first.&lt;br/&gt;
Then it&apos;s safe to call hur_len&lt;/p&gt;</description>
                <environment></environment>
        <key id="24501">LU-4984</key>
            <summary>Integer overflow in LL_IOC_HSM_REQUEST handler</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="utopiabound">Nathaniel Clark</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                            <label>mq115</label>
                    </labels>
                <created>Wed, 30 Apr 2014 03:36:33 +0000</created>
                <updated>Mon, 1 Dec 2014 08:41:27 +0000</updated>
                            <resolved>Tue, 1 Jul 2014 14:53:14 +0000</resolved>
                                    <version>Lustre 2.5.0</version>
                    <version>Lustre 2.6.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="82878" author="jlevi" created="Wed, 30 Apr 2014 17:24:04 +0000"  >&lt;p&gt;James,&lt;br/&gt;
Could you please take this one?&lt;br/&gt;
Thank you!&lt;/p&gt;</comment>
                            <comment id="82879" author="adilger" created="Wed, 30 Apr 2014 17:24:19 +0000"  >&lt;p&gt;John, I suspect we should also annotate some of these fields with __user as well, could you please comment.&lt;/p&gt;</comment>
                            <comment id="85888" author="adilger" created="Thu, 5 Jun 2014 18:27:24 +0000"  >&lt;p&gt;John,&lt;br/&gt;
is there any chance you would have time to look at this?&lt;/p&gt;</comment>
                            <comment id="85906" author="utopiabound" created="Thu, 5 Jun 2014 20:09:49 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/10615&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/10615&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="87886" author="pjones" created="Tue, 1 Jul 2014 14:53:15 +0000"  >&lt;p&gt;Landed for 2.6&lt;/p&gt;</comment>
                            <comment id="87893" author="fzago" created="Tue, 1 Jul 2014 15:26:15 +0000"  >&lt;p&gt;The committed patch still has the memory leak mentioned here: &lt;a href=&quot;http://review.whamcloud.com/#/c/10615/5/lustre/utils/lfs.c,cm&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/10615/5/lustre/utils/lfs.c,cm&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="88745" author="green" created="Thu, 10 Jul 2014 18:24:19 +0000"  >&lt;p&gt;The leak is in a short-lived lfs tool, not any sort of a library that can for extended periods of time, so I don&apos;t see this is a very important leak (still a bug, of course).&lt;/p&gt;

&lt;p&gt;Please open a separate ticket about it so that it&apos;s not forgotten.&lt;/p&gt;</comment>
                            <comment id="88749" author="pjones" created="Thu, 10 Jul 2014 18:29:34 +0000"  >&lt;p&gt;Oleg&lt;/p&gt;

&lt;p&gt;I think that Andreas did this on Frank&apos;s behalf under &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5323&quot; title=&quot;memory leak in lfs_hsm_request()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5323&quot;&gt;&lt;del&gt;LU-5323&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="96942" author="jamesanunez" created="Tue, 21 Oct 2014 22:25:46 +0000"  >&lt;p&gt;Patch for b2_5 at &lt;a href=&quot;http://review.whamcloud.com/12369&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/12369&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="25526">LU-5323</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|hzwlhb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>13804</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>