<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:11:47 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-14673] panic: crc32-table: crc32 alg self test failed in fips mode!</title>
                <link>https://jira.whamcloud.com/browse/LU-14673</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;upon loading LNet, node panics with this:&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;libcfs: loading out-of-tree module taints kernel.
libcfs: module verification failed: signature and/or required key missing - tainting kernel
LNet: HW NUMA nodes: 2, HW CPU cores: 64, npartitions: 2
alg: No test for adler32 (adler32-zlib)
alg: hash: digest failed on test 1 for crc32-table: ret=126
Kernel panic - not syncing: crc32-table: crc32 alg self test failed in fips mode!

CPU: 11 PID: 70553 Comm: cryptomgr_test Tainted: G           OE    --------- -  - 4.18.0-240.22.1.1toss.t4.x86_64 #1
Hardware name: HPE ProLiant DL385 Gen10 Plus/ProLiant DL385 Gen10 Plus, BIOS A42 10/30/2020
Call Trace:
 dump_stack+0x5c/0x80
 panic+0xe7/0x2a9
 ? __alg_test_hash+0x55/0x80
 alg_test.cold.21+0x13/0x44
 ? __switch_to_asm+0x41/0x70
 ? __switch_to_asm+0x35/0x70
 ? __switch_to_asm+0x41/0x70
 ? __switch_to+0x7a/0x400
 ? __schedule+0x2cf/0x720
 ? crypto_acomp_scomp_free_ctx+0x30/0x30
 cryptomgr_test+0x27/0x50
 kthread+0x11d/0x140
 ? kthread_flush_work_fn+0x10/0x10
 ret_from_fork+0x22/0x40
Kernel Offset: 0x18c00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Loading 2.14.0 LNet under fips=1 does not cause the panic&lt;/p&gt;</description>
                <environment>lustre-2.12.6_4.llnl-2.t4.x86_64&lt;br/&gt;
4.18.0-240.22.1.1toss.t4.x86_64&lt;br/&gt;
fips=1&lt;br/&gt;
</environment>
        <key id="64057">LU-14673</key>
            <summary>panic: crc32-table: crc32 alg self test failed in fips mode!</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="sebastien">Sebastien Buisson</assignee>
                                    <reporter username="ofaaland">Olaf Faaland</reporter>
                        <labels>
                            <label>llnl</label>
                    </labels>
                <created>Thu, 6 May 2021 01:11:40 +0000</created>
                <updated>Tue, 13 Jul 2021 08:24:25 +0000</updated>
                            <resolved>Thu, 27 May 2021 19:08:35 +0000</resolved>
                                    <version>Lustre 2.12.6</version>
                                    <fixVersion>Lustre 2.12.7</fixVersion>
                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="300626" author="ofaaland" created="Thu, 6 May 2021 01:12:04 +0000"  >&lt;p&gt;For my records, my internal ticket is TOSS5190&lt;/p&gt;</comment>
                            <comment id="300644" author="adilger" created="Thu, 6 May 2021 04:52:40 +0000"  >&lt;p&gt;This looks related to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13355&quot; title=&quot;adler32 wrapper in libcfs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13355&quot;&gt;&lt;del&gt;LU-13355&lt;/del&gt;&lt;/a&gt;, but according to patch &lt;a href=&quot;https://review.whamcloud.com/38205&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38205&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13355&quot; title=&quot;adler32 wrapper in libcfs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13355&quot;&gt;&lt;del&gt;LU-13355&lt;/del&gt;&lt;/a&gt; crypto: crypto engine wrappers in libcfs&lt;/tt&gt;&quot; the crc32 crypto wrapper should be fixed since 2.12.5.&lt;/p&gt;

&lt;p&gt;Possibly something has changed in how FIPS is being checked in the 4.18 kernel? &lt;/p&gt;</comment>
                            <comment id="300645" author="adilger" created="Thu, 6 May 2021 04:54:01 +0000"  >&lt;p&gt;Olaf, since it looks like you are building your own patched &quot;&lt;tt&gt;1toss&lt;/tt&gt;&quot; client kernel, you could potentially disable this check until the problem is understood and fixed.&lt;/p&gt;</comment>
                            <comment id="300849" author="sebastien" created="Fri, 7 May 2021 16:01:05 +0000"  >&lt;p&gt;The fact that it does not crash with 2.14 is due to patch &lt;a href=&quot;https://review.whamcloud.com/35342&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35342&lt;/a&gt;, only landed to master in early January 2020. This patch is a (very) big one, whose objective was to simplify the Lustre code by removing obsolete config checks. Among those was cfs_crypto_crc32_register() and all the Lustre specific crc32 implementation done in libcfs/libcfs/linux/linux-crypto-crc32.c.&lt;/p&gt;

&lt;p&gt;No crc32, no crash &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;I can try to see why the digest test is failing (the fact that it fails is not due to FIPS, it always fails, but with FIPS enabled it triggers a panic). But maybe the most obvious move would be to remove the call to &lt;tt&gt;cfs_crypto_crc32_register()&lt;/tt&gt;. Any suggestion &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=adilger&quot; class=&quot;user-hover&quot; rel=&quot;adilger&quot;&gt;adilger&lt;/a&gt;?&lt;/p&gt;</comment>
                            <comment id="300852" author="ofaaland" created="Fri, 7 May 2021 16:13:29 +0000"  >&lt;p&gt;Hi Sebastian,&lt;/p&gt;

