<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:15:51 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-15146] BUG: unable to handle kernel NULL pointer dereference at (null): IP: [&lt;ffffffffc1599a8e&gt;] mdt_lvb2body+0x2e/0xe0 [mdt]</title>
                <link>https://jira.whamcloud.com/browse/LU-15146</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&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;[  572.395773] BUG: unable to handle kernel NULL pointer dereference at           (null)
[  572.405777] IP: [&amp;lt;ffffffffc1599a8e&amp;gt;] mdt_lvb2body+0x2e/0xe0 [mdt]
[  572.413803] PGD 0 
[  572.417222] Oops: 0000 [#1] SMP 
[  572.421988] Modules linked in: osd_ldiskfs(OE) ldiskfs(OE) ost(OE) osp(OE) ofd(OE) mdt(OE) mdd(OE) lod(OE) mgs(OE) mgc(OE) lquota(OE) lfsck(OE) fid(OE) fld(OE) ptlrpc(OE) obdclass(OE) linear raid10 ko2iblnd(OE) lnet(OE) libcfs(OE) ext4 mbcache jbd2 nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack xt_multiport iptable_filter xt_CT nf_conntrack libcrc32c iptable_raw mlx5_ib(OE) mlx5_core(OE) mlxfw rdma_ucm(OE) ib_ucm(OE) ib_uverbs(OE) rdma_cm(OE) iw_cm(OE) ib_umad(OE) ib_ipoib(OE) ib_cm(OE) mlx4_ib(OE) mlx4_en(OE) ib_core(OE) sb_edac intel_powerclamp coretemp intel_rapl iTCO_wdt iosf_mbi iTCO_vendor_support kvm irqbypass crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul mgag200 glue_helper ablk_helper ttm cryptd drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm pcspkr mei_me joydev
[  572.508847]  drm_panel_orientation_quirks i2c_i801 lpc_ich dm_mod mei sg mlx4_core(OE) mlx_compat(OE) devlink wmi acpi_cpufreq ip_tables nfsv3 nfs_acl nfs lockd grace fscache sd_mod crc_t10dif crct10dif_generic team_mode_activebackup team crct10dif_pclmul crct10dif_common igb isci ahci crc32c_intel libsas libahci mpt2sas i2c_algo_bit dca ptp libata raid_class pps_core scsi_transport_sas sunrpc bonding ipmi_si ipmi_devintf ipmi_msghandler
[  572.556084] CPU: 5 PID: 39837 Comm: mdt01_025 Kdump: loaded Tainted: G           OE  ------------   3.10.0-957.1.3957.1.3.x4.4.35.x86_64 #1
[  572.572512] Hardware name: Intel Corporation S2600JF/S2600JF, BIOS SE5C600.86B.02.02.0002.122320131210 12/23/2013
[  572.585206] task: ffff9d6027568000 ti: ffff9d602c57c000 task.ti: ffff9d602c57c000
[  572.594779] RIP: 0010:[&amp;lt;ffffffffc1599a8e&amp;gt;]  [&amp;lt;ffffffffc1599a8e&amp;gt;] mdt_lvb2body+0x2e/0xe0 [mdt]
[  572.605518] RSP: 0018:ffff9d602c57fa30  EFLAGS: 00010202
[  572.612653] RAX: 0000000000000000 RBX: ffff9d60987e9a60 RCX: 0000000000000007
[  572.621813] RDX: 0000000000000000 RSI: ffff9d60987e9a60 RDI: ffff9d6864b29c9c
[  572.630973] RBP: ffff9d602c57fa48 R08: 00000000000000ff R09: 0000000000000000
[  572.640160] R10: 0000000000000051 R11: 000000020001b1b7 R12: ffff9d6864b29c9c
[  572.649289] R13: ffff9d6864b29c80 R14: ffffffffc10f5a10 R15: 0000000000001000
[  572.658407] FS:  0000000000000000(0000) GS:ffff9d609e140000(0000) knlGS:0000000000000000
[  572.668585] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  572.676129] CR2: 0000000000000000 CR3: 00000002b1810000 CR4: 00000000000607e0
[  572.685217] Call Trace:
[  572.689050]  [&amp;lt;ffffffffc159f160&amp;gt;] mdt_glimpse_enqueue+0x1c0/0x4e0 [mdt]
[  572.697530]  [&amp;lt;ffffffffc154a4ef&amp;gt;] mdt_intent_glimpse+0x1f/0x30 [mdt]
[  572.705703]  [&amp;lt;ffffffffc155ba8a&amp;gt;] mdt_intent_opc+0x1ba/0xb50 [mdt]
[  572.713716]  [&amp;lt;ffffffffc1114890&amp;gt;] ? lustre_swab_ldlm_policy_data+0x30/0x30 [ptlrpc]
[  572.723309]  [&amp;lt;ffffffffc154a4d0&amp;gt;] ? mdt_intent_brw+0x30/0x30 [mdt]
[  572.731236]  [&amp;lt;ffffffffc1563bc4&amp;gt;] mdt_intent_policy+0x1a4/0x360 [mdt]
[  572.739449]  [&amp;lt;ffffffffc10c252a&amp;gt;] ldlm_lock_enqueue+0x3da/0xae0 [ptlrpc]
[  572.747934]  [&amp;lt;ffffffffc0cee733&amp;gt;] ? cfs_hash_bd_add_locked+0x63/0x80 [libcfs]
[  572.756895]  [&amp;lt;ffffffffc0cf1ebe&amp;gt;] ? cfs_hash_add+0xbe/0x1a0 [libcfs]
[  572.764980]  [&amp;lt;ffffffffc10eac56&amp;gt;] ldlm_handle_enqueue0+0xa56/0x1610 [ptlrpc]
[  572.773830]  [&amp;lt;ffffffffc1114910&amp;gt;] ? lustre_swab_ldlm_lock_desc+0x30/0x30 [ptlrpc]
[  572.783153]  [&amp;lt;ffffffffc1174cd2&amp;gt;] tgt_enqueue+0x62/0x210 [ptlrpc]
[  572.790907]  [&amp;lt;ffffffffc1179aea&amp;gt;] tgt_request_handle+0x96a/0x1680 [ptlrpc]
[  572.799495]  [&amp;lt;ffffffffc0ceb297&amp;gt;] ? libcfs_debug_msg+0x57/0x80 [libcfs]
[  572.807799]  [&amp;lt;ffffffffc111fae6&amp;gt;] ptlrpc_server_handle_request+0x256/0xb10 [ptlrpc]
[  572.817246]  [&amp;lt;ffffffffc11237ba&amp;gt;] ptlrpc_main+0xcca/0x1ca0 [ptlrpc]
[  572.825135]  [&amp;lt;ffffffffc1122af0&amp;gt;] ? ptlrpc_register_service+0x1010/0x1010 [ptlrpc]
[  572.834463]  [&amp;lt;ffffffff846c1f81&amp;gt;] kthread+0xd1/0xe0
[  572.840771]  [&amp;lt;ffffffff846c1eb0&amp;gt;] ? insert_kthread_work+0x40/0x40
[  572.848425]  [&amp;lt;ffffffff84d77c1d&amp;gt;] ret_from_fork_nospec_begin+0x7/0x21
[  572.856463]  [&amp;lt;ffffffff846c1eb0&amp;gt;] ? insert_kthread_work+0x40/0x40
[  572.864106] Code: 66 90 55 48 89 e5 41 55 49 89 fd 41 54 4c 8d 67 1c 53 4c 89 e7 48 89 f3 e8 b0 3d 7d c3 49 8b 95 b0 00 00 00 f6 05 cc 3c 77 ff 01 &amp;lt;48&amp;gt; 8b 02 48 89 83 b0 00 00 00 48 8b 42 20 48 89 83 b8 00 00 00 
[  572.887642] RIP  [&amp;lt;ffffffffc1599a8e&amp;gt;] mdt_lvb2body+0x2e/0xe0 [mdt]
[  572.895468]  RSP &amp;lt;ffff9d602c57fa30&amp;gt;
[  572.900227] CR2: 0000000000000000
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The reason for the crash is that mdt_dom_lvbo_update() may skip LVB allocation&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;
        /* Before going further let&apos;s check that OBD and export are healthy.
         */
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (exp != NULL &amp;amp;&amp;amp;
            (exp-&amp;gt;exp_disconnected || exp-&amp;gt;exp_failed ||
             exp-&amp;gt;exp_obd-&amp;gt;obd_stopping)) {
                CDEBUG(D_INFO, &lt;span class=&quot;code-quote&quot;&gt;&quot;Skip LVB update, export is %s, obd is %s\n&quot;&lt;/span&gt;,
                       exp-&amp;gt;exp_failed ? &lt;span class=&quot;code-quote&quot;&gt;&quot;failed&quot;&lt;/span&gt; : &lt;span class=&quot;code-quote&quot;&gt;&quot;disconnected&quot;&lt;/span&gt;,
                       exp-&amp;gt;exp_obd-&amp;gt;obd_stopping ? &lt;span class=&quot;code-quote&quot;&gt;&quot;stopping&quot;&lt;/span&gt; : &lt;span class=&quot;code-quote&quot;&gt;&quot;OK&quot;&lt;/span&gt;);
                RETURN(0);
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;and mdt_lvb2reply() deferences NULL pointer:&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;
       lock_res(res);
        res_lvb = res-&amp;gt;lr_lvb_data;
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (lvb)
                *lvb = *res_lvb;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="66792">LU-15146</key>
            <summary>BUG: unable to handle kernel NULL pointer dereference at (null): IP: [&lt;ffffffffc1599a8e&gt;] mdt_lvb2body+0x2e/0xe0 [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="zam">Alexander Zarochentsev</assignee>
                                    <reporter username="zam">Alexander Zarochentsev</reporter>
                        <labels>
                    </labels>
                <created>Fri, 22 Oct 2021 15:17:22 +0000</created>
                <updated>Wed, 22 Mar 2023 17:45:43 +0000</updated>
                            <resolved>Wed, 3 Nov 2021 03:32:34 +0000</resolved>
                                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="316332" author="gerrit" created="Fri, 22 Oct 2021 15:29:35 +0000"  >&lt;p&gt;&quot;Alexander Zarochentsev &amp;lt;alexander.zarochentsev@hpe.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/45334&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45334&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15146&quot; title=&quot;BUG: unable to handle kernel NULL pointer dereference at (null): IP: [&amp;lt;ffffffffc1599a8e&amp;gt;] mdt_lvb2body+0x2e/0xe0 [mdt]&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15146&quot;&gt;&lt;del&gt;LU-15146&lt;/del&gt;&lt;/a&gt; mdt: mdt_lvb2reply crash fix&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: e8d2eb4b174ebe2c015b6a39cf5b367c771efba5&lt;/p&gt;</comment>
                            <comment id="317281" author="gerrit" created="Wed, 3 Nov 2021 02:37:41 +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/45334/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45334/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15146&quot; title=&quot;BUG: unable to handle kernel NULL pointer dereference at (null): IP: [&amp;lt;ffffffffc1599a8e&amp;gt;] mdt_lvb2body+0x2e/0xe0 [mdt]&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15146&quot;&gt;&lt;del&gt;LU-15146&lt;/del&gt;&lt;/a&gt; mdt: mdt_lvb2reply crash fix&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 01703bd2d523a86a3b0858515ca5993cef3c5303&lt;/p&gt;</comment>
                            <comment id="317308" author="pjones" created="Wed, 3 Nov 2021 03:32:34 +0000"  >&lt;p&gt;Landed for 2.15&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|i02847:</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>