<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:54:08 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-12612] Lustre osd_bufs_get() bug</title>
                <link>https://jira.whamcloud.com/browse/LU-12612</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In the latest version of lustre file system, ptlrpc module has a out-of-access bug due to the lack of validation for specific fields of packets sent by client.&lt;/p&gt;

&lt;p&gt;The kernel panic:&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;[  926.531595] BUG: unable to handle kernel paging request at 000000001ebe8010
[  926.533844] IP: [&amp;lt;ffffffffc0826783&amp;gt;] lu_context_key_get+0x13/0x30 [obdclass]
[  926.536063] PGD 8000000424360067 PUD 42865d067 PMD 0 
[  926.538060] Oops: 0000 [#1] SMP 
[  926.539857] Modules linked in: ofd(OE) ost(OE) osp(OE) mdd(OE) lod(OE) mdt(OE) lfsck(OE) mgs(OE) osd_ldiskfs(OE) lquota(OE) ldiskfs(OE) loop lustre(OE) obdecho(OE) mgc(OE) lov(OE) mdc(OE) osc(OE) lmv(OE) fid(OE) fld(OE) ptlrpc(OE) obdclass(OE) crc_t10dif crct10dif_generic ksocklnd(OE) lnet(OE) libcfs(OE) dm_flakey dm_mod nfit libnvdimm iosf_mbi crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul ppdev glue_helper ablk_helper cryptd virtio_balloon joydev parport_pc parport i2c_piix4 pcspkr ip_tables ext4 mbcache jbd2 ata_generic pata_acpi virtio_net virtio_console virtio_blk cirrus drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm crct10dif_pclmul crct10dif_common drm ata_piix libata crc32c_intel serio_raw virtio_pci virtio_ring virtio drm_panel_orientation_quirks floppy
[  926.558093] CPU: 2 PID: 3308 Comm: ll_ost_io00_002 Kdump: loaded Tainted: G           OE  ------------   3.10.0-957.10.1.el7_lustre.x86_64 #1
[  926.562313] Hardware name: Alibaba Cloud Alibaba Cloud ECS, BIOS 3288b3c 04/01/2014
[  926.564575] task: ffff8911ac64b0c0 ti: ffff8911847ec000 task.ti: ffff8911847ec000
[  926.566820] RIP: 0010:[&amp;lt;ffffffffc0826783&amp;gt;]  [&amp;lt;ffffffffc0826783&amp;gt;] lu_context_key_get+0x13/0x30 [obdclass]
[  926.569301] RSP: 0018:ffff8911847ef9e8  EFLAGS: 00010246
[  926.571339] RAX: 0000000000000016 RBX: 0000000000039594 RCX: 000000000000021d
[  926.573536] RDX: 000000000000021d RSI: ffffffffc0f9f180 RDI: 000000001ebe8000
[  926.575719] RBP: ffff8911847efa38 R08: ffff891184040000 R09: 0000000000000001
[  926.577890] R10: 0000000000000001 R11: ffff89118cbdc1a0 R12: 0000000000000000
[  926.580035] R13: ffff891189a48a00 R14: 0000000000000000 R15: ffff891184040000
[  926.582180] FS:  0000000000000000(0000) GS:ffff8911bfd00000(0000) knlGS:0000000000000000
[  926.584424] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  926.586446] CR2: 000000001ebe8010 CR3: 00000004287fe000 CR4: 00000000003606e0
[  926.588588] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  926.590725] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  926.592836] Call Trace:
[  926.594522]  [&amp;lt;ffffffffc0f71cc3&amp;gt;] ? osd_bufs_get+0x203/0x800 [osd_ldiskfs]
[  926.596608]  [&amp;lt;ffffffffc1376af2&amp;gt;] ? ofd_preprw+0x422/0x1160 [ofd]
[  926.598618]  [&amp;lt;ffffffffc0696394&amp;gt;] ? cfs_trace_unlock_tcd+0x34/0x90 [libcfs]
[  926.600681]  [&amp;lt;ffffffffa2966e92&amp;gt;] ? mutex_lock+0x12/0x2f
[  926.602572]  [&amp;lt;ffffffffc069cfa7&amp;gt;] ? libcfs_debug_msg+0x57/0x80 [libcfs]
[  926.604578]  [&amp;lt;ffffffffa22cbadb&amp;gt;] ? __wake_up_common+0x5b/0x90
[  926.606557]  [&amp;lt;ffffffffc0a73384&amp;gt;] ? ptlrpc_main+0xbb4/0x20f0 [ptlrpc]
[  926.608575]  [&amp;lt;ffffffffc0a727d0&amp;gt;] ? ptlrpc_register_service+0xfa0/0xfa0 [ptlrpc]
[  926.610621]  [&amp;lt;ffffffffa22c1ba0&amp;gt;] ? insert_kthread_work+0x40/0x40
[  926.612531] Code: 00 04 00 e8 f0 67 e7 ff 48 c7 c7 00 aa 88 c0 e8 c4 00 e7 ff 0f 1f 40 00 0f 1f 44 00 00 48 63 46 20 48 3b 34 c5 a0 30 8b c0 75 09 &amp;lt;48&amp;gt; 8b 57 10 48 8b 04 c2 c3 55 48 89 e5 e8 aa f9 02 00 90 66 2e 
[  926.618057] RIP  [&amp;lt;ffffffffc0826783&amp;gt;] lu_context_key_get+0x13/0x30 [obdclass]
[  926.620212]  RSP &amp;lt;ffff8911847ef9e8&amp;gt;
[  926.621918] CR2: 000000001ebe8010
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;In function osd_bufs_get() of osd_ldiskfs module, there is no check about the value len, which is derived from the Nio buffer section of the packet sent by client, and cause a out-of-access bug in osd_map_remote_to_local() function.&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;
&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; osd_bufs_get(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_env *env, struct dt_object *dt, loff_t pos, ssize_t len,
                       struct niobuf_local *lnb, &lt;span class=&quot;code-keyword&quot;&gt;enum&lt;/span&gt; dt_bufs_type rw)
{
        :
        osd_map_remote_to_local(pos, len, &amp;amp;npages, lnb); 
        :
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="56527">LU-12612</key>
            <summary>Lustre osd_bufs_get() bug</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="bzzz">Alex Zhuravlev</assignee>
                                    <reporter username="yunye.ry">Alibaba Cloud</reporter>
                        <labels>
                    </labels>
                <created>Tue, 30 Jul 2019 11:15:11 +0000</created>
                <updated>Sat, 28 Sep 2019 06:57:29 +0000</updated>
                            <resolved>Wed, 25 Sep 2019 13:03:19 +0000</resolved>
                                                    <fixVersion>Lustre 2.13.0</fixVersion>
                    <fixVersion>Lustre 2.12.3</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="252345" author="pjones" created="Wed, 31 Jul 2019 17:49:56 +0000"  >&lt;p&gt;Alex&lt;/p&gt;

&lt;p&gt;Could you please investigate?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="252403" author="adilger" created="Thu, 1 Aug 2019 17:48:51 +0000"  >&lt;p&gt;Please add &quot;&lt;tt&gt;Reported-by: Alibaba Cloud &amp;lt;yunye.ry@alibaba-inc.com&amp;gt;&lt;/tt&gt;&quot; to the patch commit message.&lt;/p&gt;</comment>
                            <comment id="253152" author="gerrit" created="Thu, 15 Aug 2019 18:34:42 +0000"  >&lt;p&gt;Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/35801&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35801&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12612&quot; title=&quot;Lustre osd_bufs_get() bug&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12612&quot;&gt;&lt;del&gt;LU-12612&lt;/del&gt;&lt;/a&gt; osd: add lnb size down to osd&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 0d58fc5deb25dcba43d3711f098ad961def64dc4&lt;/p&gt;</comment>
                            <comment id="255227" author="gerrit" created="Mon, 23 Sep 2019 08:20:53 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/35801/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35801/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12612&quot; title=&quot;Lustre osd_bufs_get() bug&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12612&quot;&gt;&lt;del&gt;LU-12612&lt;/del&gt;&lt;/a&gt; osd: add lnb size down to osd&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 8033f80de3d0db87f7e965078ceee62033adb58d&lt;/p&gt;</comment>
                            <comment id="255245" author="pjones" created="Mon, 23 Sep 2019 08:44:12 +0000"  >&lt;p&gt;Landed for 2.13&lt;/p&gt;</comment>
                            <comment id="255247" author="gerrit" created="Mon, 23 Sep 2019 09:13:21 +0000"  >&lt;p&gt;Minh Diep (mdiep@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/36273&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36273&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12612&quot; title=&quot;Lustre osd_bufs_get() bug&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12612&quot;&gt;&lt;del&gt;LU-12612&lt;/del&gt;&lt;/a&gt; osd: add lnb size down to osd&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 8131ddef623bff6f20ea39735337c0bbce670b94&lt;/p&gt;</comment>
                            <comment id="255351" author="adilger" created="Wed, 25 Sep 2019 09:29:53 +0000"  >&lt;p&gt;The new sanityn test_103 is causing intermittent test failures on master since this patch has landed:&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/sub_tests/6e7ab5ca-dbf2-11e9-b62b-52540065bddc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/sub_tests/6e7ab5ca-dbf2-11e9-b62b-52540065bddc&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/sub_tests/5465b1be-dc86-11e9-add9-52540065bddc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/sub_tests/5465b1be-dc86-11e9-add9-52540065bddc&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/sub_tests/7fb92682-de13-11e9-be86-52540065bddc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/sub_tests/7fb92682-de13-11e9-be86-52540065bddc&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/sub_tests/988e7d56-de18-11e9-a197-52540065bddc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/sub_tests/988e7d56-de18-11e9-a197-52540065bddc&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/sub_tests/b8faf26a-de1b-11e9-add9-52540065bddc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/sub_tests/b8faf26a-de1b-11e9-add9-52540065bddc&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/sub_tests/ea74ad9e-de49-11e9-be86-52540065bddc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/sub_tests/ea74ad9e-de49-11e9-be86-52540065bddc&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/sub_tests/b50fb5a0-de5c-11e9-be86-52540065bddc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/sub_tests/b50fb5a0-de5c-11e9-be86-52540065bddc&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/sub_tests/df3dabbc-def6-11e9-be86-52540065bddc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/sub_tests/df3dabbc-def6-11e9-be86-52540065bddc&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/sub_tests/70b6fa24-def9-11e9-9874-52540065bddc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/sub_tests/70b6fa24-def9-11e9-9874-52540065bddc&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/sub_tests/b26d3222-df11-11e9-b62b-52540065bddc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/sub_tests/b26d3222-df11-11e9-b62b-52540065bddc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="255353" author="bzzz" created="Wed, 25 Sep 2019 09:38:11 +0000"  >&lt;p&gt;yes, looking at that.. interesting, it&apos;s only ZFS affected, 7 of 62 runs did hit this.&lt;/p&gt;
</comment>
                            <comment id="255371" author="bzzz" created="Wed, 25 Sep 2019 12:35:15 +0000"  >&lt;p&gt;Andreas, this &lt;a href=&quot;https://testing.whamcloud.com/sub_tests/5465b1be-dc86-11e9-add9-52540065bddc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/sub_tests/5465b1be-dc86-11e9-add9-52540065bddc&lt;/a&gt; happened before &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12612&quot; title=&quot;Lustre osd_bufs_get() bug&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12612&quot;&gt;&lt;del&gt;LU-12612&lt;/del&gt;&lt;/a&gt; landing.&lt;/p&gt;</comment>
                            <comment id="255377" author="adilger" created="Wed, 25 Sep 2019 13:03:19 +0000"  >&lt;p&gt;Sorry, I attributed the failure to the wrong ticket.  I thought that test_103 was introduced by patch &lt;a href=&quot;https://review.whamcloud.com/35801&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35801&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12612&quot; title=&quot;Lustre osd_bufs_get() bug&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12612&quot;&gt;&lt;del&gt;LU-12612&lt;/del&gt;&lt;/a&gt; osd: add lnb size down to osd&lt;/tt&gt;&quot; because I did a &quot;&lt;tt&gt;git log lustre/tests/sanity.sh&lt;/tt&gt;&quot; to find the last commit on that file, but I was looking at the wrong file.&lt;/p&gt;

&lt;p&gt;The actual problem was caused by patch &lt;a href=&quot;https://review.whamcloud.com/33660&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33660&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11670&quot; title=&quot;Incorrect size when using lockahead&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11670&quot;&gt;&lt;del&gt;LU-11670&lt;/del&gt;&lt;/a&gt; osc: glimpse - search for active lock&lt;/tt&gt;&quot;, so I&apos;ll reopen that ticket instead.&lt;/p&gt;</comment>
                            <comment id="255544" author="gerrit" created="Sat, 28 Sep 2019 06:50:14 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/36273/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36273/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12612&quot; title=&quot;Lustre osd_bufs_get() bug&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12612&quot;&gt;&lt;del&gt;LU-12612&lt;/del&gt;&lt;/a&gt; osd: add lnb size down to osd&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: a0680feff23c063cd666a3c912b8f855e64efc7e&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="56513">LU-12605</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|i00kef:</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>