<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:46:06 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-11691] lfs getstripe buffer overflows with very large stripe counts</title>
                <link>https://jira.whamcloud.com/browse/LU-11691</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When doing lfs getstripe on very large stripe counts (1000+), it sometimes gets various pointer errors.&#160; I&apos;m having a little trouble pinning these down, as they go away if lfs getstripe is run again at the same stripe count (I suspect we&apos;re seeing something like glibc allocating a larger block of memory and then us not running off the end of it again - I can&apos;t come up with another reason why this would happen).&lt;/p&gt;

&lt;p&gt;I&apos;m opening this bug partly to track these, I will try to update with more details once I can reliably reproduce the problem.&lt;/p&gt;

&lt;p&gt;getstripe doesn&apos;t crash at anything under ~1000 stripes, but valgrind reports memory access errors starting at a few hundred stripes.&lt;/p&gt;

&lt;p&gt;This problem is not especially serious (if anyone were using counts this high, they would&apos;ve reported it ages ago), and I should be able to create a patch.&#160; Just not quite yet.&lt;/p&gt;

&lt;p&gt;Here&apos;s some sample valgrind output for getstripe of 200 stripes.&#160; I haven&apos;t dug in to the details yet, it may be straightforward to fix:&lt;/p&gt;

&lt;p&gt;0 96 0x60 0&lt;br/&gt;
==29383== Invalid read of size 4&lt;br/&gt;
==29383== at 0x4E4343C: lov_dump_user_lmm_v1v3 (liblustreapi.c:2723)&lt;br/&gt;
==29383== by 0x4E44B21: lov_dump_plain_user_lmm (liblustreapi.c:3473)&lt;br/&gt;
==29383== by 0x4E44B21: llapi_lov_dump_user_lmm (liblustreapi.c:3512)&lt;br/&gt;
==29383== by 0x4E44B21: cb_getstripe (liblustreapi.c:4731)&lt;br/&gt;
==29383== by 0x4E3E5C6: llapi_semantic_traverse.constprop.29 (liblustreapi.c:1877)&lt;br/&gt;
==29383== by 0x4E3EDEC: param_callback (liblustreapi.c:1975)&lt;br/&gt;
==29383== by 0x40F9E2: lfs_getstripe_internal (lfs.c:4507)&lt;br/&gt;
==29383== by 0x40F9E2: lfs_getstripe (lfs.c:4559)&lt;br/&gt;
==29383== by 0x4E4F2F0: Parser_execarg (parser.c:115)&lt;br/&gt;
==29383== by 0x40433D: main (lfs.c:9583)&lt;br/&gt;
==29383== Address 0x618751c is 11 bytes after a block of size 4,241 alloc&apos;d&lt;br/&gt;
==29383== at 0x4C2A9B5: calloc (vg_replace_malloc.c:711)&lt;br/&gt;
==29383== by 0x4E3ED6A: common_param_init (liblustreapi.c:1654)&lt;br/&gt;
==29383== by 0x4E3ED6A: param_callback (liblustreapi.c:1969)&lt;br/&gt;
==29383== by 0x40F9E2: lfs_getstripe_internal (lfs.c:4507)&lt;br/&gt;
==29383== by 0x40F9E2: lfs_getstripe (lfs.c:4559)&lt;br/&gt;
==29383== by 0x4E4F2F0: Parser_execarg (parser.c:115)&lt;br/&gt;
==29383== by 0x40433D: main (lfs.c:9583)&lt;br/&gt;
==29383==&lt;br/&gt;
==29383== Conditional jump or move depends on uninitialised value(s)&lt;br/&gt;
==29383== at 0x4E43444: ostid_id (lustre_ostid.h:101)&lt;br/&gt;
==29383== by 0x4E43444: lov_dump_user_lmm_v1v3 (liblustreapi.c:2724)&lt;br/&gt;
==29383== by 0x4E44B21: lov_dump_plain_user_lmm (liblustreapi.c:3473)&lt;br/&gt;
==29383== by 0x4E44B21: llapi_lov_dump_user_lmm (liblustreapi.c:3512)&lt;br/&gt;
==29383== by 0x4E44B21: cb_getstripe (liblustreapi.c:4731)&lt;br/&gt;
==29383== by 0x4E3E5C6: llapi_semantic_traverse.constprop.29 (liblustreapi.c:1877)&lt;br/&gt;
==29383== by 0x4E3EDEC: param_callback (liblustreapi.c:1975)&lt;br/&gt;
==29383== by 0x40F9E2: lfs_getstripe_internal (lfs.c:4507)&lt;br/&gt;
==29383== by 0x40F9E2: lfs_getstripe (lfs.c:4559)&lt;br/&gt;
==29383== by 0x4E4F2F0: Parser_execarg (parser.c:115)&lt;br/&gt;
==29383== by 0x40433D: main (lfs.c:9583)&lt;br/&gt;
==29383==&lt;/p&gt;</description>
                <environment></environment>
        <key id="54090">LU-11691</key>
            <summary>lfs getstripe buffer overflows with very large stripe counts</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="paf">Patrick Farrell</assignee>
                                    <reporter username="paf">Patrick Farrell</reporter>
                        <labels>
                    </labels>
                <created>Thu, 22 Nov 2018 03:13:33 +0000</created>
                <updated>Tue, 30 Apr 2019 12:58:42 +0000</updated>
                            <resolved>Tue, 30 Apr 2019 12:58:42 +0000</resolved>
                                                    <fixVersion>Lustre 2.13.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="239202" author="gerrit" created="Sat, 29 Dec 2018 03:52:18 +0000"  >&lt;p&gt;Patrick Farrell (paf@cray.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/33941&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33941&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11691&quot; title=&quot;lfs getstripe buffer overflows with very large stripe counts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11691&quot;&gt;&lt;del&gt;LU-11691&lt;/del&gt;&lt;/a&gt; llapi: PFL layout size limit&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: f6c351b0113adc1531a6f49fb7fe8c5500e4573e&lt;/p&gt;</comment>
                            <comment id="241251" author="gerrit" created="Sun, 3 Feb 2019 19:12:13 +0000"  >&lt;p&gt;Patrick Farrell (pfarrell@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/34171&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34171&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11691&quot; title=&quot;lfs getstripe buffer overflows with very large stripe counts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11691&quot;&gt;&lt;del&gt;LU-11691&lt;/del&gt;&lt;/a&gt; lov: Limit layout size to max ea size&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 4352c7a6fb52533f6135bf6056bfda15e0caed81&lt;/p&gt;</comment>
                            <comment id="246486" author="gerrit" created="Tue, 30 Apr 2019 03:36:34 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/34171/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34171/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11691&quot; title=&quot;lfs getstripe buffer overflows with very large stripe counts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11691&quot;&gt;&lt;del&gt;LU-11691&lt;/del&gt;&lt;/a&gt; lov: Limit layout size to max ea size&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: aa72de32ba76943d9c96a962a0eb6b5503fad7a6&lt;/p&gt;</comment>
                            <comment id="246519" author="pjones" created="Tue, 30 Apr 2019 12:58:42 +0000"  >&lt;p&gt;Landed for 2.13&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|i006rz:</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>