2024-05-10 09:30:43

by Changhui Zhong

[permalink] [raw]
Subject: [bug report] Kernel panic - not syncing: alg: self-tests for xxhash64 (xxhash64) failed in fips mode!

Hello,

I hit the kernel panic on recent upstream, please help check it and
let me know if you need any info/testing for it, thanks.

repo:https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
branch:for-next
commit HEAD: d7c9295b12e267bd9b6623bd6e23637f4bb5ceb2

reproducer:
# fips-mode-setup --enable

[ 15.665335] alg: hash: failed to allocate transform for xxhash64: -2
[ 15.671682] Kernel panic - not syncing: alg: self-tests for
xxhash64 (xxhash64) failed in fips mode!
[ 15.680800] CPU: 33 PID: 1416 Comm: modprobe Not tainted 6.9.0-rc4+ #1
[ 15.687315] Hardware name: GIGABYTE R152-P31-00/MP32-AR1-00, BIOS
F31n (SCP: 2.10.20220810) 09/30/2022
[ 15.696607] Call trace:
[ 15.699040] dump_backtrace+0x9c/0x130
[ 15.702780] show_stack+0x1c/0x30
[ 15.706082] dump_stack_lvl+0x34/0xe0
[ 15.709733] dump_stack+0x14/0x20
[ 15.713035] panic+0x390/0x3d8
[ 15.716079] alg_test+0x574/0x580
[ 15.719382] do_test+0x4ad0/0x7468 [tcrypt]
[ 15.723556] do_test+0x744c/0x7468 [tcrypt]
[ 15.727729] tcrypt_mod_init+0x64/0xfff8 [tcrypt]
[ 15.732423] do_one_initcall+0x50/0x2e8
[ 15.736246] do_init_module+0x5c/0x280
[ 15.739984] load_module+0x1f48/0x2008
[ 15.743721] init_module_from_file+0x90/0xd0
[ 15.747979] __arm64_sys_finit_module+0x168/0x3a8
[ 15.752670] invoke_syscall.constprop.4+0x50/0xe0
[ 15.757363] do_el0_svc+0x78/0xc0
[ 15.760666] el0_svc+0x40/0x1b8
[ 15.763795] el0t_64_sync_handler+0x98/0xc0
[ 15.767966] el0t_64_sync+0x160/0x168
[ 15.771616] SMP: stopping secondary CPUs
[ 15.775842] Kernel Offset: 0x276185f00000 from 0xffff800080000000
[ 15.781922] PHYS_OFFSET: 0x80000000
[ 15.785397] CPU features: 0x0,0000000b,80140528,4241720b
[ 15.790696] Memory Limit: none
[ 15.793737] ---[ end Kernel panic - not syncing: alg: self-tests
for xxhash64 (xxhash64) failed in fips mode! ]---

--
Best Regards,
Changhui