<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:50:40 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-5343] double swab of stripe count in lmv_unpack_md_v1()</title>
                <link>https://jira.whamcloud.com/browse/LU-5343</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In lmv_unpack_md_v1() we convert stripe count from little endian to CPU endian twice. This is a problem on big endian:&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;        stripe_count = le32_to_cpu(lmm1-&amp;gt;lmv_stripe_count);
        &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; (i = 0; i &amp;lt; le32_to_cpu(stripe_count); i++) {
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Trying to ls a striped directory from a PPC client:&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: 5952: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: [0x0:0x0:0x0] is insane!
LustreError: 5952:0:(lmv_fld.c:72:lmv_fld_lookup()) LBUG
Kernel panic - not syncing: LBUG
Call Trace:
[c000000799e12d10] [c000000000012ef4] .show_stack+0x74/0x1c0 (unreliable)
[c000000799e12dc0] [c0000000005e5920] .panic+0xc4/0x1f8
[c000000799e12e50] [d0000000063e14c0] .lbug_with_loc+0xb0/0xc0 [libcfs]
[c000000799e12ee0] [d00000000a140eb0] .lmv_fld_lookup+0x260/0x620 [lmv]
[c000000799e12fb0] [d00000000a122c20] .lmv_unpack_md+0x720/0x1530 [lmv]
[c000000799e130d0] [d00000000a5154e0] .mdc_get_lustre_md+0x750/0x2690 [mdc]
[c000000799e131e0] [d00000000a111238] .lmv_get_lustre_md+0xe8/0x590 [lmv]
[c000000799e132c0] [d00000000ca1960c] .ll_prep_inode+0x17c/0x15d0 [lustre]
[c000000799e13420] [d00000000ca3dce8] .ll_lookup_it_finish+0x418/0x1bb0 [lustre]
[c000000799e13570] [d00000000ca3f8f8] .ll_lookup_it+0x478/0xf00 [lustre]
[c000000799e136c0] [d00000000ca40464] .ll_lookup_nd+0xe4/0x7f0 [lustre]
[c000000799e137b0] [c0000000001d7924] .do_lookup+0x254/0x2d0
[c000000799e13880] [c0000000001db5fc] .__link_path_walk+0x9dc/0x1610
[c000000799e139e0] [c0000000001dc5f8] .path_walk+0x98/0x180
[c000000799e13a80] [c0000000001dc91c] .filename_lookup+0x8c/0x100
[c000000799e13b20] [c0000000001dda90] .user_path_at+0x60/0xb0
[c000000799e13c70] [c0000000001cfe34] .vfs_fstatat+0x64/0x110
[c000000799e13d30] [c0000000001d0114] .SyS_newstat+0x24/0x50
[c000000799e13e30] [c000000000008564] syscall_exit+0x0/0x40
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="25568">LU-5343</key>
            <summary>double swab of stripe count in lmv_unpack_md_v1()</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="3">Duplicate</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>dne2</label>
                            <label>ppc</label>
                    </labels>
                <created>Mon, 14 Jul 2014 19:18:23 +0000</created>
                <updated>Tue, 15 Jul 2014 14:38:26 +0000</updated>
                            <resolved>Tue, 15 Jul 2014 14:38:15 +0000</resolved>
                                    <version>Lustre 2.6.0</version>
                    <version>Lustre 2.7.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                            <comments>
                            <comment id="88968" author="jhammond" created="Mon, 14 Jul 2014 19:32:27 +0000"  >&lt;p&gt;Also in the handler for LL_IOC_LMV_GETSTRIPE we have unswabbed accesses to the stripe FIDs:&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; (i = 0; i &amp;lt; stripe_count; i++) {
                        struct lu_fid   *fid;

                        fid = &amp;amp;lmm-&amp;gt;lmv_md_v1.lmv_stripe_fids[i];
                        mdt_index = ll_get_mdt_idx_by_fid(sbi, fid);
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (mdt_index &amp;lt; 0)
                                GOTO(out_tmp, rc = mdt_index);

                        tmp-&amp;gt;lum_objects[i].lum_mds = mdt_index;
                        tmp-&amp;gt;lum_objects[i].lum_fid = *fid;
                        tmp-&amp;gt;lum_stripe_count++;
                }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="89032" author="jhammond" created="Tue, 15 Jul 2014 14:38:15 +0000"  >&lt;p&gt;Fixes rolled into patch for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5342&quot; title=&quot;oops in lustre_swab_lmv_user_md() on PPC&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5342&quot;&gt;&lt;del&gt;LU-5342&lt;/del&gt;&lt;/a&gt;.&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|hzwrdj:</customfieldvalue>

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