<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:40:51 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-4231] NFS reexport leads to LBUG in mainline 3.12 client</title>
                <link>https://jira.whamcloud.com/browse/LU-4231</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;[ 1007.910111] LustreError: 9425:0:(llite_internal.h:1091:ll_inode2fid()) ASSERTION( inode != (&lt;br/&gt;
(void *)0) ) failed:&lt;br/&gt;
[ 1007.920862] LustreError: 9425:0:(llite_internal.h:1091:ll_inode2fid()) LBUG&lt;br/&gt;
[ 1007.929703] Kernel panic - not syncing: LBUG&lt;br/&gt;
[ 1007.933988] CPU: 0 PID: 9425 Comm: rpc.mountd Tainted: P         C O 3.12.0-rc7-ql-generic-10 #1&lt;br/&gt;
[ 1007.942781] Hardware name: Supermicro X8DTN/X8DTN, BIOS 080015  05/04/2009&lt;br/&gt;
[ 1007.949668]  0000000000000000 ffff8801b20b3a38 ffffffff814fd482 0000000000000007&lt;br/&gt;
[ 1007.957158]  ffffffffa04e66bd ffff8801b20b3ab8 ffffffff814faa1f ffffffff815eb50a&lt;br/&gt;
[ 1007.964647]  ffffffff00000008 ffff8801b20b3ac8 ffff8801b20b3a68 ffffffffa0b6ba0e&lt;br/&gt;
[ 1007.972144] Call Trace:&lt;br/&gt;
[ 1007.974607]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff814fd482&amp;gt;&amp;#93;&lt;/span&gt; dump_stack+0x46/0x58&lt;br/&gt;
[ 1007.979759]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff814faa1f&amp;gt;&amp;#93;&lt;/span&gt; panic+0xb6/0x1c6&lt;br/&gt;
[ 1007.984632]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa04cab50&amp;gt;&amp;#93;&lt;/span&gt; lbug_with_loc+0xb0/0xb0 &lt;span class=&quot;error&quot;&gt;&amp;#91;libcfs&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 1007.990892]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa0b40635&amp;gt;&amp;#93;&lt;/span&gt; ll_encode_fh+0x165/0x170 &lt;span class=&quot;error&quot;&gt;&amp;#91;lustre&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 1007.997244]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa03b601b&amp;gt;&amp;#93;&lt;/span&gt; exportfs_encode_inode_fh+0x1b/0xa0 &lt;span class=&quot;error&quot;&gt;&amp;#91;exportfs&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 1008.004707]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa03b60f0&amp;gt;&amp;#93;&lt;/span&gt; exportfs_encode_fh+0x50/0x70 &lt;span class=&quot;error&quot;&gt;&amp;#91;exportfs&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 1008.011581]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa03bd4bb&amp;gt;&amp;#93;&lt;/span&gt; _fh_update.isra.9.part.10+0x3b/0x50 &lt;span class=&quot;error&quot;&gt;&amp;#91;nfsd&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 1008.018716]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa03be011&amp;gt;&amp;#93;&lt;/span&gt; fh_compose+0x241/0x520 &lt;span class=&quot;error&quot;&gt;&amp;#91;nfsd&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 1008.024719]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa03c4244&amp;gt;&amp;#93;&lt;/span&gt; exp_rootfh+0x104/0x2a0 &lt;span class=&quot;error&quot;&gt;&amp;#91;nfsd&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 1008.030725]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa03bb7a9&amp;gt;&amp;#93;&lt;/span&gt; write_filehandle+0x179/0x200 &lt;span class=&quot;error&quot;&gt;&amp;#91;nfsd&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 1008.037250]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff811156a5&amp;gt;&amp;#93;&lt;/span&gt; ? alloc_pages_current+0xb5/0x180&lt;br/&gt;
[ 1008.043505]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff810d8839&amp;gt;&amp;#93;&lt;/span&gt; ? __get_free_pages+0x9/0x40&lt;br/&gt;
[ 1008.049329]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff810d8881&amp;gt;&amp;#93;&lt;/span&gt; ? get_zeroed_page+0x11/0x20&lt;br/&gt;
[ 1008.055156]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa03bb630&amp;gt;&amp;#93;&lt;/span&gt; ? write_unlock_ip+0xd0/0xd0 &lt;span class=&quot;error&quot;&gt;&amp;#91;nfsd&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 1008.061596]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffffa03baff8&amp;gt;&amp;#93;&lt;/span&gt; nfsctl_transaction_write+0x58/0x80 &lt;span class=&quot;error&quot;&gt;&amp;#91;nfsd&amp;#93;&lt;/span&gt;&lt;br/&gt;
[ 1008.068642]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff81137995&amp;gt;&amp;#93;&lt;/span&gt; vfs_write+0xc5/0x1d0&lt;br/&gt;
[ 1008.073854]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff81137e3d&amp;gt;&amp;#93;&lt;/span&gt; SyS_write+0x4d/0xa0&lt;br/&gt;
[ 1008.078985]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff81507479&amp;gt;&amp;#93;&lt;/span&gt; ? do_page_fault+0x9/0x10&lt;br/&gt;
[ 1008.084549]  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;lt;ffffffff8150a066&amp;gt;&amp;#93;&lt;/span&gt; system_call_fastpath+0x1a/0x1f&lt;br/&gt;
[ 1008.091486] -----------&lt;del&gt;[ cut here ]&lt;/del&gt;-----------&lt;/p&gt;</description>
                <environment>- Client mainline kernel 3.12 / lustre-utils 2.4.0&lt;br/&gt;
