<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:13:25 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-14862] Zero fid assignment post eviction followed by ASSERTION( name-&gt;name[0] != 0 ) failed</title>
                <link>https://jira.whamcloud.com/browse/LU-14862</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;It looks like lmv_revalidate_slaves() does not validate the fid it receives in the loop (unlike many other places that check with fid_is_sane) and calls mdc_intent_lock on a zero fid causing the assertion to hit.&lt;/p&gt;

&lt;p&gt;Now it look the problem is deeper somewhere since we even get said zero fid assigned somewhere, though I am not sure where. The trace below is from racer on latest master&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; [ 2289.873955] LustreError: 27285:0:(file.c:5018:ll_inode_revalidate_fini()) lustre: revalidate FID [0x200000402:0x1:0x0] error: rc = -5
[ 2289.879247] LustreError: 27285:0:(file.c:5018:ll_inode_revalidate_fini()) Skipped 407 previous similar messages
[ 2290.097986] LustreError: 27109:0:(vvp_io.c:1793:vvp_io_init()) lustre: refresh file layout [0x200000406:0xd650:0x0] error -108.
[ 2293.106030] LustreError: 28772:0:(llite_nfs.c:342:ll_dir_get_parent_fid()) lustre: failure inode [0x240000409:0x4bab:0x0] get parent: rc = -116
[ 2293.108749] LustreError: 28772:0:(llite_nfs.c:342:ll_dir_get_parent_fid()) Skipped 29 previous similar messages
[ 2303.467231] Lustre: 14085:0:(client.c:2285:ptlrpc_expire_one_request()) @@@ Request sent has timed out for slow reply: [sent 1626631396/real 1626631396]  req@ffff8800be874280 x1705644635655488/t0(0) o36-&amp;gt;lustre-MDT0000-mdc-ffff8800d6af9800@192.168.201.101@tcp:12/10 lens 496/440 e 0 to 1 dl 1626631525 ref 2 fl Rpc:XQr/0/ffffffff rc 0/-1 job:&apos;setfattr.0&apos;
[ 2303.473349] Lustre: 14085:0:(client.c:2285:ptlrpc_expire_one_request()) Skipped 14 previous similar messages
[ 2377.306136] LustreError: 13927:0:(llite_lib.c:1674:ll_update_lsm_md()) lustre: [0x200000404:0x1ea58:0x0] dir layout mismatch:
[ 2377.308485] LustreError: 13927:0:(lustre_lmv.h:134:lsm_md_dump()) magic 0xcd20cd0 stripe count 1 master mdt 0 hash type crush:0x2000003 max inherit 0 version 1 migrate offset 0 migrate hash 0x0 pool 
[ 2377.311901] LustreError: 13927:0:(lustre_lmv.h:141:lsm_md_dump()) stripe[0] [0x200000400:0x529:0x0]
[ 2377.313845] LustreError: 13927:0:(lustre_lmv.h:134:lsm_md_dump()) magic 0xcd20cd0 stripe count 1 master mdt 0 hash type crush:0x2000003 max inherit 0 version 1 migrate offset 0 migrate hash 0x0 pool 
[ 2377.317112] LustreError: 13927:0:(lustre_lmv.h:141:lsm_md_dump()) stripe[0] [0x0:0x0:0x0]
[ 2377.318945] LustreError: 13927:0:(llite_lib.c:2955:ll_prep_inode()) new_inode -fatal: rc -22
[ 2377.320628] LustreError: 13927:0:(llite_lib.c:2955:ll_prep_inode()) Skipped 19 previous similar messages
[ 2377.320805] LustreError: 13967:0:(ldlm_resource.c:1498:ldlm_resource_get()) ASSERTION( name-&amp;gt;name[0] != 0 ) failed: 
[ 2377.320815] LustreError: 13967:0:(ldlm_resource.c:1498:ldlm_resource_get()) LBUG
[ 2377.320820] Pid: 13967, comm: ls 3.10.0-7.9-debug #1 SMP Mon Feb 1 17:33:41 EST 2021
[ 2377.320820] Call Trace:
[ 2377.320914] [&amp;lt;0&amp;gt;] libcfs_call_trace+0x90/0xf0 [libcfs]
[ 2377.320924] [&amp;lt;0&amp;gt;] lbug_with_loc+0x4c/0xa0 [libcfs]
[ 2377.321103] [&amp;lt;0&amp;gt;] ldlm_resource_get+0x7d9/0x940 [ptlrpc]
[ 2377.321137] [&amp;lt;0&amp;gt;] ldlm_lock_create+0x55/0x9e0 [ptlrpc]
[ 2377.321177] [&amp;lt;0&amp;gt;] ldlm_cli_enqueue+0xc8/0x9e0 [ptlrpc]
[ 2377.321186] [&amp;lt;0&amp;gt;] mdc_enqueue_base+0x323/0x14a0 [mdc]
[ 2377.321191] [&amp;lt;0&amp;gt;] mdc_intent_lock+0x135/0x570 [mdc]
[ 2377.321213] [&amp;lt;0&amp;gt;] lmv_revalidate_slaves+0x452/0xbd0 [lmv]
[ 2377.321216] [&amp;lt;0&amp;gt;] lmv_merge_attr+0x45/0x1b0 [lmv]
[ 2377.321285] [&amp;lt;0&amp;gt;] ll_getattr_dentry+0x6c5/0x920 [lustre]
[ 2377.321296] [&amp;lt;0&amp;gt;] ll_getattr+0x1e/0x20 [lustre]
[ 2377.321300] [&amp;lt;0&amp;gt;] vfs_getattr+0x46/0x80
[ 2377.321301] [&amp;lt;0&amp;gt;] vfs_fstat+0x45/0x80
[ 2377.321303] [&amp;lt;0&amp;gt;] SYSC_newfstat+0x24/0x60
[ 2377.321305] [&amp;lt;0&amp;gt;] SyS_newfstat+0xe/0x10
[ 2377.321308] [&amp;lt;0&amp;gt;] system_call_fastpath+0x1f/0x24
[ 2377.321345] [&amp;lt;0&amp;gt;] 0xfffffffffffffffe
[ 2377.321347] Kernel panic - not syncing: LBUG&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;But when I was searching for similar crashes, I also arrived at this &lt;a href=&quot;https://testing.whamcloud.com/test_sets/4fe20054-a07f-11e9-9e3d-52540065bddc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/4fe20054-a07f-11e9-9e3d-52540065bddc&lt;/a&gt; which is essentially the same crash only we arrived there in a bit of a different way - not because so &quot;dir layout mismatch&quot; seems to be a bit of a red herring and a fallout from earlier incorrect fid assignment too.&lt;/p&gt;</description>
                <environment></environment>
        <key id="65280">LU-14862</key>
            <summary>Zero fid assignment post eviction followed by ASSERTION( name-&gt;name[0] != 0 ) failed</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="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                    </labels>
                <created>Mon, 19 Jul 2021 03:34:09 +0000</created>
                <updated>Fri, 2 Sep 2022 12:16:13 +0000</updated>
                                            <version>Lustre 2.15.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="345525" author="bzzz" created="Fri, 2 Sep 2022 12:16:13 +0000"  >&lt;p&gt;I&apos;m hitting this quite often in racer:&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;
