<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:46:54 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-11785] conf-sanity test_98 fails with &apos;Buffer overflow check failed&apos;</title>
                <link>https://jira.whamcloud.com/browse/LU-11785</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;conf-sanity test_98 fails with &apos;Buffer overflow check failed&apos; since October 26, 2018. So far, this test is only failing with this error for ARM architecture testing.&lt;/p&gt;

&lt;p&gt;Looking at the logs of a recent failure, &lt;a href=&quot;https://testing.whamcloud.com/test_sets/f2d62dae-fdef-11e8-b837-52540065bddc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/f2d62dae-fdef-11e8-b837-52540065bddc&lt;/a&gt; , the last lines of test output in the client test_log are&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;Started lustre-OST0000
mount lustre on /mnt/lustre.....
Starting client: trevis-79vm11.trevis.whamcloud.com:  -o user_xattr,flock trevis-24vm4@tcp:/lustre /mnt/lustre
CMD: trevis-79vm11.trevis.whamcloud.com mkdir -p /mnt/lustre
CMD: trevis-79vm11.trevis.whamcloud.com mount -t lustre -o user_xattr,flock trevis-24vm4@tcp:/lustre /mnt/lustre
CMD: trevis-79vm11.trevis.whamcloud.com cp /etc/passwd /mnt/lustre/a
CMD: trevis-79vm11.trevis.whamcloud.com rm /mnt/lustre/a
CMD: trevis-79vm11.trevis.whamcloud.com grep /mnt/lustre&apos; &apos; /proc/mounts &amp;gt; /dev/null
setup single mount lustre success
 conf-sanity test_98: @@@@@@ FAIL: Buffer overflow check failed
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The test is fairly simple&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;
7230 test_98()
7231 {
7232         local mountopt
7233         local temp=$MDS_MOUNT_OPTS
7234 
7235         setup
7236         check_mount || error &lt;span class=&quot;code-quote&quot;&gt;&quot;mount failed&quot;&lt;/span&gt;
7237         mountopt=&lt;span class=&quot;code-quote&quot;&gt;&quot;user_xattr&quot;&lt;/span&gt;
7238         &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ((x = 1; x &amp;lt;= 400; x++)); &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt;
7239                 mountopt=&lt;span class=&quot;code-quote&quot;&gt;&quot;$mountopt,user_xattr&quot;&lt;/span&gt;
7240         done
7241         remount_client $mountopt $MOUNT  2&amp;gt;&amp;amp;1 | grep &lt;span class=&quot;code-quote&quot;&gt;&quot;too &lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt;&quot;&lt;/span&gt; ||
7242                 error &lt;span class=&quot;code-quote&quot;&gt;&quot;Buffer overflow check failed&quot;&lt;/span&gt;
7243         cleanup || error &lt;span class=&quot;code-quote&quot;&gt;&quot;cleanup failed&quot;&lt;/span&gt;
7244 }
7245 run_test 98 &lt;span class=&quot;code-quote&quot;&gt;&quot;Buffer-overflow check &lt;span class=&quot;code-keyword&quot;&gt;while&lt;/span&gt; parsing mount_opts&quot;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In the console log of client 1 (vm11), we see the long mount option&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;[45496.444538] Lustre: DEBUG MARKER: mount -t lustre -o remount,user_xattr,user_xattr,user_xattr,user_xattr,user_xattr,user_xattr,user_xattr,user_xattr,user_xattr,user_xattr,user_xattr,user_xattr,user_xattr,user_xattr,user_xattr,user_xattr,user_xattr,user_xattr,user_xattr,user_xattr,user_xat
[45497.132159] Lustre: DEBUG MARKER: /usr/sbin/lctl mark  conf-sanity test_98: @@@@@@ FAIL: Buffer overflow check failed 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;but there are no obvious errors in the console logs. &lt;/p&gt;

