<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:28:27 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-9698] osd-ldiskfs: unknown symbol error on patched kernel</title>
                <link>https://jira.whamcloud.com/browse/LU-9698</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Running &lt;tt&gt;llmount.sh&lt;/tt&gt; from master with a patched kernel fails with:&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;$&amp;gt; llmount.sh
[...]
insmod: error inserting &apos;/home/user/lustre-release/lustre/tests/../osd-ldiskfs/osd_ldiskfs.ko&apos;: -1 Unknown symbol in module
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Output of dmesg:&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;$&amp;gt; dmesg | tail -1
osd_diskfs Unknown symbol kallsyms_lookup_name (err 0)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The problem appears after commit 0f0a43b&lt;/p&gt;</description>
                <environment>Centos6 - patched kernel</environment>
        <key id="46796">LU-9698</key>
            <summary>osd-ldiskfs: unknown symbol error on patched kernel</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="green">Oleg Drokin</assignee>
                                    <reporter username="cealustre">CEA</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Jun 2017 08:01:03 +0000</created>
                <updated>Wed, 5 Aug 2020 13:50:22 +0000</updated>
                            <resolved>Mon, 18 Sep 2017 12:26:03 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="199834" author="pjones" created="Wed, 21 Jun 2017 13:34:08 +0000"  >&lt;p&gt;Oleg&lt;/p&gt;

&lt;p&gt;Could you please advise?&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="199864" author="green" created="Wed, 21 Jun 2017 17:10:29 +0000"  >&lt;p&gt;That&apos;s really strange.&lt;br/&gt;
What&apos;s your kernel config esp. in relation to CONFIG_KALLSYMS* ?&lt;br/&gt;
LLNL builder built the patch that introduced this and it pass: &lt;a href=&quot;https://review.whamcloud.com/#/c/27549/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/27549/&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://build.lustre.org/builders/CentOS%206.8%20x86_64%20%28BUILD%29/builds/5549&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://build.lustre.org/builders/CentOS%206.8%20x86_64%20%28BUILD%29/builds/5549&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="199946" author="bougetq" created="Thu, 22 Jun 2017 09:19:34 +0000"  >&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;$&amp;gt; cat /boot/config-2.6.32.573.18.1.el6_lustre | grep KALLSYM
CONFIG_KALLSYMS=y
CONFIG_KALLSYMS_ALL=y
CONFIG_KALLSYMS_EXTRA_PASS=y
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It builds alright on my machine, it&apos;s just the insmod part that doesn&apos;t work. I don&apos;t know if LLNL builder tries to run &lt;tt&gt;llmount.sh&lt;/tt&gt;, it if does, it is indeed strange...&lt;br/&gt;
For the record, I patched the kernel myself following the procedure on the wiki a while ago.&lt;/p&gt;</comment>
                            <comment id="200003" author="green" created="Thu, 22 Jun 2017 18:11:23 +0000"  >&lt;p&gt;Hm, so I just looked and it appears that kallsyms_lookup_name is just not exported on rhel6 at all.&lt;br/&gt;
I guess we can have a configure check to totally disable this functionality on rhel6 esp since on master we don&apos;t really support rhel6 anymore.&lt;/p&gt;</comment>
                            <comment id="200053" author="bougetq" created="Fri, 23 Jun 2017 07:01:56 +0000"  >&lt;p&gt;&amp;gt; esp since on master we don&apos;t really support rhel6 anymore&lt;/p&gt;

&lt;p&gt;I&apos;ll switch to rhel7 then =]&lt;/p&gt;</comment>
                            <comment id="200527" author="gerrit" created="Wed, 28 Jun 2017 17:54:22 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/27874&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/27874&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9698&quot; title=&quot;osd-ldiskfs: unknown symbol error on patched kernel&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9698&quot;&gt;&lt;del&gt;LU-9698&lt;/del&gt;&lt;/a&gt; osd-ldiskfs: See if kallsyms_lookup_name is exported&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 38e08695753f0511c2cab5109a2411ef43495ad1&lt;/p&gt;</comment>
                            <comment id="200530" author="adilger" created="Wed, 28 Jun 2017 18:22:28 +0000"  >&lt;p&gt;It looks like RHEL6 has &lt;tt&gt;EXPORT_SYMBOL_GPL(kallsyms_on_each_symbol)&lt;/tt&gt; that could be used for doing the symbol lookup, like:&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;#ifndef HAVE_KALLSYMS_LOOKUP_NAME
&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; kallsyms_strcmp(void *name, &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *symbol_name, struct module *, unsigned &lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt; symbol_address)
{
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; strcmp(name, symbol_name) == 0 ? symbol_address : 0;
}

/* Note that kallsyms_strcmp() cannot &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; the full symbol address, only the low 32 bits.
 * We can handle &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; by extracting the high word from some other kernel function */
unsigned &lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt; ll_kallsyms_lookup_name(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *name)
{
        unsigned &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; low_addr = kallsyms_on_each_symbol(kallsyms_strcmp, name);

        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; low_addr ? kallsyms_on_each_symbol &amp;amp; 0xffffffff00000000ULL | low_addr : 0;
}
#&lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
#define ll_kallsyms_lookup_name(name) kallsyms_lookup_name(name)
#endif
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

</comment>
                            <comment id="203870" author="simmonsja" created="Sat, 29 Jul 2017 00:32:09 +0000"  >&lt;p&gt;Now that &lt;a href=&quot;https://review.whamcloud.com/28029&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/28029&lt;/a&gt; which Bob had RHEL6.9 kernel include a patch to export kallsyms when build RHEL kernel. This is fine since RHEL6 kernels will never be patchless like RHEL7 kernels. We should be able to close this since this is the case?&lt;/p&gt;</comment>
                            <comment id="208615" author="pjones" created="Mon, 18 Sep 2017 12:26:03 +0000"  >&lt;p&gt;I agree James&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="10111">LU-20</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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|hzzfhj:</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>