&lt;p&gt;When you say &quot;it &lt;span class=&quot;error&quot;&gt;&amp;#91;the digest test&amp;#93;&lt;/span&gt; always fails&quot;, do you mean it always fails under the RHEL 8.3 kernel, but succeeds under the RHEL 7 kernel?&lt;/p&gt;

&lt;p&gt;thanks&lt;/p&gt;</comment>
                            <comment id="300857" author="sebastien" created="Fri, 7 May 2021 16:44:52 +0000"  >&lt;p&gt;Hi Olaf,&lt;/p&gt;

&lt;p&gt;Sorry for the confusion, I meant:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;it fails on RHEL8.3, no matter FIPS is enabled or not, but only panics when FIPS is enabled;&lt;/li&gt;
	&lt;li&gt;it does not fail on RHEL7.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="300879" author="simmonsja" created="Fri, 7 May 2021 18:43:33 +0000"  >&lt;p&gt;The special crc32 handling is left overs from the RHEL6 days which is why it was removed in newer lustre versions. All the special crc32 handling Lustre did is now apart of the supported kernels.&lt;/p&gt;</comment>
                            <comment id="301007" author="sebastien" created="Mon, 10 May 2021 08:42:56 +0000"  >&lt;p&gt;Maybe the most straightforward way to get rid of this problem is to &lt;b&gt;not&lt;/b&gt; call &lt;tt&gt;LIBCFS_HAVE_CRC32&lt;/tt&gt; config check in libcfs/autoconf/lustre-libcfs.m4, resulting in built-in crc32 not being used. I tested this quick solution, it works.&lt;/p&gt;

&lt;p&gt;A cleaner approach is to backport patch &lt;a href=&quot;https://review.whamcloud.com/35342&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35342&lt;/a&gt; to b2_12, I just pushed a patch for this:&lt;br/&gt;
&lt;a href=&quot;https://review.whamcloud.com/43623&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43623&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="301151" author="sebastien" created="Tue, 11 May 2021 09:00:55 +0000"  >&lt;p&gt;Patch &lt;a href=&quot;https://review.whamcloud.com/35342&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35342&lt;/a&gt; has been abandoned as we cannot drop RHEL6 support in 2.12.&lt;/p&gt;

&lt;p&gt;An even cleaner approach is to fix the root cause of the error:&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;alg: hash: digest failed on test 1 for crc32-table: ret=126
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Errno 126 is:&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;#define ENOKEY          126     /* Required key not available */
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;And it appears that &lt;tt&gt;crc32&lt;/tt&gt; needs to set the &lt;tt&gt;CRYPTO_ALG_OPTIONAL_KEY&lt;/tt&gt; flag to work properly. I will push a patch to fix this.&lt;/p&gt;</comment>
                            <comment id="301152" author="gerrit" created="Tue, 11 May 2021 09:01:18 +0000"  >&lt;p&gt;Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/43653&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43653&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14673&quot; title=&quot;panic: crc32-table: crc32 alg self test failed in fips mode!&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14673&quot;&gt;&lt;del&gt;LU-14673&lt;/del&gt;&lt;/a&gt; sec: annotate algorithms taking optional key&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 2&lt;br/&gt;
Commit: cc066c79a26d927e11dcfdef96eb5ab77dc7025a&lt;/p&gt;</comment>
                            <comment id="301168" author="gerrit" created="Tue, 11 May 2021 13:02:25 +0000"  >&lt;p&gt;Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/43656&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43656&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14673&quot; title=&quot;panic: crc32-table: crc32 alg self test failed in fips mode!&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14673&quot;&gt;&lt;del&gt;LU-14673&lt;/del&gt;&lt;/a&gt; sec: annotate algorithms taking optional key&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 9b32694f26424030024a16c91a7e4575d5b281c2&lt;/p&gt;</comment>
                            <comment id="302838" author="gerrit" created="Thu, 27 May 2021 18:18:57 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/43656/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43656/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14673&quot; title=&quot;panic: crc32-table: crc32 alg self test failed in fips mode!&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14673&quot;&gt;&lt;del&gt;LU-14673&lt;/del&gt;&lt;/a&gt; sec: annotate algorithms taking optional key&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: b161e7b777e63bb4328aeab9e50560f919fedc31&lt;/p&gt;</comment>
                            <comment id="302861" author="pjones" created="Thu, 27 May 2021 19:08:35 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                            <comment id="303203" author="ofaaland" created="Tue, 1 Jun 2021 18:34:47 +0000"  >&lt;p&gt;Keeping the topllnl label until the patch lands to b2_12&lt;/p&gt;</comment>
                            <comment id="305646" author="gerrit" created="Sun, 27 Jun 2021 10:57:53 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/43653/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43653/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14673&quot; title=&quot;panic: crc32-table: crc32 alg self test failed in fips mode!&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14673&quot;&gt;&lt;del&gt;LU-14673&lt;/del&gt;&lt;/a&gt; sec: annotate algorithms taking optional key&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 0aefae53fb03eaca7229d9d4b3e48c4a8c33de1a&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="58343">LU-13355</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </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|i01tu7:</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>