<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:54:03 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-12604] Lustre mdt_file_secctx_unpack() bug</title>
                <link>https://jira.whamcloud.com/browse/LU-12604</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In the latest version of lustre file system, mdt 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;p&gt;&#160;&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;
[  207.996447] Call Trace:
[  207.998174]  [&amp;lt;ffffffffc0fc12d6&amp;gt;] mdt_file_secctx_unpack+0xb6/0x140 [mdt]
[  208.000279]  [&amp;lt;ffffffffc0fc6ecc&amp;gt;] mdt_open_unpack+0x19c/0x410 [mdt]
[  208.002318]  [&amp;lt;ffffffffc0fc71eb&amp;gt;] mdt_reint_unpack+0xab/0x210 [mdt]
[  208.004342]  [&amp;lt;ffffffffc0fb0d23&amp;gt;] mdt_reint_internal+0x43/0xb90 [mdt]
[  208.006379]  [&amp;lt;ffffffffc0fbd8e0&amp;gt;] ? mdt_intent_fixup_resent+0x160/0x220 [mdt]
[  208.008481]  [&amp;lt;ffffffffc0fbda22&amp;gt;] mdt_intent_open+0x82/0x3a0 [mdt]
[  208.010505]  [&amp;lt;ffffffffc0697b49&amp;gt;] ? lprocfs_counter_add+0xf9/0x160 [obdclass]
[  208.012619]  [&amp;lt;ffffffffc0fbb9e4&amp;gt;] mdt_intent_policy+0x2d4/0xdd0 [mdt]
[  208.014675]  [&amp;lt;ffffffffc0fbd9a0&amp;gt;] ? mdt_intent_fixup_resent+0x220/0x220 [mdt]
[  208.016810]  [&amp;lt;ffffffffc08a3c66&amp;gt;] ldlm_lock_enqueue+0x356/0xa20 [ptlrpc]
[  208.018833]  [&amp;lt;ffffffffc052f3d3&amp;gt;] ? cfs_hash_bd_add_locked+0x63/0x80 [libcfs]
[  208.020881]  [&amp;lt;ffffffffc053296e&amp;gt;] ? cfs_hash_add+0xbe/0x1a0 [libcfs]
[  208.022874]  [&amp;lt;ffffffffc08cc587&amp;gt;] ldlm_handle_enqueue0+0xa47/0x15a0 [ptlrpc]
[  208.024948]  [&amp;lt;ffffffffc08f4520&amp;gt;] ? lustre_swab_ldlm_lock_desc+0x30/0x30 [ptlrpc]
[  208.027041]  [&amp;lt;ffffffffc0955082&amp;gt;] tgt_enqueue+0x62/0x210 [ptlrpc]
[  208.028973]  [&amp;lt;ffffffffc095b2ca&amp;gt;] tgt_request_handle+0x91a/0x15c0 [ptlrpc]
[  208.030903]  [&amp;lt;ffffffffc052bfa7&amp;gt;] ? libcfs_debug_msg+0x57/0x80 [libcfs]
[  208.032796]  [&amp;lt;ffffffffc08fe88e&amp;gt;] ptlrpc_server_handle_request+0x24e/0xab0 [ptlrpc]
[  208.034745]  [&amp;lt;ffffffff8eccbadb&amp;gt;] ? __wake_up_common+0x5b/0x90
[  208.036513]  [&amp;lt;ffffffffc0902384&amp;gt;] ptlrpc_main+0xbb4/0x20f0 [ptlrpc]
[  208.038274]  [&amp;lt;ffffffff8ecd08c0&amp;gt;] ? finish_task_switch+0x50/0x1c0
[  208.040036]  [&amp;lt;ffffffffc09017d0&amp;gt;] ? ptlrpc_register_service+0xfa0/0xfa0 [ptlrpc]
[  208.041892]  [&amp;lt;ffffffff8ecc1c71&amp;gt;] kthread+0xd1/0xe0
[  208.043535]  [&amp;lt;ffffffff8ecc1ba0&amp;gt;] ? insert_kthread_work+0x40/0x40
[  208.045284]  [&amp;lt;ffffffff8f375c1d&amp;gt;] ret_from_fork_nospec_begin+0x7/0x21
[  208.047012]  [&amp;lt;ffffffff8ecc1ba0&amp;gt;] ? insert_kthread_work+0x40/0x40
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;In function mdt_file_secctx_unpack(), it don&apos;t check the value of name_size derived from req_capsule_get_size(), and cause a out-of-access bug in strnlen.&lt;/p&gt;

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

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.whamcloud.com/secure/attachment/33301/33301_image-2019-07-29-17-49-02-101.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="56512">LU-12604</key>
            <summary>Lustre mdt_file_secctx_unpack() 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="sebastien">Sebastien Buisson</assignee>
                                    <reporter username="yunye.ry">Alibaba Cloud</reporter>
                        <labels>
                    </labels>
                <created>Mon, 29 Jul 2019 09:48:03 +0000</created>
                <updated>Wed, 18 Sep 2019 12:47:20 +0000</updated>
                            <resolved>Thu, 15 Aug 2019 13:25:18 +0000</resolved>
                                                    <fixVersion>Lustre 2.13.0</fixVersion>
                    <fixVersion>Lustre 2.12.3</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="252289" author="sebastien" created="Tue, 30 Jul 2019 18:45:40 +0000"  >&lt;p&gt;I am looking into this.&lt;/p&gt;

