<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:39:38 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-4098] Client kernel crash due to misconfigured MDT</title>
                <link>https://jira.whamcloud.com/browse/LU-4098</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Ref: &lt;br/&gt;
&lt;a href=&quot;http://lists.lustre.org/pipermail/lustre-devel/2013-October/004275.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://lists.lustre.org/pipermail/lustre-devel/2013-October/004275.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Client kernel crashes using mount command: &lt;/p&gt;

&lt;p&gt;Recreated by:&lt;br/&gt;
server&amp;gt; mkfs.lustre --reformat --fsname=lus1 --mgs --mdt --index=1 /dev/sdd1&lt;br/&gt;
server&amp;gt; mkfs.lustre --reformat --ost --fsname=lus1&lt;br/&gt;
--mgsnode=192.168.20.46@o2ib0 --index=1 /dev/sde1&lt;/p&gt;

&lt;p&gt;client&amp;gt; mount.lustre -o flock 192.168.20.46@o2ib0:/lus1 /mnt/lustre&lt;/p&gt;

&lt;p&gt;Panic occurs at lmv_get_info()&lt;/p&gt;

&lt;p&gt;&amp;lt;1&amp;gt;[  215.946538] BUG: unable to handle kernel NULL pointer&lt;br/&gt;
dereference at 0000000000000028&lt;br/&gt;
&amp;lt;1&amp;gt;[  215.946572] IP: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa07445cb&amp;gt;&amp;#93;&lt;/span&gt; lmv_get_info+0x32b/0x560 &lt;span class=&quot;error&quot;&gt;&amp;#91;lmv&amp;#93;&lt;/span&gt;&lt;br/&gt;
&amp;lt;0&amp;gt;[  215.947090] Call Trace:^M&lt;br/&gt;
&amp;lt;4&amp;gt;[  215.947143]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa0655b70&amp;gt;&amp;#93;&lt;/span&gt; ll_fill_super+0x1f40/0x4330 &lt;span class=&quot;error&quot;&gt;&amp;#91;lustre&amp;#93;&lt;/span&gt;^M&lt;br/&gt;
&amp;lt;4&amp;gt;[  215.947214]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa02cf527&amp;gt;&amp;#93;&lt;/span&gt; ?&lt;br/&gt;
lustre_start_mgc+0x227/0x2a90 &lt;span class=&quot;error&quot;&gt;&amp;#91;obdclass&amp;#93;&lt;/span&gt;^M&lt;br/&gt;
&amp;lt;4&amp;gt;[  215.947275]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa02d3d60&amp;gt;&amp;#93;&lt;/span&gt; lustre_fill_super+0xa20/0x22f0&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;obdclass&amp;#93;&lt;/span&gt;^M&lt;br/&gt;
&amp;lt;4&amp;gt;[  215.947304]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff810de91f&amp;gt;&amp;#93;&lt;/span&gt; ? set_anon_super+0x0/0xe0^M&lt;br/&gt;
&amp;lt;4&amp;gt;[  215.947361]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa02d3340&amp;gt;&amp;#93;&lt;/span&gt; ? lustre_fill_super+0x0/0x22f0&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;obdclass&amp;#93;&lt;/span&gt;^M&lt;br/&gt;
&amp;lt;4&amp;gt;[  215.947380]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff810df601&amp;gt;&amp;#93;&lt;/span&gt; mount_nodev+0x50/0x84^M&lt;br/&gt;
&amp;lt;4&amp;gt;[  215.947437]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa02cc5d9&amp;gt;&amp;#93;&lt;/span&gt; lustre_mount+0x29/0x30 &lt;span class=&quot;error&quot;&gt;&amp;#91;obdclass&amp;#93;&lt;/span&gt;^M&lt;br/&gt;
&amp;lt;4&amp;gt;[  215.947454]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff810df009&amp;gt;&amp;#93;&lt;/span&gt; vfs_kern_mount+0xa8/0x1f3^M&lt;br/&gt;
&amp;lt;4&amp;gt;[  215.947471]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff810df1bc&amp;gt;&amp;#93;&lt;/span&gt; do_kern_mount+0x4d/0xe1^M&lt;br/&gt;
&amp;lt;4&amp;gt;[  215.947489]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff810f54d7&amp;gt;&amp;#93;&lt;/span&gt; do_mount+0x67d/0x6d5^M&lt;br/&gt;
&amp;lt;4&amp;gt;[  215.947507]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff810f57cc&amp;gt;&amp;#93;&lt;/span&gt; sys_mount+0x84/0xbd^M&lt;br/&gt;
&amp;lt;4&amp;gt;[  215.947527]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff81002aab&amp;gt;&amp;#93;&lt;/span&gt; system_call_fastpath+0x16/0x1b^M&lt;/p&gt;</description>
                <environment>The problem is applied to all platforms but issue was encountered during IOzone test runs with:&lt;br/&gt;
