<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:37:06 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-3810] client_obd_cleanup() LBUGs if called immediately after client_obd_setup()</title>
                <link>https://jira.whamcloud.com/browse/LU-3810</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In osc_setup() any failure after client_obd_setup() will trigger an LBUG in client_obd_cleanup().&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;LustreError: 14072:0:(ldlm_lib.c:480:client_obd_cleanup()) ASSERTION( obddev-&amp;gt;u.cli.cl_import == ((void *)0) ) failed: 
LustreError: 14072:0:(ldlm_lib.c:480:client_obd_cleanup()) LBUG
Pid: 14072, comm: llog_process_th

Call Trace:
 [&amp;lt;ffffffffa04ec895&amp;gt;] libcfs_debug_dumpstack+0x55/0x80 [libcfs]
 [&amp;lt;ffffffffa04ece97&amp;gt;] lbug_with_loc+0x47/0xb0 [libcfs]
 [&amp;lt;ffffffffa07e46db&amp;gt;] client_obd_cleanup+0x11b/0x120 [ptlrpc]
 [&amp;lt;ffffffffa0a9535f&amp;gt;] osc_setup+0x1ef/0x230 [osc]
 [&amp;lt;ffffffffa0aaad0a&amp;gt;] osc_device_alloc+0x20a/0x370 [osc]
 [&amp;lt;ffffffffa0680e87&amp;gt;] obd_setup+0x1d7/0x2e0 [obdclass]
 [&amp;lt;ffffffffa0681198&amp;gt;] class_setup+0x208/0x870 [obdclass]
 [&amp;lt;ffffffffa0687a6c&amp;gt;] class_process_config+0xc7c/0x1c30 [obdclass]
 [&amp;lt;ffffffffa068241b&amp;gt;] ? lustre_cfg_new+0x3fb/0x650 [obdclass]
 [&amp;lt;ffffffffa0689bbb&amp;gt;] class_config_llog_handler+0xaab/0x17d0 [obdclass]
 [&amp;lt;ffffffff81510afe&amp;gt;] ? mutex_lock+0x1e/0x50
 [&amp;lt;ffffffffa0648499&amp;gt;] llog_process_thread+0x8d9/0xcc0 [obdclass]
 [&amp;lt;ffffffffa0693ccf&amp;gt;] ? keys_fill+0x6f/0x190 [obdclass]
 [&amp;lt;ffffffffa0649325&amp;gt;] llog_process_thread_daemonize+0x45/0x70 [obdclass]
 [&amp;lt;ffffffffa06492e0&amp;gt;] ? llog_process_thread_daemonize+0x0/0x70 [obdclass]
 [&amp;lt;ffffffff81096936&amp;gt;] kthread+0x96/0xa0
 [&amp;lt;ffffffff8100c0ca&amp;gt;] child_rip+0xa/0x20
 [&amp;lt;ffffffff810968a0&amp;gt;] ? kthread+0x0/0xa0
 [&amp;lt;ffffffff8100c0c0&amp;gt;] ? child_rip+0x0/0x20
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This is seen by replacing &lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;handler = ptlrpcd_alloc_work(cli-&amp;gt;cl_import, brw_queue_work, cli);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;with&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;handler = ERR_PTR(-ENOMEM);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;or by similar fault injection in osc_quota_setup().&lt;/p&gt;

&lt;p&gt;mgc_setup() has the same issue. &lt;/p&gt;

&lt;p&gt;mdc_setup() has the same issue, plus double frees and multiple calls to ptlrpcd_decref().&lt;/p&gt;

&lt;p&gt;lwp_setup() would have this issue but nothing interesting happens after client_obd_setup().&lt;/p&gt;

&lt;p&gt;osp_init0 doesn&apos;t LBUG but we do get stuck with some devices:&lt;/p&gt;

&lt;p&gt; 9 AT osp lustre-MDT0001-osp-MDT0000 lustre-MDT0000-mdtlov_UUID 1&lt;br/&gt;
13 AT osp lustre-MDT0000-osp-MDT0001 lustre-MDT0001-mdtlov_UUID 1&lt;/p&gt;</description>
                <environment></environment>
        <key id="20538">LU-3810</key>
            <summary>client_obd_cleanup() LBUGs if called immediately after client_obd_setup()</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="laisiyao">Lai Siyao</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>mdc</label>
                            <label>mgc</label>
                            <label>obd</label>
                            <label>osc</label>
                            <label>osp</label>
                            <label>patch</label>
                    </labels>
                <created>Wed, 21 Aug 2013 15:58:29 +0000</created>
                <updated>Thu, 14 Nov 2013 23:20:59 +0000</updated>
                            <resolved>Thu, 14 Nov 2013 23:20:59 +0000</resolved>
                                    <version>Lustre 2.5.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="65920" author="spimpale" created="Fri, 6 Sep 2013 07:37:14 +0000"  >&lt;p&gt;I have submitted a patch to fix this issue here --&amp;gt; &lt;a href=&quot;http://review.whamcloud.com/#/c/7561/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7561/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="71592" author="jlevi" created="Thu, 14 Nov 2013 23:20:59 +0000"  >&lt;p&gt;Patch landed to Master. If more work is needed in this ticket let me know and I will reopen.&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|hzvyt3:</customfieldvalue>

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