<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:05:41 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-7065] lod_add_device() may free an already added target description</title>
                <link>https://jira.whamcloud.com/browse/LU-7065</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In the error path of &lt;tt&gt;lod_add_device()&lt;/tt&gt; we may free tgt_desc after adding it to the ldt:&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;        LTD_TGT(ltd, index) = tgt_desc;
        cfs_bitmap_set(ltd-&amp;gt;ltd_tgt_bitmap, index);
        ltd-&amp;gt;ltd_tgtnr++;
        mutex_unlock(&amp;amp;ltd-&amp;gt;ltd_mutex);
        lod_putref(lod, ltd);
        lock = &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;;
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (lod-&amp;gt;lod_recovery_completed)
                ldev-&amp;gt;ld_ops-&amp;gt;ldo_recovery_complete(env, ldev);

        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!for_ost &amp;amp;&amp;amp; lod-&amp;gt;lod_initialized) {
                rc = lod_sub_init_llog(env, lod, tgt_desc-&amp;gt;ltd_tgt);
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc != 0) {
                        CERROR(&lt;span class=&quot;code-quote&quot;&gt;&quot;%s: cannot start llog on %s:rc = %d\n&quot;&lt;/span&gt;,
                               lod2obd(lod)-&amp;gt;obd_name, osp, rc);
                        GOTO(out_pool, rc);
                }
        }

        rc = lfsck_add_target(env, lod-&amp;gt;lod_child, d, exp, index, for_ost);
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc != 0) {
                CERROR(&lt;span class=&quot;code-quote&quot;&gt;&quot;Fail to add LFSCK target: name = %s, type = %s, &quot;&lt;/span&gt;
                       &lt;span class=&quot;code-quote&quot;&gt;&quot;index = %u, rc = %d\n&quot;&lt;/span&gt;, osp, type, index, rc);
                GOTO(out_fini_llog, rc);
        }
        RETURN(rc);
out_fini_llog:
        lod_sub_fini_llog(env, tgt_desc-&amp;gt;ltd_tgt,
                          tgt_desc-&amp;gt;ltd_recovery_thread);
out_pool:
        lod_ost_pool_remove(&amp;amp;lod-&amp;gt;lod_pool_info, index);
out_mutex:
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (lock) {
                mutex_unlock(&amp;amp;ltd-&amp;gt;ltd_mutex);
                lod_putref(lod, ltd);
        }
out_desc:
        OBD_FREE_PTR(tgt_desc);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="31813">LU-7065</key>
            <summary>lod_add_device() may free an already added target description</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="dmiter">Dmitry Eremin</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>lod</label>
                    </labels>
                <created>Mon, 31 Aug 2015 19:09:39 +0000</created>
                <updated>Fri, 2 Oct 2015 11:30:23 +0000</updated>
                            <resolved>Fri, 2 Oct 2015 11:30:23 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="125888" author="jgmitter" created="Tue, 1 Sep 2015 17:37:56 +0000"  >&lt;p&gt;Hi Dmitry,&lt;br/&gt;
Can you look into this issue?&lt;br/&gt;
Thanks.&lt;br/&gt;
Joe&lt;/p&gt;</comment>
                            <comment id="125889" author="adilger" created="Tue, 1 Sep 2015 17:38:21 +0000"  >&lt;p&gt;Looks like this was added in &lt;a href=&quot;http://review.whamcloud.com/11408&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/11408&lt;/a&gt; (commit v2_7_54_0-43-g4dcd475) but it may lead to a crash and should be fixed for 2.8.0.&lt;/p&gt;</comment>
                            <comment id="127469" author="gerrit" created="Wed, 16 Sep 2015 12:33:05 +0000"  >&lt;p&gt;Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/16441&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/16441&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7065&quot; title=&quot;lod_add_device() may free an already added target description&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7065&quot;&gt;&lt;del&gt;LU-7065&lt;/del&gt;&lt;/a&gt; lod: Fix free of already added target description&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: c191f84b1518c94416cc9ac25cb4a9a78cc06842&lt;/p&gt;</comment>
                            <comment id="129092" author="gerrit" created="Fri, 2 Oct 2015 04:14:20 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/16441/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/16441/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7065&quot; title=&quot;lod_add_device() may free an already added target description&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7065&quot;&gt;&lt;del&gt;LU-7065&lt;/del&gt;&lt;/a&gt; lod: Fix free of already added target description&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: dd745f94bf0fac0d4042f46c8faba1b61d3b9fb3&lt;/p&gt;</comment>
                            <comment id="129114" author="dmiter" created="Fri, 2 Oct 2015 11:30:23 +0000"  >&lt;p&gt;Landed to 2.8&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|hzxlu7:</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>