AnsweredAssumed Answered

CAAM and kernel crypto tests

Question asked by Eric Nelson on May 28, 2014
Latest reply on Sep 24, 2014 by Eric Nelson
Branched to a new discussion

Hi all,

 

We're seeing some disconcerting error messages on various versions of Linux and various boards when enabling CAAM and

the kernel self-tests.

 

Testing on SABRE-SD with 3.10.31-alpha

 

root@imx6qsabresd:~# dmesg
...
alg: hash: Test 1 failed for hmac-sha1-caam
00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000010: f1 46 be 00
alg: hash: Test 1 failed for sha1-caam
00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000010: 9c d0 d8 9d
alg: hash: Test 1 failed for hmac-sha224-caam
00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000010: 47 b4 b1 16 99 12 ba 4f 53 68 4b 22
alg: hash: Test 1 failed for sha224-caam
00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000010: 2a ad bc e4 bd a0 b3 f7 e3 6c 9d a7

root@imx6qsabresd:~# cat /proc/cmdline
console=ttymxc0,115200 ip=dhcp root=/dev/mmcblk0p2 rootwait caam

 

The kernel configuration is essentially the same as the stock v7_defconfig with a few additional debug flags:

 

~/linux-imx6$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- savedefconfig
scripts/kconfig/conf --savedefconfig=defconfig Kconfig

~/linux-imx6$ diff defconfig arch/arm/configs/imx_v7_defconfig
253a254
> CONFIG_USB_PHY=y
329d329
< CONFIG_DEBUG_LOCK_ALLOC=y
334d333
< # CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set

 

We've seen the same results with kernel 3.0.35_4.1.0 and 3.10.17-1.0.0-ga on Nitrogen6x.

 

Does anyone have some insight about this?

 

Thanks in advance,

 

Eric

Outcomes