<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:56:31 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-6021] 5 new static analysis issues in lnetconfig</title>
                <link>https://jira.whamcloud.com/browse/LU-6021</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Found 5 new static analysis issues in 2.6.91-26-g6b0fa76:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;&lt;b&gt;Result of function that may return NULL will be dereferenced&lt;/b&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;tt&gt;lnet/utils/cyaml/cyaml.c&lt;/tt&gt;: in &lt;em&gt;print_value&lt;/em&gt;, Pointer &apos;node&apos; returned from call to function &apos;cYAML&amp;#95;ll&amp;#95;pop&apos; at line 886 may be NULL and will be dereferenced at line 888.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;&lt;b&gt;Null pointer may be dereferenced&lt;/b&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;tt&gt;lnet/utils/lnetconfig/liblnetconfig.c&lt;/tt&gt;: in &lt;em&gt;lustre_lnet_show_stats&lt;/em&gt;, Null pointer &apos;root&apos; that comes from line 1120 may be dereferenced at line 1197 (after &quot;goto out&quot; in 1133).&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;&lt;b&gt;Result of function that can return NULL may be dereferenced&lt;/b&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;tt&gt;lnet/utils/lnetconfig/liblnetconfig.c&lt;/tt&gt;: in &lt;em&gt;lustre_lnet_show_stats&lt;/em&gt;, Pointer &apos;root&apos; returned from call to function &apos;cYAML&amp;#95;create&amp;#95;object&apos; at line 1136 may be NULL and may be dereferenced at line 1197.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;&lt;b&gt;Possible Buffer Overflow in Following String Operations&lt;/b&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;tt&gt;lnet/utils/lnetconfig/liblnetconfig.c&lt;/tt&gt;: in &lt;em&gt;liblnetconfig.c&lt;/em&gt;, function &apos;strncpy&apos; will fill whole buffer &apos;data.cfg&amp;#95;config&amp;#95;u.cfg&amp;#95;net.net&amp;#95;intf&apos; of fixed size (128) with string value and will not leave place for NULL&amp;#45;terminator. Possible buffer boundaries violation in following string operations.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;&lt;b&gt;Pointer may be dereferenced after it was positively checked for NULL&lt;/b&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;tt&gt;lnet/utils/lnetconfig/liblnetconfig.c&lt;/tt&gt;: in &lt;em&gt;lustre_lnet_show_stats&lt;/em&gt;, Pointer &apos;root&apos; checked for NULL at line 1137 may be dereferenced at line 1197.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="27879">LU-6021</key>
            <summary>5 new static analysis issues in lnetconfig</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="ashehata">Amir Shehata</assignee>
                                    <reporter username="dmiter">Dmitry Eremin</reporter>
                        <labels>
                            <label>kw</label>
                    </labels>
                <created>Thu, 11 Dec 2014 18:44:23 +0000</created>
                <updated>Wed, 30 Aug 2023 21:32:18 +0000</updated>
                            <resolved>Mon, 12 Jan 2015 18:35:50 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                    <fixVersion>Lustre 2.7.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="101905" author="ashehata" created="Thu, 18 Dec 2014 02:25:24 +0000"  >&lt;p&gt;1. fixed&lt;br/&gt;
2. if root == NULL then rc == LUSTRE_CFG_RC_OUT_OF_MEM ad we will enter&lt;br/&gt;
if (show_rc == NULL || rc != LUSTRE_CFG_RC_NO_ERR)&lt;br/&gt;
  cYAML_free_tree(root);&lt;br/&gt;
and cYAML_free_tree(root) is written to handle NULL pointer.&lt;br/&gt;
3. same as 2&lt;br/&gt;
4. buf and ip2net are both checked to ensure they fit into net_intf&lt;br/&gt;
5. same as 2&lt;/p&gt;</comment>
                            <comment id="101907" author="ashehata" created="Thu, 18 Dec 2014 02:39:08 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#/c/13115/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/13115/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="23151">LU-4629</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|hzx2bz:</customfieldvalue>

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