<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:51:17 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-5413] mdd_write_lock leaks</title>
                <link>https://jira.whamcloud.com/browse/LU-5413</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In mdd_open() and mdd_migrate_update_name() there are error paths that leak a write lock on an object.&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; mdd_open(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_env *env, struct md_object *obj,
                    &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; flags)
{
        struct mdd_object *mdd_obj = md2mdd_obj(obj);
        struct lu_attr *attr = MDD_ENV_VAR(env, cattr);
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; rc = 0;

        mdd_write_lock(env, mdd_obj, MOR_TGT_CHILD);

        rc = mdd_la_get(env, mdd_obj, attr, BYPASS_CAPA);
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc)
                RETURN(rc);

        rc = mdd_open_sanity_check(env, mdd_obj, attr, flags);
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc == 0)
                mdd_obj-&amp;gt;mod_count++;

        mdd_write_unlock(env, mdd_obj);
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; rc;
}

mdd_migrate_update_name()
        mdd_write_lock(env, mdd_sobj, MOR_SRC_CHILD);
        mdo_ref_del(env, mdd_sobj, handle);
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (is_dir)
                mdo_ref_del(env, mdd_sobj, handle);

        &lt;span class=&quot;code-comment&quot;&gt;/* Get the attr again after ref_del */&lt;/span&gt;
        rc = mdd_la_get(env, mdd_sobj, so_attr,
        		mdd_object_capa(env, mdd_sobj));
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc != 0)
        	GOTO(stop_trans, rc);
        ma-&amp;gt;ma_attr = *so_attr;
        ma-&amp;gt;ma_valid |= MA_INODE;
        rc = mdd_finish_unlink(env, mdd_sobj, ma, mdd_pobj, lname, handle);
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc != 0)
                GOTO(stop_trans, rc);

        rc = mdd_attr_set_internal(env, mdd_pobj, p_la, handle, 0);
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc != 0)
                GOTO(stop_trans, rc);

        mdd_write_unlock(env, mdd_sobj);

stop_trans:
        mdd_trans_stop(env, mdd, rc, handle);

        RETURN(rc);
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This was found through DT API fault injection.&lt;/p&gt;</description>
                <environment></environment>
        <key id="25740">LU-5413</key>
            <summary>mdd_write_lock leaks</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="jhammond">John Hammond</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>dt</label>
                            <label>fault</label>
                            <label>mdd</label>
                    </labels>
                <created>Thu, 24 Jul 2014 20:40:22 +0000</created>
                <updated>Thu, 14 Jun 2018 21:41:36 +0000</updated>
                            <resolved>Thu, 30 Oct 2014 20:36:08 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                    <fixVersion>Lustre 2.7.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="90045" author="jhammond" created="Fri, 25 Jul 2014 15:03:22 +0000"  >&lt;p&gt;Please see &lt;a href=&quot;http://review.whamcloud.com/11228&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/11228&lt;/a&gt; which also addresses &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5412&quot; title=&quot;mdd_unlink() may pass a NULL object to mdd_write_unlock()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5412&quot;&gt;&lt;del&gt;LU-5412&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="97988" author="jlevi" created="Thu, 30 Oct 2014 20:36:08 +0000"  >&lt;p&gt;Patch landed to Master.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="25739">LU-5412</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </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|hzws9j:</customfieldvalue>

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