<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:18:57 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-15513] crash in lod_fill_mirrors() with sparse OSTs + PFL</title>
                <link>https://jira.whamcloud.com/browse/LU-15513</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;MDS can crash in &lt;tt&gt;lod_fill_mirrors()&lt;/tt&gt; if a default PFL layout is set on a directory, and the filesystem has sparse OST indices:&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;BUG: unable to handle kernel NULL pointer dereference at 00000000000000e8
IP: [&amp;lt;ffffffffc17a0e6e&amp;gt;] lod_fill_mirrors+0x17e/0x490 [lod]
Oops: 0000 [#1] SMP 
CPU: 8 PID: 16061 Comm: mdt02_001 Kdump: loaded 3.10.0-1160.49.1.el7_lustre.x86_64 #1
Call Trace:
 lod_striped_create+0x3d7/0x690 [lod]
 lod_layout_change+0x3f/0x50 [lod]
 mdd_layout_change+0xaea/0xef0 [mdd]
 mdt_layout_change+0x2df/0x480 [mdt]
 mdt_intent_layout+0x8a0/0xe00 [mdt]
 mdt_intent_policy+0x435/0xd80 [mdt]
 ldlm_lock_enqueue+0x376/0x9b0 [ptlrpc]
 ldlm_handle_enqueue0+0xaa6/0x1630 [ptlrpc]
 tgt_enqueue+0x62/0x210 [ptlrpc]
 tgt_request_handle+0xaee/0x15f0 [ptlrpc]
 ptlrpc_server_handle_request+0x24b/0xab0 [ptlrpc]
 ptlrpc_main+0xb34/0x1470 [ptlrpc]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This results in the &lt;tt&gt;lod_tgt_osts[]&lt;/tt&gt; array being sparse and have NULL pointers that are accessed when checking for non-rotational OSTs.&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;
(gdb) list *(lod_fill_mirrors+0x17e)
0xfe9e is in lod_fill_mirrors (/usr/src/lustre-exa-52/lustre/lod/lod_lov.c:768).
757             &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; (i = 0; i &amp;lt; lo-&amp;gt;ldo_comp_cnt; i++, lod_comp++) {
758                     &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; stale = !!(lod_comp-&amp;gt;llc_flags &amp;amp; LCME_FL_STALE);
759                     &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; preferred = !!(lod_comp-&amp;gt;llc_flags &amp;amp; LCME_FL_PREF_WR);
760                     &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; j;
761
762                     pref = 0;
763                     &lt;span class=&quot;code-comment&quot;&gt;/* calculate component preference over all used OSTs */&lt;/span&gt;
764                     &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; (j = 0; j &amp;lt; lod_comp-&amp;gt;llc_stripes_allocated; j++) {
765                             &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; idx = lod_comp-&amp;gt;llc_ost_indices[j];
766                             struct obd_statfs *osfs = &amp;amp;OST_TGT(lod,idx)-&amp;gt;ltd_statfs;
767
768                             &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (osfs-&amp;gt;os_state &amp;amp; OS_STATE_NONROT)
769                                     pref++;
770                     }
771
772                     &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (mirror_id_of(lod_comp-&amp;gt;llc_id) == mirror_id) {
(gdb) p &amp;amp;((struct lod_tgt_desc *)0)-&amp;gt;ltd_statfs + &amp;amp;((struct obd_statfs *)0)-&amp;gt;os_state
$1 = 0xe8
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="68466">LU-15513</key>
            <summary>crash in lod_fill_mirrors() with sparse OSTs + PFL</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="bobijam">Zhenyu Xu</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Wed, 2 Feb 2022 22:08:37 +0000</created>
                <updated>Mon, 27 Jun 2022 15:43:38 +0000</updated>
                            <resolved>Mon, 27 Jun 2022 15:43:38 +0000</resolved>
                                    <version>Lustre 2.15.0</version>
                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                            <comments>
                            <comment id="325023" author="gerrit" created="Wed, 2 Feb 2022 22:56:13 +0000"  >&lt;p&gt;&quot;Andreas Dilger &amp;lt;adilger@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/46435&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46435&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15513&quot; title=&quot;crash in lod_fill_mirrors() with sparse OSTs + PFL&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15513&quot;&gt;&lt;del&gt;LU-15513&lt;/del&gt;&lt;/a&gt; lod: skip uninit component in lod_fill_mirror&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 649af2fdc2ce23ecec4bf9379397267a37afe1b2&lt;/p&gt;</comment>
                            <comment id="328204" author="gerrit" created="Sat, 5 Mar 2022 20:43:13 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/46435/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46435/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15513&quot; title=&quot;crash in lod_fill_mirrors() with sparse OSTs + PFL&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15513&quot;&gt;&lt;del&gt;LU-15513&lt;/del&gt;&lt;/a&gt; lod: skip uninit component in lod_fill_mirrors&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 591a990c617f9b953d2e838427d45fa1de061a83&lt;/p&gt;</comment>
                            <comment id="328210" author="pjones" created="Sat, 5 Mar 2022 21:04:00 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                            <comment id="330588" author="green" created="Wed, 30 Mar 2022 06:10:40 +0000"  >&lt;p&gt;Looks like this is not really fixed.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;With this patch included I hit it twice in the boilpot still in conf-sanity test 56a:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://testing.linuxhacker.ru/lustre-reports/external/crashes/boilpot-bigmem-24-2022-03-29-05:55:42/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://testing.linuxhacker.ru/lustre-reports/external/crashes/boilpot-bigmem-24-2022-03-29-05:55:42/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://testing.linuxhacker.ru/lustre-reports/external/crashes/boilpot-bigmem-99-2022-03-29-13:45:45/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://testing.linuxhacker.ru/lustre-reports/external/crashes/boilpot-bigmem-99-2022-03-29-13:45:45/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="331594" author="gerrit" created="Mon, 11 Apr 2022 08:57:54 +0000"  >&lt;p&gt;&quot;Bobi Jam &amp;lt;bobijam@hotmail.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/47028&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47028&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15513&quot; title=&quot;crash in lod_fill_mirrors() with sparse OSTs + PFL&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15513&quot;&gt;&lt;del&gt;LU-15513&lt;/del&gt;&lt;/a&gt; lod: iterate initialized stripe&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 82ea8ec26e72f4edd7efbbb53a66716a5ac3845f&lt;/p&gt;</comment>
                            <comment id="332552" author="bobijam" created="Thu, 21 Apr 2022 15:00:00 +0000"  >&lt;p&gt;Oleg,&lt;/p&gt;

&lt;p&gt;Can you re-hit consistently? I tried to reproduce the issue for a test case, but haven&apos;t made it (cannot rehit it in conf-sanity test_56a as well).&lt;/p&gt;</comment>
                            <comment id="337365" author="green" created="Sat, 11 Jun 2022 03:04:09 +0000"  >&lt;p&gt;yes, this hits reliably in boilpot on b2_15 and master. you can see ongoing master hits here (with crashdumps and all) : &lt;a href=&quot;https://knox.linuxhacker.ru/crashdb_ui_external.py.cgi?newid=67460&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://knox.linuxhacker.ru/crashdb_ui_external.py.cgi?newid=67460&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;but b2_15 are matching againstexisting bugreport so are not collected.&lt;/p&gt;</comment>
                            <comment id="338840" author="gerrit" created="Mon, 27 Jun 2022 04:37:49 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/47028/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47028/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15513&quot; title=&quot;crash in lod_fill_mirrors() with sparse OSTs + PFL&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15513&quot;&gt;&lt;del&gt;LU-15513&lt;/del&gt;&lt;/a&gt; lod: iterate initialized stripe&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 20318e34907d90d76759aee6f0cd609640bbb5aa&lt;/p&gt;</comment>
                            <comment id="338906" author="pjones" created="Mon, 27 Jun 2022 15:43:38 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="65974">LU-14996</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </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|i02h47:</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>