&lt;br/&gt;
* Client: Intel Xeon Phi MPSS 2.1 (mpss_gold_update_3-2.1.6720-16) &lt;br/&gt;
* Server: RHEL 6.3 with OFED 1.5.4.1&lt;br/&gt;
</environment>
        <key id="21384">LU-4098</key>
            <summary>Client kernel crash due to misconfigured MDT</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="wendyc">S. Wendy Cheng</reporter>
                        <labels>
                            <label>Xeon-Phi</label>
                    </labels>
                <created>Sun, 13 Oct 2013 14:08:36 +0000</created>
                <updated>Mon, 24 Feb 2014 19:05:52 +0000</updated>
                            <resolved>Fri, 25 Oct 2013 07:13:37 +0000</resolved>
                                    <version>Lustre 2.5.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                    <fixVersion>Lustre 2.5.1</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="68886" author="wendyc" created="Sun, 13 Oct 2013 14:20:14 +0000"  >&lt;p&gt;Tentative patch:&lt;/p&gt;

&lt;p&gt;diff --git a/lustre/lmv/lmv_obd.c b/lustre/lmv/lmv_obd.c&lt;br/&gt;
index 3091bfb..5f4a18b 100644&lt;br/&gt;
&amp;#8212; a/lustre/lmv/lmv_obd.c&lt;br/&gt;
+++ b/lustre/lmv/lmv_obd.c&lt;br/&gt;
@@ -2443,6 +2443,16 @@ static int lmv_get_info(const struct lu_env&lt;br/&gt;
*env, struct obd_export *exp,&lt;br/&gt;
                         RETURN(rc);&lt;/p&gt;

&lt;p&gt;                /*&lt;br/&gt;
+                * In the case of mis-configured OSS, instead of crashing&lt;br/&gt;
+                * the kernel during client mount, give them a warning and&lt;br/&gt;
+                * gracefully back out mount process w/ -ENXIO error.&lt;br/&gt;
+                */&lt;br/&gt;
+               if (lmv-&amp;gt;tgts&lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt; == NULL)&lt;/p&gt;
{  
+                       CDEBUG(D_IOCTL, &quot;NULL target for MDT0\n&quot;);
+                       RETURN(-ENXIO);
+               }
&lt;p&gt;+&lt;br/&gt;
+               /*&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Forwarding this request to first MDS, it should know LOV&lt;/li&gt;
	&lt;li&gt;desc.&lt;br/&gt;
                 */&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="68887" author="pjones" created="Sun, 13 Oct 2013 14:24:29 +0000"  >&lt;p&gt;Thanks Wendy. Dmitry, could you please comment?&lt;/p&gt;</comment>
                            <comment id="68898" author="dmiter" created="Mon, 14 Oct 2013 10:12:31 +0000"  >&lt;p&gt;Thanks, I also found few places without proper checking. I&apos;m preparing the patch set.&lt;/p&gt;</comment>
                            <comment id="68903" author="dmiter" created="Mon, 14 Oct 2013 13:04:11 +0000"  >&lt;p&gt;Patch set is &lt;a href=&quot;http://review.whamcloud.com/#/c/7941/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7941/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="77597" author="bogl" created="Fri, 21 Feb 2014 14:48:44 +0000"  >&lt;p&gt;backport to b2_5:&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/9347&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/9347&lt;/a&gt;&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_10030" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic/Theme</customfieldname>
                        <customfieldvalues>
                                        <label>Xeon-Phi</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzw5h3:</customfieldvalue>

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