<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:51:58 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-5494] mdd: Null pointer may be passed to function that may dereference it</title>
                <link>https://jira.whamcloud.com/browse/LU-5494</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Null pointer &apos;mdd_pobj&apos; that comes from line 311 may be passed to function and can be dereferenced there by passing argument 2 to function &apos;mdd_may_create&apos; at line 364. Also there is one similar error on line 367.&lt;/p&gt;

&lt;p&gt;TRACEBACK:&lt;br/&gt;
mdd_permission.c:311: &apos;mdd_pobj&apos; has been assigned a NULL value.&lt;br/&gt;
mdd_permission.c:326: pobj!= ( (void* )0) is false&lt;br/&gt;
mdd_permission.c:364: &apos;mdd_pobj&apos; is dereferenced by passing argument 2 to function &apos;mdd_may_create&apos;.&lt;br/&gt;
mdd_dir.c:336: &apos;pobj&apos; is passed to function &apos;mdd_may_create&apos;.&lt;br/&gt;
mdd_dir.c:348: mdd_is_dead_obj(pobj) is false&lt;br/&gt;
mdd_dir.c:365: &apos;pobj&apos; is dereferenced by passing argument 2 to function &apos;mdd_permission_internal_locked&apos;.&lt;br/&gt;
mdd_internal.h:508: &apos;obj&apos; is passed to function &apos;mdd_permission_internal_locked&apos;.&lt;br/&gt;
mdd_internal.h:513: &apos;obj&apos; is dereferenced by passing argument 2 to function &apos;__mdd_permission_internal&apos;.&lt;br/&gt;
mdd_permission.c:243: &apos;obj&apos; is passed to function &apos;__mdd_permission_internal&apos;.&lt;br/&gt;
mdd_permission.c:265: &apos;obj&apos; is dereferenced by passing argument 1 to function &apos;mdd_is_immutable&apos;.&lt;br/&gt;
mdd_internal.h:425: &apos;obj&apos; is passed to function &apos;mdd_is_immutable&apos;.&lt;br/&gt;
mdd_internal.h:427: &apos;obj&apos; is explicitly dereferenced.&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;345        check_create = mask &amp;amp; MAY_CREATE;
346        check_link = mask &amp;amp; MAY_LINK;
347        check_unlink = mask &amp;amp; MAY_UNLINK;
348        check_rename_src = mask &amp;amp; MAY_RENAME_SRC;
349        check_rename_tar = mask &amp;amp; MAY_RENAME_TAR;
350        check_vtx_part = mask &amp;amp; MAY_VTX_PART;
351        check_vtx_full = mask &amp;amp; MAY_VTX_FULL;
352        check_rgetfacl = mask &amp;amp; MAY_RGETFACL;
353
354        mask &amp;amp;= ~(MAY_CREATE | MAY_LINK |
355                MAY_UNLINK |
356                MAY_RENAME_SRC | MAY_RENAME_TAR |
357                MAY_VTX_PART | MAY_VTX_FULL |
358                MAY_RGETFACL);
359
360	rc = mdd_permission_internal_locked(env, mdd_cobj, cattr, mask,
361					MOR_TGT_CHILD);
362		
363	&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!rc &amp;amp;&amp;amp; check_create)
364		rc = mdd_may_create(env, mdd_pobj, pattr, mdd_cobj, &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;);
365
366	&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!rc &amp;amp;&amp;amp; check_unlink)
367		rc = mdd_may_unlink(env, mdd_pobj, pattr, cattr);
368
369	&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!rc &amp;amp;&amp;amp; (check_rename_src || check_rename_tar))
370		rc = mdd_may_delete(env, mdd_pobj, pattr, mdd_cobj, cattr, NULL,
371				1, check_rename_tar);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="26039">LU-5494</key>
            <summary>mdd: Null pointer may be passed to function that may dereference it</summary>
                <type id="7" iconUrl="https://jira.whamcloud.com/images/icons/issuetypes/task_agile.png">Technical task</type>
                            <parent id="17451">LU-2753</parent>
                                    <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>Fri, 15 Aug 2014 19:14:23 +0000</created>
                <updated>Fri, 6 May 2016 10:53:56 +0000</updated>
                            <resolved>Fri, 6 May 2016 10:53:56 +0000</resolved>
                                                    <fixVersion>Lustre 2.9.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                            <comments>
                            <comment id="151287" author="dmiter" created="Fri, 6 May 2016 10:53:56 +0000"  >&lt;p&gt;Fixed by &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6450&quot; title=&quot;most MAY_* constants defined in lustre_idl.h are unused&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6450&quot;&gt;&lt;del&gt;LU-6450&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="29465">LU-6450</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|hzwtw7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>15334</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>