&lt;p&gt;Logs for other failures are at&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sets/8ca4b49e-d9d0-11e8-b46b-52540065bddc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/8ca4b49e-d9d0-11e8-b46b-52540065bddc&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sets/876f284e-df5f-11e8-a871-52540065bddc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/876f284e-df5f-11e8-a871-52540065bddc&lt;/a&gt; &lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sets/e7d91f16-f7a9-11e8-86c0-52540065bddc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/e7d91f16-f7a9-11e8-86c0-52540065bddc&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="54308">LU-11785</key>
            <summary>conf-sanity test_98 fails with &apos;Buffer overflow check failed&apos;</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</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="kevin.zhao">Kevin Zhao</assignee>
                                    <reporter username="jamesanunez">James Nunez</reporter>
                        <labels>
                            <label>arm</label>
                            <label>ppc</label>
                    </labels>
                <created>Fri, 14 Dec 2018 23:57:22 +0000</created>
                <updated>Wed, 2 Aug 2023 12:54:24 +0000</updated>
                            <resolved>Tue, 11 Apr 2023 21:50:53 +0000</resolved>
                                    <version>Lustre 2.12.0</version>
                    <version>Lustre 2.13.0</version>
                    <version>Lustre 2.12.2</version>
                    <version>Lustre 2.12.3</version>
                    <version>Lustre 2.14.0</version>
                    <version>Lustre 2.12.4</version>
                    <version>Lustre 2.12.5</version>
                    <version>Lustre 2.15.0</version>
                    <version>Lustre 2.15.3</version>
                                    <fixVersion>Lustre 2.16.0</fixVersion>
                    <fixVersion>Lustre 2.15.4</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>10</watches>
                                                                            <comments>
                            <comment id="238690" author="pjones" created="Mon, 17 Dec 2018 18:40:20 +0000"  >&lt;p&gt;Jian&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="337750" author="simmonsja" created="Tue, 14 Jun 2022 18:42:00 +0000"  >&lt;p&gt;Is this still true?&lt;/p&gt;</comment>
                            <comment id="341452" author="kevin.zhao" created="Mon, 25 Jul 2022 15:07:50 +0000"  >&lt;p&gt;Still fail in our test infra: &lt;a href=&quot;https://testing.whamcloud.com/sub_tests/85914d66-28c0-4eee-9b38-5b4156a49dd4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/sub_tests/85914d66-28c0-4eee-9b38-5b4156a49dd4&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;will work on&#160; a fix&lt;/p&gt;</comment>
                            <comment id="341483" author="yujian" created="Mon, 25 Jul 2022 17:25:34 +0000"  >&lt;p&gt;Thank you, Kevin.&lt;/p&gt;</comment>
                            <comment id="350911" author="adilger" created="Thu, 27 Oct 2022 00:24:56 +0000"  >&lt;p&gt;It looks like the test itself will always fail for &lt;tt&gt;PAGE_SIZE=65536&lt;/tt&gt; (&lt;tt&gt;aarch64&lt;/tt&gt; and &lt;tt&gt;ppcle64&lt;/tt&gt;) because the test is trying to create a &quot;too long&quot; mount option string using 400 times &quot;&lt;tt&gt;,user_xattr&lt;/tt&gt;&quot;.  That is 400x11=4400 bytes, which is only long enough to cause a failure on x86 with &lt;tt&gt;PAGE_SIZE=4096&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;The test can trivially be updated to run the loop longer when needed:&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;for&lt;/span&gt; ((x = 0; x &amp;lt;= PAGE_SIZE/11; x++)); &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt;
                 mountopt=&lt;span class=&quot;code-quote&quot;&gt;&quot;$mountopt,user_xattr&quot;&lt;/span&gt;
        done
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="351016" author="adilger" created="Thu, 27 Oct 2022 19:45:19 +0000"  >&lt;blockquote&gt;
&lt;p&gt;The test can trivially be updated to run the loop longer when needed:&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;for&lt;/span&gt; ((x = 0; x &amp;lt;= PAGE_SIZE/11; x++)); &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt;
                 mountopt=&lt;span class=&quot;code-quote&quot;&gt;&quot;$mountopt,user_xattr&quot;&lt;/span&gt;
        done
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=kevin.zhao&quot; class=&quot;user-hover&quot; rel=&quot;kevin.zhao&quot;&gt;kevin.zhao&lt;/a&gt; or &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=xinliang&quot; class=&quot;user-hover&quot; rel=&quot;xinliang&quot;&gt;xinliang&lt;/a&gt;,  any chance you can submit the trivial patch to fix this, and verify it passes on aarch64?&lt;/p&gt;</comment>
                            <comment id="351052" author="kevin.zhao" created="Fri, 28 Oct 2022 01:39:29 +0000"  >&lt;p&gt;Hi Andreas,&lt;/p&gt;