&lt;p&gt;In the meantime, do you have more information coming along with the stack trace? For instance, the exact error message? More importantly, are you able to analyze the crash dump and retrieve the content of the name_size variable? I am wondering how this got corrupted.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                            <comment id="252325" author="gerrit" created="Wed, 31 Jul 2019 16:17:26 +0000"  >&lt;p&gt;Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/35655&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35655&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12604&quot; title=&quot;Lustre mdt_file_secctx_unpack() bug&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12604&quot;&gt;&lt;del&gt;LU-12604&lt;/del&gt;&lt;/a&gt; mdt: check field size of sec context name&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: e1ef6df469e4a72bb45ba1e1087739d87f957d0d&lt;/p&gt;</comment>
                            <comment id="253048" author="gerrit" created="Thu, 15 Aug 2019 07:51:24 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/35655/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35655/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12604&quot; title=&quot;Lustre mdt_file_secctx_unpack() bug&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12604&quot;&gt;&lt;del&gt;LU-12604&lt;/del&gt;&lt;/a&gt; mdt: check field size of sec context name&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 384cd84489c9a7aa3145560002eb7a053cf4b2db&lt;/p&gt;</comment>
                            <comment id="253093" author="pjones" created="Thu, 15 Aug 2019 13:25:18 +0000"  >&lt;p&gt;Landed for 2.13&lt;/p&gt;</comment>
                            <comment id="253456" author="gerrit" created="Thu, 22 Aug 2019 20:35:03 +0000"  >&lt;p&gt;Minh Diep (mdiep@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/35868&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35868&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12604&quot; title=&quot;Lustre mdt_file_secctx_unpack() bug&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12604&quot;&gt;&lt;del&gt;LU-12604&lt;/del&gt;&lt;/a&gt; mdt: check field size of sec context name&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: b3a5740be9e604a9f0e25d30655bab59d6022020&lt;/p&gt;</comment>
                            <comment id="254947" author="gerrit" created="Wed, 18 Sep 2019 04:24:21 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/35868/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35868/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12604&quot; title=&quot;Lustre mdt_file_secctx_unpack() bug&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12604&quot;&gt;&lt;del&gt;LU-12604&lt;/del&gt;&lt;/a&gt; mdt: check field size of sec context name&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 92d09db94d725bb36a81bda6219c4ec9dfd17d0a&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>
                            <attachment id="33301" name="image-2019-07-29-17-49-02-101.png" size="218753" author="yunye.ry" created="Mon, 29 Jul 2019 09:47:55 +0000"/>
                    </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|i00kb3:</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>