<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:08:24 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-7380] Potential variable dereferenced bufer check in lprocfs_status.c</title>
                <link>https://jira.whamcloud.com/browse/LU-7380</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;After the merger of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6070&quot; title=&quot;provide separate buffers for libcfs_*2str()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6070&quot;&gt;&lt;del&gt;LU-6070&lt;/del&gt;&lt;/a&gt; to the upstream client Dan Carpenter reported the follow smatch warning:&lt;/p&gt;

&lt;p&gt;drivers/staging/lustre/lustre/obdclass/lprocfs_status.c:676 lprocfs_rd_import()&lt;br/&gt;
	 warn: variable dereferenced before check &apos;imp-&amp;gt;imp_connection&apos; (see line 668)&lt;/p&gt;

&lt;p&gt;drivers/staging/lustre/lustre/obdclass/lprocfs_status.c&lt;br/&gt;
   667		}&lt;br/&gt;
   668		libcfs_nid2str_r(imp-&amp;gt;imp_connection-&amp;gt;c_peer.nid,&lt;br/&gt;
                                 ^^^^^^^^^^^^^^^^^^^^^&lt;br/&gt;
Patch introduces a new dereference.&lt;/p&gt;

&lt;p&gt;   669				 nidstr, sizeof(nidstr));&lt;br/&gt;
   670		seq_printf(m,&lt;br/&gt;
   671			      &quot;]\n&quot;&lt;br/&gt;
   672			      &quot;       current_connection: %s\n&quot;&lt;br/&gt;
   673			      &quot;       connection_attempts: %u\n&quot;&lt;br/&gt;
   674			      &quot;       generation: %u\n&quot;&lt;br/&gt;
   675			      &quot;       in-progress_invalidations: %u\n&quot;,&lt;br/&gt;
   676			      imp-&amp;gt;imp_connection == NULL ? &quot;&amp;lt;none&amp;gt;&quot; : nidstr,&lt;br/&gt;
                              ^^^^^^^^^^^^^^^^^^^&lt;br/&gt;
Old code assumes it can be NULL.&lt;/p&gt;

&lt;p&gt;   677			      imp-&amp;gt;imp_conn_cnt,&lt;br/&gt;
   678			      imp-&amp;gt;imp_generation,&lt;/p&gt;
</description>
                <environment></environment>
        <key id="32991">LU-7380</key>
            <summary>Potential variable dereferenced bufer check in lprocfs_status.c</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="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="simmonsja">James A Simmons</reporter>
                        <labels>
                    </labels>
                <created>Tue, 3 Nov 2015 23:04:34 +0000</created>
                <updated>Wed, 4 Nov 2015 09:36:23 +0000</updated>
                            <resolved>Wed, 4 Nov 2015 09:36:23 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="132597" author="dmiter" created="Wed, 4 Nov 2015 09:36:23 +0000"  >&lt;p&gt;This is duplicate of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6507&quot; title=&quot;Unsaf use of import connection at lprocfs_import_seq_show&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6507&quot;&gt;&lt;del&gt;LU-6507&lt;/del&gt;&lt;/a&gt;&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|hzxs6v:</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>