PID: 504341  TASK: ffff891905fb92c0  CPU: 0   COMMAND: &lt;span class=&quot;code-quote&quot;&gt;&quot;ls&quot;&lt;/span&gt;
 #0 [ffff891897e4f790] panic at ffffffff820af786
    /tmp/kernel/kernel/panic.c: 299
 #1 [ffff891897e4f820] ldlm_resource_get at ffffffffc0589652 [ptlrpc]
    /home/lustre/master-mine/libcfs/include/libcfs/libcfs_debug.h: 156
 #2 [ffff891897e4f868] ldlm_lock_create at ffffffffc0581e76 [ptlrpc]
    /home/lustre/master-mine/lustre/ptlrpc/../../lustre/ldlm/ldlm_lock.c: 1671
 #3 [ffff891897e4f8a8] ldlm_cli_enqueue at ffffffffc05a1cbd [ptlrpc]
    /home/lustre/master-mine/lustre/ptlrpc/../../lustre/ldlm/ldlm_request.c: 1008
 #4 [ffff891897e4f928] mdc_enqueue_base at ffffffffc09061e7 [mdc]
    /home/lustre/master-mine/lustre/mdc/mdc_locks.c: 1006
 #5 [ffff891897e4fa28] mdc_intent_lock at ffffffffc090856a [mdc]
    /home/lustre/master-mine/lustre/mdc/mdc_locks.c: 1360
 #6 [ffff891897e4fac8] lmv_revalidate_slaves at ffffffffc0815ebc [lmv]
    /home/lustre/master-mine/lustre/lmv/lmv_intent.c: 225
 #7 [ffff891897e4fb88] lmv_merge_attr at ffffffffc080925d [lmv]
    /home/lustre/master-mine/lustre/lmv/lmv_obd.c: 3827
 #8 [ffff891897e4fbc0] ll_update_inode at ffffffffc0f7189a [lustre]
    /home/lustre/master-mine/lustre/llite/llite_lib.c: 1804
 #9 [ffff891897e4fc38] ll_prep_inode at ffffffffc0f74b7d [lustre]
    /home/lustre/master-mine/lustre/llite/llite_lib.c: 3245
#10 [ffff891897e4fd00] ll_revalidate_it_finish at ffffffffc0f3a10b [lustre]
    /home/lustre/master-mine/lustre/llite/dcache.c: 271
#11 [ffff891897e4fd48] ll_inode_revalidate at ffffffffc0f49b6e [lustre]
    /home/lustre/master-mine/lustre/llite/file.c: 5170
#12 [ffff891897e4fdc0] ll_getattr_dentry at ffffffffc0f58a28 [lustre]
    /home/lustre/master-mine/lustre/llite/file.c: 5247
#13 [ffff891897e4fdf8] __set_pages_np at ffffffff820a3310
    /tmp/kernel/arch/x86/mm/pageattr.c: 2303
#14 [ffff891897e4fe68] vfs_statx_fd at ffffffff821cab4f
    /tmp/kernel/./include/linux/file.h: 43
#15 [ffff891897e4fea0] __se_sys_newfstat at ffffffff821cae4a
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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|i01zj3:</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>