&lt;p&gt;Thanks for the comment, I will submit the trivial fix.&lt;/p&gt;</comment>
                            <comment id="351069" author="adilger" created="Fri, 28 Oct 2022 07:33:55 +0000"  >&lt;p&gt;Strange. There was an existing patch for this ticket from Kevin, but it was not linked here. &lt;/p&gt;</comment>
                            <comment id="351070" author="adilger" created="Fri, 28 Oct 2022 07:39:19 +0000"  >&lt;p&gt;&quot;Kevin Zhao &amp;lt;kevin.zhao@linaro.org&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/48177&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/48177&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11785&quot; title=&quot;conf-sanity test_98 fails with &amp;#39;Buffer overflow check failed&amp;#39;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11785&quot;&gt;&lt;del&gt;LU-11785&lt;/del&gt;&lt;/a&gt; tests: fix conf-sanity/98 mount check on 64K page&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 6&lt;br/&gt;
Commit: 2dcbc53a685c12824de020d6b4567360ef996f90&lt;/p&gt;</comment>
                            <comment id="351223" author="xinliang" created="Mon, 31 Oct 2022 03:48:12 +0000"  >&lt;p&gt;Verified that the fix make conf-sanity test_98 pass in aarch64 one node test environment. Thanks &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=adilger&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;Andreas Dilger&lt;/a&gt; and Kevin for posting the fix.&lt;/p&gt;</comment>
                            <comment id="369123" author="gerrit" created="Tue, 11 Apr 2023 20:05:17 +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/c/fs/lustre-release/+/48177/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/48177/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11785&quot; title=&quot;conf-sanity test_98 fails with &amp;#39;Buffer overflow check failed&amp;#39;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11785&quot;&gt;&lt;del&gt;LU-11785&lt;/del&gt;&lt;/a&gt; tests: fix conf-sanity/98 mount check on 64K page&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 4068ca725954db2a1fc42bf8d184f4672c2ed113&lt;/p&gt;</comment>
                            <comment id="369160" author="pjones" created="Tue, 11 Apr 2023 21:50:53 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                            <comment id="375152" author="gerrit" created="Mon, 12 Jun 2023 22:35:18 +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/c/fs/lustre-release/+/51288&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51288&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11785&quot; title=&quot;conf-sanity test_98 fails with &amp;#39;Buffer overflow check failed&amp;#39;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11785&quot;&gt;&lt;del&gt;LU-11785&lt;/del&gt;&lt;/a&gt; tests: fix conf-sanity/98 mount check on 64K page&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: dc6dffbd28e7ac81f279ebfeb80531444e5425c5&lt;/p&gt;</comment>
                            <comment id="381015" author="gerrit" created="Wed, 2 Aug 2023 06:16:39 +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/c/fs/lustre-release/+/51288/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51288/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11785&quot; title=&quot;conf-sanity test_98 fails with &amp;#39;Buffer overflow check failed&amp;#39;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11785&quot;&gt;&lt;del&gt;LU-11785&lt;/del&gt;&lt;/a&gt; tests: fix conf-sanity/98 mount check on 64K page&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 3e9a06398a168a52f72a65450e5249ed502a86cd&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="35602">LU-7919</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="49488">LU-10300</issuekey>
        </issuelink>
                            </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|i0083z:</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>