<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:47:19 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-4958] do not crash accessing LOV object with FID {0, 0}</title>
                <link>https://jira.whamcloud.com/browse/LU-4958</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;If an orphan object with stripe_index != 0 is linked to a recreated MDS inode in &lt;a href=&quot;http://review.whamcloud.com/7810&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7810&lt;/a&gt;, but not all of the objects are present (e.g. some of the stripes of that file were lost, but a non-zero stripe_index orphan remained) the client will crash if the file is accessed (e.g. &quot;ls -l&quot;):&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;LustreError: 19393:0:(ldlm_resource.c:1077:ldlm_resource_get()) ASSERTION( name-&amp;gt;name[0] != 0 ) failed: 
LustreError: 19393:0:(ldlm_resource.c:1077:ldlm_resource_get()) LBUG
Pid: 19393, comm: ls

Call Trace:
 [&amp;lt;ffffffffa0ef9895&amp;gt;] libcfs_debug_dumpstack+0x55/0x80 [libcfs]
 [&amp;lt;ffffffffa0ef9e97&amp;gt;] lbug_with_loc+0x47/0xb0 [libcfs]
 [&amp;lt;ffffffffa07c4f20&amp;gt;] ldlm_resource_get+0x700/0x900 [ptlrpc]
 [&amp;lt;ffffffffa07bf1b9&amp;gt;] ldlm_lock_create+0x59/0xcc0 [ptlrpc]
 [&amp;lt;ffffffffa07d8314&amp;gt;] ldlm_cli_enqueue+0xa4/0x790 [ptlrpc]
 [&amp;lt;ffffffffa09ebd44&amp;gt;] osc_enqueue_base+0x1e4/0x5b0 [osc]
 [&amp;lt;ffffffffa0a082fd&amp;gt;] osc_lock_enqueue+0x1ed/0x8c0 [osc]
 [&amp;lt;ffffffffa105be7c&amp;gt;] cl_enqueue_try+0xfc/0x300 [obdclass]
 [&amp;lt;ffffffffa0a5d42a&amp;gt;] lov_lock_enqueue+0x22a/0x850 [lov]
 [&amp;lt;ffffffffa105be7c&amp;gt;] cl_enqueue_try+0xfc/0x300 [obdclass]
 [&amp;lt;ffffffffa105d0cf&amp;gt;] cl_enqueue_locked+0x6f/0x1f0 [obdclass]
 [&amp;lt;ffffffffa105dd1e&amp;gt;] cl_lock_request+0x7e/0x270 [obdclass]
 [&amp;lt;ffffffffa123dba0&amp;gt;] cl_glimpse_lock+0x180/0x490 [lustre]
 [&amp;lt;ffffffffa123e415&amp;gt;] cl_glimpse_size0+0x1a5/0x1d0 [lustre]
 [&amp;lt;ffffffffa11eb55d&amp;gt;] ll_inode_revalidate_it+0x1cd/0x660 [lustre]
 [&amp;lt;ffffffffa11eba3a&amp;gt;] ll_getattr_it+0x4a/0x1b0 [lustre]
 [&amp;lt;ffffffffa11ebbd7&amp;gt;] ll_getattr+0x37/0x40 [lustre]
 [&amp;lt;ffffffff81186db1&amp;gt;] vfs_getattr+0x51/0x80
 [&amp;lt;ffffffff81186e40&amp;gt;] vfs_fstatat+0x60/0x80
 [&amp;lt;ffffffff81186ece&amp;gt;] vfs_lstat+0x1e/0x20
 [&amp;lt;ffffffff81186ef4&amp;gt;] sys_newlstat+0x24/0x50
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I&apos;m not sure what the right way to handle this is, since this would affect all old clients trying to access files in &lt;tt&gt;.lustre/lost+found&lt;/tt&gt; so fixing just the 2.6 client is not enough.  Either we need to backport the fix to 2.5.2 and 2.4.3 and 2.1.7 clients (not very good, since we aren&apos;t sure if the client has the fix), or use some other lmm_magic or lmm_pattern to ensure that unpatched clients will not understand it.&lt;/p&gt;

