<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:52:50 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-5594] Null pointer may be dereferenced in libcfs_ioctl_handle()</title>
                <link>https://jira.whamcloud.com/browse/LU-5594</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Null pointer &apos;data&apos; that comes from line 228 may be dereferenced at line 253. Also there are 2 similar errors on line(s) 266, 278.&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;225		&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; libcfs_ioctl_handle(struct cfs_psdev_file *pfile, unsigned &lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt; cmd,
226					       void *arg, struct libcfs_ioctl_hdr *hdr)
227		{
228			struct libcfs_ioctl_data *data = NULL;
229			&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; err;
230			ENTRY;
231		
232			/* The libcfs_ioctl_data_adjust() function performs adjustment
233			 * operations on the libcfs_ioctl_data structure to make
234			 * it usable by the code.  This doesn&apos;t need to be called
235			 * &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; data structures added. */
236			&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (hdr-&amp;gt;ioc_version == LIBCFS_IOCTL_VERSION) {
237				data = container_of(hdr, struct libcfs_ioctl_data, ioc_hdr);
238				err = libcfs_ioctl_data_adjust(data);
239				&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (err != 0) {
240					RETURN(err);
241				}
242			}
243		
244			&lt;span class=&quot;code-keyword&quot;&gt;switch&lt;/span&gt; (cmd) {
245			&lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; IOC_LIBCFS_CLEAR_DEBUG:
246				libcfs_debug_clear_buffer();
247				RETURN(0);
248			/*
249			 * &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; IOC_LIBCFS_PANIC:
250			 * Handled in arch/cfs_module.c
251			 */
252			&lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; IOC_LIBCFS_MARK_DEBUG:
253				&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (data-&amp;gt;ioc_inlbuf1 == NULL ||
254				    data-&amp;gt;ioc_inlbuf1[data-&amp;gt;ioc_inllen1 - 1] != &lt;span class=&quot;code-quote&quot;&gt;&apos;\0&apos;&lt;/span&gt;)
255					RETURN(-EINVAL);
256				libcfs_debug_mark_buffer(data-&amp;gt;ioc_inlbuf1);
257				RETURN(0);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="26408">LU-5594</key>
            <summary>Null pointer may be dereferenced in libcfs_ioctl_handle()</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="dmiter">Dmitry Eremin</assignee>
                                    <reporter username="dmiter">Dmitry Eremin</reporter>
                        <labels>
                            <label>kw</label>
                    </labels>
                <created>Mon, 8 Sep 2014 12:42:46 +0000</created>
                <updated>Fri, 12 Jan 2018 16:28:20 +0000</updated>
                            <resolved>Fri, 12 Jan 2018 16:28:20 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="17451">LU-2753</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|hzwvkf:</customfieldvalue>

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