- Servers lustre 2.4.0/ZFS OSDs&lt;br/&gt;
- ko2iblnd&lt;br/&gt;
- reexport works with 2.6.32/2.4.0 client</environment>
        <key id="21939">LU-4231</key>
            <summary>NFS reexport leads to LBUG in mainline 3.12 client</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="dmiter">Dmitry Eremin</assignee>
                                    <reporter username="rfehren">Roland Fehrenbacher</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 Nov 2013 17:12:44 +0000</created>
                <updated>Tue, 4 Feb 2014 08:10:17 +0000</updated>
                            <resolved>Tue, 4 Feb 2014 08:10:17 +0000</resolved>
                                    <version>Lustre 2.4.1</version>
                    <version>Lustre 2.5.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                    <fixVersion>Lustre 2.5.1</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="71996" author="dmiter" created="Wed, 20 Nov 2013 20:55:18 +0000"  >&lt;p&gt;I hope the patch &lt;a href=&quot;http://review.whamcloud.com/8347&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/8347&lt;/a&gt; should resolve this.&lt;/p&gt;</comment>
                            <comment id="72025" author="laisiyao" created="Thu, 21 Nov 2013 06:44:02 +0000"  >&lt;p&gt;The backtrace shows it assert on exp_rootfh(), I suspect this is not a common issue for all fh encode, could you make sure of this?&lt;/p&gt;</comment>
                            <comment id="72032" author="dmiter" created="Thu, 21 Nov 2013 09:52:46 +0000"  >&lt;p&gt;This is general case. From the code of function &lt;b&gt;exportfs_encode_fh()&lt;/b&gt; we can see the path when the &lt;b&gt;parent == NULL&lt;/b&gt;.&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-object&quot;&gt;int&lt;/span&gt; exportfs_encode_fh(struct dentry *dentry, struct fid *fid, &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; *max_len,
                &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; connectable)
{
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; error;
        struct dentry *p = NULL;
        struct inode *inode = dentry-&amp;gt;d_inode, *parent = NULL;

        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (connectable &amp;amp;&amp;amp; !S_ISDIR(inode-&amp;gt;i_mode)) {
                p = dget_parent(dentry);
                /*
                 * note that &lt;span class=&quot;code-keyword&quot;&gt;while&lt;/span&gt; p might&apos;ve ceased to be our parent already,
                 * it&apos;s still pinned by and still positive.
                 */
                parent = p-&amp;gt;d_inode;
        }

        error = exportfs_encode_inode_fh(inode, fid, max_len, parent);
        dput(p);

        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; error;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The flag &lt;b&gt;connectable&lt;/b&gt; depends from export flag &lt;b&gt;NFSEXP_NOSUBTREECHECK&lt;/b&gt; only.&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;{
  struct fid *fid = (struct fid *)
  (fhp-&amp;gt;fh_handle.fh_auth + fhp-&amp;gt;fh_handle.fh_size/4 - 1);
  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; maxsize = (fhp-&amp;gt;fh_maxsize - fhp-&amp;gt;fh_handle.fh_size)/4;
  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; subtreecheck = !(exp-&amp;gt;ex_flags &amp;amp; NFSEXP_NOSUBTREECHECK);

  fhp-&amp;gt;fh_handle.fh_fileid_type = exportfs_encode_fh(dentry, fid, &amp;amp;maxsize, subtreecheck);
  fhp-&amp;gt;fh_handle.fh_size += maxsize * 4;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
</comment>
                            <comment id="72033" author="dmiter" created="Thu, 21 Nov 2013 10:01:04 +0000"  >&lt;p&gt;In other place we have explicit call:&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-comment&quot;&gt;/* we ask &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; a non connected handle */&lt;/span&gt;
retval = exportfs_encode_fh(path-&amp;gt;dentry,
                            (struct fid *)handle-&amp;gt;f_handle,
                            &amp;amp;handle_dwords,  0);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="72090" author="laisiyao" created="Fri, 22 Nov 2013 02:50:27 +0000"  >&lt;p&gt;Did you disable subtree_check in this test?&lt;/p&gt;</comment>
                            <comment id="72229" author="dmiter" created="Mon, 25 Nov 2013 15:26:49 +0000"  >&lt;p&gt;According my playing with kernel 3.12.0+ with staging lustre client my patch works. NFSD always asked for encode inode without parent independent from &quot;no_subtree_check&quot; option.&lt;/p&gt;</comment>
                            <comment id="72231" author="dmiter" created="Mon, 25 Nov 2013 15:34:08 +0000"  >&lt;p&gt;The patch &lt;a href=&quot;http://review.whamcloud.com/8347&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/8347&lt;/a&gt; with little adoption enable NFS re-export for Lustre staging client (Lustre: Build Version: v2_3_64_0-g6e62c21-CHANGED-3.9.0).&lt;/p&gt;</comment>
                            <comment id="72274" author="yong.fan" created="Tue, 26 Nov 2013 00:27:45 +0000"  >&lt;p&gt;It seems a duplication of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3717&quot; title=&quot;Kernel panic in ll_encode_fh() while testing file handle syscalls on FC18 client&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3717&quot;&gt;&lt;del&gt;LU-3717&lt;/del&gt;&lt;/a&gt;. Please check the patch &lt;a href=&quot;http://review.whamcloud.com/#/c/8072/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/8072/&lt;/a&gt;. You can work more based on such patch if more issues found on 3.12 (or newer) client.&lt;/p&gt;</comment>
                            <comment id="72970" author="simmonsja" created="Fri, 6 Dec 2013 13:35:05 +0000"  >&lt;p&gt;Patch landed to master. Do we need to back port this to b2_5 or b2_4?&lt;/p&gt;</comment>
                            <comment id="72988" author="dmiter" created="Fri, 6 Dec 2013 16:13:12 +0000"  >&lt;p&gt;I think we need it in b2_5. Not sure about b2_4. I will back port it to b2_5 only.&lt;/p&gt;</comment>
                            <comment id="73880" author="rfehren" created="Thu, 19 Dec 2013 20:24:07 +0000"  >&lt;p&gt;This is a patch that fixes the issue for the 3.12 mainline kernel client.&lt;/p&gt;</comment>
                            <comment id="76167" author="dmiter" created="Tue, 4 Feb 2014 08:10:17 +0000"  >&lt;p&gt;Landed b2_5&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="20221">LU-3717</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="22582">LU-4416</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="13945" name="0001-QL-Adjusted-lustre-NFS-reexport-patch-by-Q-Leap-LU-4.patch" size="4319" author="rfehren" created="Thu, 19 Dec 2013 20:24:07 +0000"/>
                    </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|hzw8gn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11523</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10023"><![CDATA[4]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>