&lt;p&gt;In the second case (using a different lmm_magic or lmm_pattern, maybe LOV_PATTERN_F_SPARSE?) the lfsck_layout_extend_lovea() code would need to decide as stripes are added if the layout is sparse (set the flag, old clients cannot access) or if it is full (clear the flag, old clients can access).&lt;/p&gt;</description>
                <environment></environment>
        <key id="24390">LU-4958</key>
            <summary>do not crash accessing LOV object with FID {0, 0}</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="ys">Yang Sheng</assignee>
                                    <reporter username="yong.fan">nasf</reporter>
                        <labels>
                            <label>MB</label>
                            <label>mn4</label>
                    </labels>
                <created>Fri, 25 Apr 2014 09:04:30 +0000</created>
                <updated>Tue, 16 Dec 2014 12:30:12 +0000</updated>
                            <resolved>Tue, 16 Dec 2014 12:30:12 +0000</resolved>
                                    <version>Lustre 2.1.6</version>
                    <version>Lustre 2.5.1</version>
                    <version>Lustre 2.4.3</version>
                                    <fixVersion>Lustre 2.7.0</fixVersion>
                    <fixVersion>Lustre 2.5.4</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="82509" author="adilger" created="Fri, 25 Apr 2014 17:37:20 +0000"  >&lt;p&gt;This is similar to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4675&quot; title=&quot;LFSCK should mark files with holes so clients do not access them&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4675&quot;&gt;&lt;del&gt;LU-4675&lt;/del&gt;&lt;/a&gt;, but is focused on fixing the specific client-side crash if there is a hole in the file layout.&lt;/p&gt;</comment>
                            <comment id="84883" author="adilger" created="Mon, 26 May 2014 18:27:53 +0000"  >&lt;p&gt;This is being fixed on master along with the LFSCK changes in &lt;a href=&quot;http://review.whamcloud.com/10042&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/10042&lt;/a&gt; but there will need to be a separate patch for b2_4 and b2_5 that just fixes the client code.&lt;/p&gt;</comment>
                            <comment id="84890" author="yong.fan" created="Mon, 26 May 2014 23:03:50 +0000"  >&lt;p&gt;With the patch &lt;a href=&quot;http://review.whamcloud.com/#/c/10042/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/10042/&lt;/a&gt; to be landed on master, when old client talks with Lustre-2.6 server, the MDS will reply failure to the old client directly if the LOV EA contains hole. So it will NOT crash the old client. So do we still need to fix client-side code to operate the file with LOV EA hole?&lt;/p&gt;</comment>
                            <comment id="84896" author="adilger" created="Tue, 27 May 2014 01:23:10 +0000"  >&lt;p&gt;Yes, this bug should still be fixed on the older clients because there may still be corrupt LOV EA that has FID &lt;/p&gt;
{0,0}
&lt;p&gt; even if it was not created by LFSCK. Clients should not crash from data sent by the network. &lt;/p&gt;</comment>
                            <comment id="98724" author="adilger" created="Sat, 8 Nov 2014 22:10:48 +0000"  >&lt;p&gt;See if we ca reassign this bug to someone else. &lt;/p&gt;</comment>
                            <comment id="98793" author="jlevi" created="Mon, 10 Nov 2014 18:55:43 +0000"  >&lt;p&gt;YangSheng,&lt;br/&gt;
Could you have a look at this one?&lt;br/&gt;
Thank you!&lt;/p&gt;</comment>
                            <comment id="99297" author="gerrit" created="Sun, 16 Nov 2014 06:34:19 +0000"  >&lt;p&gt;Yang Sheng (yang.sheng@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/12740&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/12740&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4958&quot; title=&quot;do not crash accessing LOV object with FID {0, 0}&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4958&quot;&gt;&lt;del&gt;LU-4958&lt;/del&gt;&lt;/a&gt; lov: don&apos;t crash accessing LOV object with FID&lt;/p&gt;
{0,0}
&lt;p&gt;Project: fs/lustre-release&lt;br/&gt;
Branch: b2_5&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: b182cd79e47deca83be7d25f26d908f92192202a&lt;/p&gt;</comment>
                            <comment id="99300" author="gerrit" created="Sun, 16 Nov 2014 07:04:36 +0000"  >&lt;p&gt;Yang Sheng (yang.sheng@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/12742&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/12742&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4958&quot; title=&quot;do not crash accessing LOV object with FID {0, 0}&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4958&quot;&gt;&lt;del&gt;LU-4958&lt;/del&gt;&lt;/a&gt; lov: don&apos;t crash accessing LOV object with FID&lt;/p&gt;
{0,0}
&lt;p&gt;Project: fs/lustre-release&lt;br/&gt;
Branch: b2_4&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: e6ffce296bec44015f2d44a741044096229eab9e&lt;/p&gt;</comment>
                            <comment id="101035" author="gerrit" created="Tue, 9 Dec 2014 00:42:25 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/12740/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/12740/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4958&quot; title=&quot;do not crash accessing LOV object with FID {0, 0}&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4958&quot;&gt;&lt;del&gt;LU-4958&lt;/del&gt;&lt;/a&gt; lov: don&apos;t crash accessing LOV object with FID&lt;/p&gt;
{0,0}
&lt;p&gt;Project: fs/lustre-release&lt;br/&gt;
Branch: b2_5&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 35046f30b35696b5644328094fc470ba6ccfe71b&lt;/p&gt;</comment>
                            <comment id="101203" author="ys" created="Wed, 10 Dec 2014 15:14:04 +0000"  >&lt;p&gt;Does this patch need port to b2_4? and b2_1?&lt;/p&gt;</comment>
                            <comment id="101429" author="adilger" created="Fri, 12 Dec 2014 11:46:34 +0000"  >&lt;p&gt;Probably no need to port this to those older branches. &lt;/p&gt;</comment>
                            <comment id="101691" author="pjones" created="Tue, 16 Dec 2014 12:30:12 +0000"  >&lt;p&gt;Landed for 2.5.4 and 2.7&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="23329">LU-4675</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|hzwl07:</customfieldvalue>

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