Failed self-tests with crypto-safexcel on MediaTek MT7986 SoC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am using a Banana Pi BPI-R3 router board, which has a MediaTek
MT7986 SoC, with Linux  and I have noticed a large number of error
messages and stack traces in my kernel boot log related to the
crypto-safexcel module. The errors all related to a large number of
failed self-tests for both hashing and encryption, thus I believe this
device is not working correctly at all.

I have been using the current Debian unstable distribution with a
variety of kernel builds. I have seen the errors with both Debian and
"vanilla" builds of v6.8.12, v6.9.7 and v6.10.0-rc6.

To reproduce, simply boot Linux on the BPI-R3 using the compiled DTS
file  arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts with
the crypto-safexcel module enabled via the CONFIG_CRYPTO_DEV_SAFEXCEL
option.

Any help fixing these errors would be appreciated.

The relevant boot log messages:

crypto-safexcel 10320000.crypto:
EIP97:230(0,1,4,4)-HIA:270(0,5,5),PE:150/433(alg:7fcdfc00)/0/0/0

alg: ahash: safexcel-sha384 test failed (wrong result) on test vector
1, cfg="init+update+final aligned buffer"
alg: self-tests for sha384 using safexcel-sha384 failed (rc=-22)

alg: ahash: safexcel-sha512 test failed (wrong result) on test vector
1, cfg="init+update+final aligned buffer"
alg: self-tests for sha512 using safexcel-sha512 failed (rc=-22)

alg: ahash: safexcel-hmac-sha384 setkey failed on test vector 0;
expected_error=0, actual_error=-80, flags=0x1
alg: self-tests for hmac(sha384) using safexcel-hmac-sha384 failed (rc=-80)

alg: ahash: safexcel-hmac-sha512 setkey failed on test vector 0;
expected_error=0, actual_error=-80, flags=0x1
alg: self-tests for hmac(sha512) using safexcel-hmac-sha512 failed (rc=-80)

alg: aead: safexcel-authenc-hmac-sha512-cbc-aes encryption test failed
(wrong result) on test vector 0, cfg="in-place (one sglist)"
alg: self-tests for authenc(hmac(sha512),cbc(aes)) using
safexcel-authenc-hmac-sha512-cbc-aes failed (rc=-22)

alg: aead: safexcel-authenc-hmac-sha512-cbc-des3_ede encryption test
failed (wrong result) on test vector 0, cfg="in-place (one sglist)"
alg: self-tests for authenc(hmac(sha512),cbc(des3_ede)) using
safexcel-authenc-hmac-sha512-cbc-des3_ede failed (rc=-22

alg: aead: safexcel-authenc-hmac-sha384-cbc-des3_ede encryption test
failed (wrong result) on test vector 0, cfg="in-place (one sglist)"
alg: self-tests for authenc(hmac(sha384),cbc(des3_ede)) using
safexcel-authenc-hmac-sha384-cbc-des3_ede failed (rc=-22)

alg: aead: safexcel-authenc-hmac-sha512-cbc-des encryption test failed
(wrong result) on test vector 0, cfg="in-place (one sglist)"
alg: self-tests for authenc(hmac(sha512),cbc(des)) using
safexcel-authenc-hmac-sha512-cbc-des failed (rc=-22)

alg: aead: safexcel-authenc-hmac-sha384-cbc-des encryption test failed
(wrong result) on test vector 0, cfg="in-place (one sglist)"
alg: self-tests for authenc(hmac(sha384),cbc(des)) using
safexcel-authenc-hmac-sha384-cbc-des failed (rc=-22)

Thanks,
Leith Bade




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux