<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:02:49 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-6738] lfs fid2path with invalid fid triggers LBUG: lmv_fld_lookup()) ASSERTION( (fid_seq_in_fldb(fid_seq(fid)) || fid_seq_is_local_file(fid_seq(fid))) &amp;&amp; fid_is_sane(fid) ) failed: [0x100190000:0x39b4fc:0x0] is insane!</title>
                <link>https://jira.whamcloud.com/browse/LU-6738</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;On file systems with more than one MDT, lmv_find_target calls lmv_fld_lookup, which sanity checks the provided fid...&lt;/p&gt;

&lt;p&gt;However, when this is called from lfs fid2path, the fid has not yet been sanity checked.  As a result, passing an invalid fid in to fid2path causes an LBUG.&lt;/p&gt;

&lt;p&gt;This is present in any version of Lustre which supports multiple MDTs.&lt;/p&gt;

&lt;p&gt;The crash below is from a Cray system running 2.5, but the bug is present in current master.&lt;/p&gt;

&lt;p&gt;Run this command from a client on a file system with multiple MDTs:&lt;/p&gt;

&lt;p&gt;lfs fid2path /&lt;span class=&quot;error&quot;&gt;&amp;#91;fs_mount_point&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;0x100190000:0x39b4b2:0x0&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;And it will LBUG:&lt;/p&gt;

&lt;p&gt;&amp;gt; 2015-06-11T18:11:48.877805+00:00 c1-0c0s1n1 LustreError: 20721:0:(lmv_fld.c:72:lmv_fld_lookup()) ASSERTION( (fid_seq_in_fldb(fid_seq(fid)) || fid_seq_is_local_file(fid_seq(fid))) &amp;amp;&amp;amp; fid_is_sane(fid) ) failed: &lt;span class=&quot;error&quot;&gt;&amp;#91;0x100190000:0x39b4fc:0x0&amp;#93;&lt;/span&gt; is insane!&lt;br/&gt;
&amp;gt; 2015-06-11T18:11:48.903006+00:00 c1-0c0s1n1 LustreError: 20721:0:(lmv_fld.c:72:lmv_fld_lookup()) LBUG&lt;br/&gt;
&amp;gt; 2015-06-11T18:11:48.903020+00:00 c1-0c0s1n1 Pid: 20721, comm: lfs&lt;br/&gt;
&amp;gt; 2015-06-11T18:11:48.903043+00:00 c1-0c0s1n1 Call Trace:&lt;br/&gt;
&amp;gt; 2015-06-11T18:11:48.903055+00:00 c1-0c0s1n1 &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff81005e89&amp;gt;&amp;#93;&lt;/span&gt; try_stack_unwind+0x169/0x1b0&lt;br/&gt;
&amp;gt; 2015-06-11T18:11:48.903067+00:00 c1-0c0s1n1 &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff81004919&amp;gt;&amp;#93;&lt;/span&gt; dump_trace+0x89/0x440&lt;br/&gt;
&amp;gt; 2015-06-11T18:11:48.903078+00:00 c1-0c0s1n1 &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa02ba8c7&amp;gt;&amp;#93;&lt;/span&gt; libcfs_debug_dumpstack+0x57/0x80 &lt;span class=&quot;error&quot;&gt;&amp;#91;libcfs&amp;#93;&lt;/span&gt;&lt;br/&gt;
&amp;gt; 2015-06-11T18:11:48.953415+00:00 c1-0c0s1n1 &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa02bae27&amp;gt;&amp;#93;&lt;/span&gt; lbug_with_loc+0x47/0xc0 &lt;span class=&quot;error&quot;&gt;&amp;#91;libcfs&amp;#93;&lt;/span&gt;&lt;br/&gt;
&amp;gt; 2015-06-11T18:11:48.953429+00:00 c1-0c0s1n1 &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa09c04a3&amp;gt;&amp;#93;&lt;/span&gt; lmv_fld_lookup+0x1d3/0x3c0 &lt;span class=&quot;error&quot;&gt;&amp;#91;lmv&amp;#93;&lt;/span&gt;&lt;br/&gt;
&amp;gt; 2015-06-11T18:11:48.953450+00:00 c1-0c0s1n1 &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa09bb2e9&amp;gt;&amp;#93;&lt;/span&gt; lmv_iocontrol+0x8d9/0x3230 &lt;span class=&quot;error&quot;&gt;&amp;#91;lmv&amp;#93;&lt;/span&gt;&lt;br/&gt;
&amp;gt; 2015-06-11T18:11:48.978617+00:00 c1-0c0s1n1 &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa088fd1f&amp;gt;&amp;#93;&lt;/span&gt; ll_fid2path+0x36f/0xbb0 &lt;span class=&quot;error&quot;&gt;&amp;#91;lustre&amp;#93;&lt;/span&gt;&lt;br/&gt;
&amp;gt; 2015-06-11T18:11:48.978634+00:00 c1-0c0s1n1 &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa087678f&amp;gt;&amp;#93;&lt;/span&gt; ll_dir_ioctl+0x16df/0x5f00 &lt;span class=&quot;error&quot;&gt;&amp;#91;lustre&amp;#93;&lt;/span&gt;&lt;br/&gt;
&amp;gt; 2015-06-11T18:11:48.978652+00:00 c1-0c0s1n1 &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff811609fb&amp;gt;&amp;#93;&lt;/span&gt; do_vfs_ioctl+0x9b/0x510&lt;br/&gt;
&amp;gt; 2015-06-11T18:11:48.978667+00:00 c1-0c0s1n1 &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff81160ebf&amp;gt;&amp;#93;&lt;/span&gt; sys_ioctl+0x4f/0x80&lt;br/&gt;
&amp;gt; 2015-06-11T18:11:49.003830+00:00 c1-0c0s1n1 &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff81560d2b&amp;gt;&amp;#93;&lt;/span&gt; system_call_fastpath+0x16/0x1b&lt;br/&gt;
&amp;gt; 2015-06-11T18:11:49.003862+00:00 c1-0c0s1n1 &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;00007f7dda2961c7&amp;gt;&amp;#93;&lt;/span&gt; 0x7f7dda2961c7&lt;br/&gt;
&amp;gt; 2015-06-11T18:11:49.003881+00:00 c1-0c0s1n1 Kernel panic - not syncing: LBUG&lt;/p&gt;

