<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:38: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-10877] dt_locate_at reference leak</title>
                <link>https://jira.whamcloud.com/browse/LU-10877</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;commit&#160;f6d6a552398eb1e65857d9bf1afaaf98c8dc1a79 have rewrite a dt_locate_at function to different device tree handling, and this change introduce an object reference leak.&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-c&quot;&gt;+       &lt;span class=&quot;code-keyword&quot;&gt;struct&lt;/span&gt; lu_object *lo, *n;
+       ENTRY;
+
+       lo = lu_object_find_at(env, top_dev, fid, &lt;span class=&quot;code-keyword&quot;&gt;NULL&lt;/span&gt;);
+       if (IS_ERR(lo))
+               &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; (&lt;span class=&quot;code-keyword&quot;&gt;&lt;span class=&quot;code-object&quot;&gt;void&lt;/span&gt;&lt;/span&gt; *)lo;
+
+       LASSERT(lo != &lt;span class=&quot;code-keyword&quot;&gt;NULL&lt;/span&gt;);
+
+       cfs_list_for_each_entry(n, &amp;amp;lo-&amp;gt;lo_header-&amp;gt;loh_layers, lo_linkage) {
+               if (n-&amp;gt;lo_dev == &amp;amp;dev-&amp;gt;dd_lu_dev)
+                       &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; container_of0(n, &lt;span class=&quot;code-keyword&quot;&gt;struct&lt;/span&gt; dt_object, do_lu);
+       }
+       &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; ERR_PTR(-ENOENT);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;if some object not in expected tree we have return an ENOENT without an object reference release. It will cause a panic on unmount.&lt;/p&gt;
</description>
                <environment>any. Test from &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9699&quot; title=&quot;osp_obd_connect()) ASSERTION( osp-&amp;gt;opd_connects == 1 ) failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9699&quot;&gt;&lt;strike&gt;LU-9699&lt;/strike&gt;&lt;/a&gt;</environment>
        <key id="51651">LU-10877</key>
            <summary>dt_locate_at reference leak</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="wc-triage">WC Triage</assignee>
                                    <reporter username="shadow">Alexey Lyashkov</reporter>
                        <labels>
                    </labels>
                <created>Wed, 4 Apr 2018 07:52:08 +0000</created>
                <updated>Sun, 15 Apr 2018 14:19:30 +0000</updated>
                            <resolved>Sun, 15 Apr 2018 14:19:30 +0000</resolved>
                                    <version>Lustre 2.9.0</version>
                    <version>Lustre 2.10.0</version>
                    <version>Lustre 2.11.0</version>
                                    <fixVersion>Lustre 2.12.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="225096" author="gerrit" created="Wed, 4 Apr 2018 09:31:35 +0000"  >&lt;p&gt;Alexey Lyashkov (c17817@cray.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/31870&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31870&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10877&quot; title=&quot;dt_locate_at reference leak&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10877&quot;&gt;&lt;del&gt;LU-10877&lt;/del&gt;&lt;/a&gt; lu: fix reference leak&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 0f829f6bb358f61db7d7275494628fce4b400691&lt;/p&gt;</comment>
                            <comment id="226046" author="gerrit" created="Sat, 14 Apr 2018 12:14:55 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/31870/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31870/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10877&quot; title=&quot;dt_locate_at reference leak&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10877&quot;&gt;&lt;del&gt;LU-10877&lt;/del&gt;&lt;/a&gt; lu: fix reference leak&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: fd669eba19210edd3a011d6862fda96383453cc3&lt;/p&gt;</comment>
                            <comment id="226056" author="pjones" created="Sun, 15 Apr 2018 14:19:30 +0000"  >&lt;p&gt;Landed for 2.12&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="13931">LU-1301</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|hzzv7b:</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>