<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:03:46 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-101] building Lustre against OFED when the kernel has built-in IB causes symbol mismatch</title>
                <link>https://jira.whamcloud.com/browse/LU-101</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When building 1.8.x against out-of-kernel OFED and a Lustre kernel with in-kernel IB support, Lustre will pick up the IB symvers of the kernel. The workaround is to remove all references to IB in the kernel module.symvers, but it&apos;s a confusing step. It would be nice if Lustre did the right thing here and preferred the --with-o2ib symvers over the kernel symvers. I thought that there had been some work on this in the past, but it seems to not have stuck, as we still run into this issue regularly. &lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Kit&lt;/p&gt;

&lt;p&gt;On an administrative note: Which should we use to mark how important a bug is? Priority or severity? This issue is not at all critical since there is a well understood workaround and it doesn&apos;t affect anything except the build process.&lt;/p&gt;</description>
                <environment></environment>
        <key id="10406">LU-101</key>
            <summary>building Lustre against OFED when the kernel has built-in IB causes symbol mismatch</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="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="brian">Brian Murrell</assignee>
                                    <reporter username="kitwestneat">Kit Westneat</reporter>
                        <labels>
                    </labels>
                <created>Mon, 28 Feb 2011 11:52:40 +0000</created>
                <updated>Tue, 28 Jun 2011 15:01:43 +0000</updated>
                            <resolved>Fri, 18 Mar 2011 19:56:24 +0000</resolved>
                                    <version>Lustre 1.8.6</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                            <comments>
                            <comment id="10783" author="pjones" created="Mon, 28 Feb 2011 11:59:33 +0000"  >&lt;p&gt;Brian&lt;/p&gt;

&lt;p&gt;You are the engineer who had worked in this area. Could you please comment?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="10784" author="pjones" created="Mon, 28 Feb 2011 14:42:12 +0000"  >&lt;p&gt;Kit&lt;/p&gt;

&lt;p&gt;Priority=Importance and Severity=Impactfulness. Usually these are in sync, but it might be possible to have a low priority high severity issue (a theoretical system crasher that never occurs in real life) or a high priority low severity issue (Lustre mis-spelt somewhere very noticeable)&lt;/p&gt;

&lt;p&gt;HTH&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="10850" author="brian" created="Thu, 3 Mar 2011 08:55:33 +0000"  >&lt;p&gt;Kit, from looking at the code (lnet/autoconf/lustre-lnet.m4:447 in current master) and the kernel documentation for Module.symvers AFAICT, we are doing the right thing already, modulo the lack of specification in the kernel&apos;s modules.txt about which Module.symvers takes precedence when a symbol exists in both the kernel&apos;s own Module.symvers &lt;b&gt;and&lt;/b&gt; an external module&apos;s Module.symvers.&lt;/p&gt;

&lt;p&gt;As far as having to remove the IB symbols from the kernel&apos;s Module.symvers, obviously this is not something the Lustre build code can do as it would be (IMHO) a serious issue to go molesting the kernel source tree as part of a module build.&lt;/p&gt;

&lt;p&gt;I will keep investigating to see if I can resolve the question about preference when more than one Module.symvers has a given symbol.&lt;/p&gt;</comment>
                            <comment id="10882" author="brian" created="Fri, 4 Mar 2011 14:05:10 +0000"  >&lt;p&gt;I can&apos;t reproduce this.&lt;/p&gt;

&lt;p&gt;I built OFED-1.5.2&apos;s kernel-ib&lt;/p&gt;
{,-devel}
&lt;p&gt; and installed the kernel-ib-devel.  I then built lustre with:&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;$ ./configure --with-linux=/usr/src/kernels/2.6.18-194.32.1.el5-x86_64/ --with-o2ib=/usr/src/ofa_kernel/ --without-lustre-iokit --disable-quilt --disable-liblustre --disable-docs --disable-snmp --disable-tests
$ make
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When I interrogate &lt;tt&gt;lnet/klnds/o2iblnd/ko2iblnd.ko&lt;/tt&gt; for the version of a given I/B function that it wants I get:&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;$ /sbin/modprobe --dump-modversions lustre-release/lnet/klnds/o2iblnd/ko2iblnd.ko | grep ib_create_cq
0x17fa926d	ib_create_cq
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When I then interrogate the kernel and OFED Module.symvers files:&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;$ grep ib_create_cq /usr/src/ofa_kernel/Module.symvers /usr/src/kernels/2.6.18-194.32.1.el5-x86_64/Module.symvers 
/usr/src/ofa_kernel/Module.symvers:0x17fa926d	ib_create_cq	drivers/infiniband/core/ib_core	EXPORT_SYMBOL
/usr/src/kernels/2.6.18-194.32.1.el5-x86_64/Module.symvers:0x1e8a9cb5	ib_create_cq	drivers/infiniband/core/ib_core	EXPORT_SYMBOL
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So as you can see, ko2iblnd.ko is looking for the OFED version of the function, not the kernel&apos;s own version.&lt;/p&gt;

&lt;p&gt;Can you provide any more information as to how you are arriving at different results?  Or maybe where I am misunderstanding your problem?&lt;/p&gt;</comment>
                            <comment id="10951" author="brian" created="Tue, 8 Mar 2011 09:27:35 +0000"  >&lt;p&gt;Kit,&lt;/p&gt;

&lt;p&gt;Were you able to gather any more information on this issue?&lt;/p&gt;</comment>
                            <comment id="11019" author="kitwestneat" created="Fri, 11 Mar 2011 08:25:31 +0000"  >&lt;p&gt;Hey Brian,&lt;/p&gt;

&lt;p&gt;I haven&apos;t had time to work on this unfortunately, I should be able to next week.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Kit&lt;/p&gt;</comment>
                            <comment id="11237" author="kitwestneat" created="Fri, 18 Mar 2011 16:21:04 +0000"  >&lt;p&gt;It looks like it is working, so I&apos;m not sure what was going on. I&apos;ll close it up. &lt;/p&gt;</comment>
                            <comment id="11238" author="kitwestneat" created="Fri, 18 Mar 2011 16:22:28 +0000"  >&lt;p&gt;actually, is it possible for me to close it? I can&apos;t find that functionality. &lt;/p&gt;</comment>
                            <comment id="11243" author="pjones" created="Fri, 18 Mar 2011 19:56:24 +0000"  >&lt;p&gt;Not sure, but I have closed it for you Kit&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|hzw1kv:</customfieldvalue>

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