<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:20:52 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-1923] filefrag with large fiemap buffer crashes client</title>
                <link>https://jira.whamcloud.com/browse/LU-1923</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;BUG: unable to handle kernel NULL pointer dereference at (null)
IP [&amp;lt;ffffffffa0d67265&amp;gt;] lov_get_info+0xc75/0x1b90 [lov]
Pid: 12793, comm: filefrag Tainted: P           ---------------    2.6.32-279.5.1.el6_lustre.g7f15218.x86_64 #1
RIP: 0010:[&amp;lt;ffffffffa0d67265&amp;gt;] [&amp;lt;ffffffffa0d67265&amp;gt;] lov_get_info+0xc75/0x1b90 [lov]
RSP: 0018:ffff8800a0c33ba8  EFLAGS: 00010213
RAX: 0000000000000007 RBX: ffff8800aafe4138 RCX: ffff8800a0c33d08
RDX: 0000000000000000 RSI: ffff8800a0c33b6c RDI: 0000000000000000
RBP: ffff8800a0c33cc8 R08: ffff8800a0c33c88 R09: ffff8800a0c33c80
R10: 000000000023efff R11: 0000000000000048 R12: 0000000000000000
R13: ffff8800a91cf000 R14: ffff8800a8825000 R15: ffff8800b26288c0
FS:  00007f0cd1c72700(0000) GS:ffff880002200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000950da000 CR4: 00000000000006f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process filefrag (pid: 12793, threadinfo ffff8800a0c32000, task ffff8800d8f9eaa0)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The address resolves to:&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;(gdb) list *(lov_get_info+0xc75)
0x13295 is in lov_get_info (/usr/src/lustre-head/lustre/lov/lov_obd.c:2458).
2453                            req_fm_len = fm_local-&amp;gt;fm_length;
2454                            fm_local-&amp;gt;fm_extent_count = count_local;
2455                            fm_local-&amp;gt;fm_mapped_extents = 0;
2456                            fm_local-&amp;gt;fm_flags = fiemap-&amp;gt;fm_flags;
2457
2458                            fm_key-&amp;gt;oa.o_id = lsm-&amp;gt;lsm_oinfo[cur_stripe]-&amp;gt;loi_id;
2459                            fm_key-&amp;gt;oa.o_seq = lsm-&amp;gt;lsm_oinfo[cur_stripe]-&amp;gt;loi_seq;
2460                            ost_index = lsm-&amp;gt;lsm_oinfo[cur_stripe]-&amp;gt;loi_ost_idx;
2461
2462                            if (ost_index &amp;lt; 0 || ost_index &amp;gt;=lov-&amp;gt;desc.ld_tgt_count)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I suspect cur_stripe is out of bounds or something due to bad user input to the ioctl.&lt;/p&gt;

&lt;p&gt;It shouldn&apos;t be possible for userspace to cause the client to crash.&lt;/p&gt;</description>
                <environment>Single-node test system running on x86_64 with current master (hash 2ce0f3a848443f0f01b5cd8e66bf17e3199a20da).&lt;br/&gt;
&lt;br/&gt;
Running e2fsprogs-1.42.5.wc1 with a modification to filefrag_fiemap() to not initialize buf[] = &amp;quot;&amp;quot;.  The crash does not happen with e2fsprogs-1.42.3.wc3 or if buf[] is initialized.</environment>
        <key id="15939">LU-1923</key>
            <summary>filefrag with large fiemap buffer crashes client</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</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="adilger">Andreas Dilger</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Wed, 12 Sep 2012 22:35:37 +0000</created>
                <updated>Wed, 13 Dec 2017 18:45:16 +0000</updated>
                            <resolved>Thu, 13 Sep 2012 18:54:03 +0000</resolved>
                                    <version>Lustre 2.3.0</version>
                    <version>Lustre 2.4.0</version>
                    <version>Lustre 2.1.3</version>
                    <version>Lustre 1.8.7</version>
                                    <fixVersion>Lustre 2.3.0</fixVersion>
                    <fixVersion>Lustre 2.4.0</fixVersion>
                    <fixVersion>Lustre 2.1.4</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                            <comments>
                            <comment id="44736" author="adilger" created="Wed, 12 Sep 2012 23:20:40 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/3962&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/3962&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="44810" author="adilger" created="Thu, 13 Sep 2012 13:47:59 +0000"  >&lt;p&gt;Oleg, will you cherry pick this to b2_3 and b2_1 as well?&lt;/p&gt;</comment>
                            <comment id="44825" author="pjones" created="Thu, 13 Sep 2012 18:54:03 +0000"  >&lt;p&gt;Landed for 2.3 and 2.4&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="27842">LU-6007</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|hzv5mf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4445</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>