<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:15:04 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-15056] Overflow when setting a tbf rule name</title>
                <link>https://jira.whamcloud.com/browse/LU-15056</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;A tbf rule name length is limited to 16 characters (MAX_TBF_NAME). &lt;br/&gt;
This length is never checked. This can cause an overflow inside the following code:&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;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;
nrs_tbf_rule_start(struct ptlrpc_nrs_policy *policy,
                   struct nrs_tbf_head *head,
                   struct nrs_tbf_cmd *start)
{
        struct nrs_tbf_rule     *rule;
        struct nrs_tbf_rule     *tmp_rule;
        struct nrs_tbf_rule     *next_rule;
        &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt;                    *next_name = start-&amp;gt;u.tc_start.ts_next_name;
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;                      rc;

        rule = nrs_tbf_rule_find(head, start-&amp;gt;tc_name);
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rule) {
                nrs_tbf_rule_put(rule);
                &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; -EEXIST;
        }

        OBD_CPT_ALLOC_PTR(rule, nrs_pol2cptab(policy), nrs_pol2cptid(policy));
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rule == NULL)
                &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; -ENOMEM;

        memcpy(rule-&amp;gt;tr_name, start-&amp;gt;tc_name, strlen(start-&amp;gt;tc_name));    &amp;lt;---------------------
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>VMs with lustre 2.14.53</environment>
        <key id="66366">LU-15056</key>
            <summary>Overflow when setting a tbf rule name</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="eaujames">Etienne Aujames</assignee>
                                    <reporter username="eaujames">Etienne Aujames</reporter>
                        <labels>
                    </labels>
                <created>Mon, 4 Oct 2021 14:33:44 +0000</created>
                <updated>Fri, 7 Jan 2022 16:55:09 +0000</updated>
                            <resolved>Thu, 6 Jan 2022 23:08:10 +0000</resolved>
                                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="314607" author="gerrit" created="Mon, 4 Oct 2021 18:59:50 +0000"  >&lt;p&gt;&quot;Etienne AUJAMES &amp;lt;eaujames@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/45124&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45124&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15056&quot; title=&quot;Overflow when setting a tbf rule name&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15056&quot;&gt;&lt;del&gt;LU-15056&lt;/del&gt;&lt;/a&gt; nrs: length of a tbf rule should be checked&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 8c8f574b02c720607c9ca73493af3735a13f88b7&lt;/p&gt;</comment>
                            <comment id="321939" author="gerrit" created="Thu, 6 Jan 2022 21:59:41 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/45124/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45124/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15056&quot; title=&quot;Overflow when setting a tbf rule name&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15056&quot;&gt;&lt;del&gt;LU-15056&lt;/del&gt;&lt;/a&gt; nrs: length of a tbf rule should be checked&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 1937c6cd75a2346b353f4cb6aacda8d0b6df804d&lt;/p&gt;</comment>
                            <comment id="321980" author="pjones" created="Thu, 6 Jan 2022 23:08:10 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                            <comment id="322067" author="gerrit" created="Fri, 7 Jan 2022 16:55:09 +0000"  >&lt;p&gt;&quot;Etienne AUJAMES &amp;lt;eaujames@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/46003&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46003&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15056&quot; title=&quot;Overflow when setting a tbf rule name&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15056&quot;&gt;&lt;del&gt;LU-15056&lt;/del&gt;&lt;/a&gt; nrs: length of a tbf rule should be checked&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 927f6af5564f5da839a4f2190379c6b091d872e1&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="66533">LUDOC-496</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|i0265b:</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>