&lt;p&gt;The fix is straightforward - Sanity check the FID in ll_fid2path.  Patch coming in a moment.&lt;/p&gt;</description>
                <environment></environment>
        <key id="30722">LU-6738</key>
            <summary>lfs fid2path with invalid fid triggers LBUG: lmv_fld_lookup()) ASSERTION( (fid_seq_in_fldb(fid_seq(fid)) || fid_seq_is_local_file(fid_seq(fid))) &amp;&amp; fid_is_sane(fid) ) failed: [0x100190000:0x39b4fc:0x0] is insane!</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="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="paf">Patrick Farrell</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Wed, 17 Jun 2015 20:25:15 +0000</created>
                <updated>Thu, 27 Jul 2017 20:23:41 +0000</updated>
                            <resolved>Thu, 27 Jul 2017 20:23:41 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="118889" author="gerrit" created="Wed, 17 Jun 2015 20:29:51 +0000"  >&lt;p&gt;Patrick Farrell (paf@cray.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/15328&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/15328&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6738&quot; title=&quot;lfs fid2path with invalid fid triggers LBUG: lmv_fld_lookup()) ASSERTION( (fid_seq_in_fldb(fid_seq(fid)) || fid_seq_is_local_file(fid_seq(fid))) &amp;amp;&amp;amp; fid_is_sane(fid) ) failed: [0x100190000:0x39b4fc:0x0] is insane!&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6738&quot;&gt;&lt;del&gt;LU-6738&lt;/del&gt;&lt;/a&gt; llite: Sanity check fid in ll_fid2path&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: dfc09a11829e514c2ce2925a1ca02373581d64a1&lt;/p&gt;</comment>
                            <comment id="118898" author="di.wang" created="Wed, 17 Jun 2015 21:08:43 +0000"  >&lt;p&gt;Hmm, It seems this problem has been fixed in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4691&quot; title=&quot;HSM operations mostly fail in striped directories&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4691&quot;&gt;&lt;del&gt;LU-4691&lt;/del&gt;&lt;/a&gt; on master &lt;a href=&quot;http://review.whamcloud.com/#/c/10866/12&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/10866/12&lt;/a&gt; . So probably fix this in lmv_fld_lookup() or might need port the fix to 2_5. Thanks&lt;/p&gt;</comment>
                            <comment id="118976" author="paf" created="Thu, 18 Jun 2015 15:40:08 +0000"  >&lt;p&gt;Oops - Thank you, Di, I missed that fix.  Sloppy on my part.&lt;/p&gt;

&lt;p&gt;I still think it would be good to sanity check the fid immediately after we get it from userspace, in ll_fid2path, but there&apos;s no crash any more in master.  Thanks for taking a look.&lt;/p&gt;</comment>
                            <comment id="203727" author="paf" created="Thu, 27 Jul 2017 20:23:41 +0000"  >&lt;p&gt;Fixed elsewhere as noted by Di.&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|hzxg1z:</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>