I have upgraded openwrt from: Linux SecureOffice 4.4.14 #2 SMP Fri Apr 5 18:22:23 UTC 2019 x86_64 GNU/Linux
and, /dev/crypto worked:
root@SecureOffice:~# openssl engine -t -c
(cryptodev) BSD cryptodev engine
[RSA, DSA, DH, DES-CBC, DES-EDE3-CBC, AES-128-CBC, AES-192-CBC, AES-256-CBC, hmacWithMD5, MD5]
[ available ]
(rdrand) Intel RDRAND engine
[RAND]
[ available ]
(dynamic) Dynamic engine loading support
[ unavailable ]
To: Linux SecureOffice 4.14.111 #0 SMP Thu Apr 18 20:34:19 2019 x86_64 GNU/Linux
with exact same configuration, apart from new kernel config values.
and, /dev/crypto fails (no algs):
root@SecureOffice:/tmp# openssl engine -t -c
(dynamic) Dynamic engine loading support
[ unavailable ]
(devcrypto) /dev/crypto engine
[ available ]
(lack of rdrand this CPU)
I enabled debugging:
sysctl ioctl.cryptodev_verbosity=3
and, see failures:
[ 3316.626744] cryptodev: openssl[5568] (cryptodev_open:515): allocated new item at ffff888116d20300
[ 3316.626747] cryptodev: openssl[5568] (cryptodev_open:515): allocated new item at ffff888116d20840
[ 3316.626748] cryptodev: openssl[5568] (cryptodev_open:515): allocated new item at ffff888116d20900
[ 3316.626750] cryptodev: openssl[5568] (cryptodev_open:515): allocated new item at ffff888116d20a80
[ 3316.626751] cryptodev: openssl[5568] (cryptodev_open:515): allocated new item at ffff888116d209c0
[ 3316.626753] cryptodev: openssl[5568] (cryptodev_open:515): allocated new item at ffff888116d20b40
[ 3316.626754] cryptodev: openssl[5568] (cryptodev_open:515): allocated new item at ffff888116d20c00
[ 3316.626755] cryptodev: openssl[5568] (cryptodev_open:515): allocated new item at ffff888116d20f00
[ 3316.626757] cryptodev: openssl[5568] (cryptodev_open:515): allocated new item at ffff888116d20180
[ 3316.626758] cryptodev: openssl[5568] (cryptodev_open:515): allocated new item at ffff888116d203c0
[ 3316.626760] cryptodev: openssl[5568] (cryptodev_open:515): allocated new item at ffff888116d20e40
[ 3316.626761] cryptodev: openssl[5568] (cryptodev_open:515): allocated new item at ffff888116d20d80
[ 3316.626763] cryptodev: openssl[5568] (cryptodev_open:515): allocated new item at ffff888116d20600
[ 3316.626765] cryptodev: openssl[5568] (cryptodev_open:515): allocated new item at ffff888118e93e40
[ 3316.626767] cryptodev: openssl[5568] (cryptodev_open:515): allocated new item at ffff888118e939c0
[ 3316.626769] cryptodev: openssl[5568] (cryptodev_open:515): allocated new item at ffff888118918000
[ 3316.626770] cryptodev: openssl[5568] (cryptodev_open:520): Cryptodev handle initialised, 16 elements in queue
[ 3316.626789] cryptodev: openssl[5568] (crypto_create_session:290): got alignmask 3
[ 3316.626791] cryptodev: openssl[5568] (crypto_create_session:293): preallocating for 32 user pages
[ 3316.626798] cryptodev: openssl[5568] (crypto_destroy_session:348): Removed session 0x428F21B6
[ 3316.626801] cryptodev: openssl[5568] (crypto_destroy_session:351): freeing space for 32 user pages
[ 3316.626806] cryptodev: openssl[5568] (crypto_create_session:290): got alignmask 3
[ 3316.626808] cryptodev: openssl[5568] (crypto_create_session:293): preallocating for 32 user pages
[ 3316.626812] cryptodev: openssl[5568] (crypto_destroy_session:348): Removed session 0x59D04C3B
[ 3316.626814] cryptodev: openssl[5568] (crypto_destroy_session:351): freeing space for 32 user pages
[ 3316.629376] cryptodev: openssl[5568] (cryptodev_cipher_init:154): Failed to load cipher cbc(blowfish)
[ 3316.629379] cryptodev: openssl[5568] (crypto_create_session:254): Failed to load cipher for cbc(blowfish)
[ 3316.629385] cryptodev: openssl[5568] (crypto_create_session:167): bad cipher: 4
[ 3316.629392] cryptodev: openssl[5568] (crypto_create_session:290): got alignmask 0
[ 3316.629393] cryptodev: openssl[5568] (crypto_create_session:293): preallocating for 32 user pages
[ 3316.629401] cryptodev: openssl[5568] (crypto_destroy_session:348): Removed session 0xA1BA425D
[ 3316.629403] cryptodev: openssl[5568] (crypto_destroy_session:351): freeing space for 32 user pages
[ 3316.629408] cryptodev: openssl[5568] (crypto_create_session:290): got alignmask 0
[ 3316.629409] cryptodev: openssl[5568] (crypto_create_session:293): preallocating for 32 user pages
[ 3316.629413] cryptodev: openssl[5568] (crypto_destroy_session:348): Removed session 0x751881A1
[ 3316.629415] cryptodev: openssl[5568] (crypto_destroy_session:351): freeing space for 32 user pages
[ 3316.629419] cryptodev: openssl[5568] (crypto_create_session:290): got alignmask 0
[ 3316.629420] cryptodev: openssl[5568] (crypto_create_session:293): preallocating for 32 user pages
[ 3316.629424] cryptodev: openssl[5568] (crypto_destroy_session:348): Removed session 0xDAB9D2CC
[ 3316.629426] cryptodev: openssl[5568] (crypto_destroy_session:351): freeing space for 32 user pages
[ 3316.629428] cryptodev: openssl[5568] (crypto_create_session:167): bad cipher: 12
[ 3316.631202] cryptodev: openssl[5568] (cryptodev_cipher_init:154): Failed to load cipher ctr(aes)
[ 3316.631204] cryptodev: openssl[5568] (crypto_create_session:254): Failed to load cipher for ctr(aes)
[ 3316.632957] cryptodev: openssl[5568] (cryptodev_cipher_init:154): Failed to load cipher ctr(aes)
[ 3316.632959] cryptodev: openssl[5568] (crypto_create_session:254): Failed to load cipher for ctr(aes)
[ 3316.634751] cryptodev: openssl[5568] (cryptodev_cipher_init:154): Failed to load cipher ctr(aes)
[ 3316.634754] cryptodev: openssl[5568] (crypto_create_session:254): Failed to load cipher for ctr(aes)
[ 3316.634766] cryptodev: openssl[5568] (crypto_create_session:290): got alignmask 0
[ 3316.634767] cryptodev: openssl[5568] (crypto_create_session:293): preallocating for 32 user pages
[ 3316.634777] cryptodev: openssl[5568] (crypto_destroy_session:348): Removed session 0x398B01ED
[ 3316.634779] cryptodev: openssl[5568] (crypto_destroy_session:351): freeing space for 32 user pages
[ 3316.634784] cryptodev: openssl[5568] (crypto_create_session:290): got alignmask 0
[ 3316.634785] cryptodev: openssl[5568] (crypto_create_session:293): preallocating for 32 user pages
[ 3316.634789] cryptodev: openssl[5568] (crypto_destroy_session:348): Removed session 0x8541CF90
[ 3316.634791] cryptodev: openssl[5568] (crypto_destroy_session:351): freeing space for 32 user pages
[ 3316.634795] cryptodev: openssl[5568] (crypto_create_session:290): got alignmask 0
[ 3316.634797] cryptodev: openssl[5568] (crypto_create_session:293): preallocating for 32 user pages
[ 3316.634800] cryptodev: openssl[5568] (crypto_destroy_session:348): Removed session 0x9869D3C3
[ 3316.634802] cryptodev: openssl[5568] (crypto_destroy_session:351): freeing space for 32 user pages
[ 3316.634810] cryptodev: openssl[5568] (crypto_create_session:290): got alignmask 0
[ 3316.634812] cryptodev: openssl[5568] (crypto_create_session:293): preallocating for 32 user pages
[ 3316.634817] cryptodev: openssl[5568] (crypto_create_session:290): got alignmask 0
[ 3316.634818] cryptodev: openssl[5568] (crypto_create_session:293): preallocating for 32 user pages
[ 3316.634823] cryptodev: openssl[5568] (crypto_destroy_session:348): Removed session 0x5049FA44
[ 3316.634825] cryptodev: openssl[5568] (crypto_destroy_session:351): freeing space for 32 user pages
[ 3316.634827] cryptodev: openssl[5568] (crypto_destroy_session:348): Removed session 0xC80DEF1C
[ 3316.634829] cryptodev: openssl[5568] (crypto_destroy_session:351): freeing space for 32 user pages
[ 3316.636126] cryptodev: openssl[5568] (cryptodev_hash_init:352): Failed to load transform for sha1
[ 3316.636128] cryptodev: openssl[5568] (crypto_create_session:277): Failed to load hash for sha1
[ 3316.637372] cryptodev: openssl[5568] (cryptodev_hash_init:352): Failed to load transform for rmd160
[ 3316.637374] cryptodev: openssl[5568] (crypto_create_session:277): Failed to load hash for rmd160
[ 3316.637383] cryptodev: openssl[5568] (crypto_create_session:290): got alignmask 0
[ 3316.637384] cryptodev: openssl[5568] (crypto_create_session:293): preallocating for 32 user pages
[ 3316.637393] cryptodev: openssl[5568] (crypto_create_session:290): got alignmask 0
[ 3316.637394] cryptodev: openssl[5568] (crypto_create_session:293): preallocating for 32 user pages
[ 3316.637400] cryptodev: openssl[5568] (crypto_destroy_session:348): Removed session 0xE9125597
[ 3316.637402] cryptodev: openssl[5568] (crypto_destroy_session:351): freeing space for 32 user pages
[ 3316.637404] cryptodev: openssl[5568] (crypto_destroy_session:348): Removed session 0x13C78347
[ 3316.637406] cryptodev: openssl[5568] (crypto_destroy_session:351): freeing space for 32 user pages
[ 3316.637410] cryptodev: openssl[5568] (crypto_create_session:290): got alignmask 0
[ 3316.637411] cryptodev: openssl[5568] (crypto_create_session:293): preallocating for 32 user pages
[ 3316.637416] cryptodev: openssl[5568] (crypto_create_session:290): got alignmask 0
[ 3316.637417] cryptodev: openssl[5568] (crypto_create_session:293): preallocating for 32 user pages
[ 3316.637421] cryptodev: openssl[5568] (crypto_destroy_session:348): Removed session 0x7D814EFC
[ 3316.637422] cryptodev: openssl[5568] (crypto_destroy_session:351): freeing space for 32 user pages
[ 3316.637425] cryptodev: openssl[5568] (crypto_destroy_session:348): Removed session 0xE9DEE777
[ 3316.637426] cryptodev: openssl[5568] (crypto_destroy_session:351): freeing space for 32 user pages
[ 3316.638659] cryptodev: openssl[5568] (cryptodev_hash_init:352): Failed to load transform for sha384
[ 3316.638662] cryptodev: openssl[5568] (crypto_create_session:277): Failed to load hash for sha384
[ 3316.639888] cryptodev: openssl[5568] (cryptodev_hash_init:352): Failed to load transform for sha512
[ 3316.639890] cryptodev: openssl[5568] (crypto_create_session:277): Failed to load hash for sha512
[ 3316.640518] cryptodev: openssl[5568] (cryptodev_release:554): freeing item at ffff888118918000
[ 3316.640521] cryptodev: openssl[5568] (cryptodev_release:554): freeing item at ffff888118e939c0
[ 3316.640522] cryptodev: openssl[5568] (cryptodev_release:554): freeing item at ffff888118e93e40
[ 3316.640524] cryptodev: openssl[5568] (cryptodev_release:554): freeing item at ffff888116d20600
[ 3316.640526] cryptodev: openssl[5568] (cryptodev_release:554): freeing item at ffff888116d20d80
[ 3316.640527] cryptodev: openssl[5568] (cryptodev_release:554): freeing item at ffff888116d20e40
[ 3316.640529] cryptodev: openssl[5568] (cryptodev_release:554): freeing item at ffff888116d203c0
[ 3316.640530] cryptodev: openssl[5568] (cryptodev_release:554): freeing item at ffff888116d20180
[ 3316.640532] cryptodev: openssl[5568] (cryptodev_release:554): freeing item at ffff888116d20f00
[ 3316.640533] cryptodev: openssl[5568] (cryptodev_release:554): freeing item at ffff888116d20c00
[ 3316.640534] cryptodev: openssl[5568] (cryptodev_release:554): freeing item at ffff888116d20b40
[ 3316.640536] cryptodev: openssl[5568] (cryptodev_release:554): freeing item at ffff888116d209c0
[ 3316.640537] cryptodev: openssl[5568] (cryptodev_release:554): freeing item at ffff888116d20a80
[ 3316.640539] cryptodev: openssl[5568] (cryptodev_release:554): freeing item at ffff888116d20900
[ 3316.640540] cryptodev: openssl[5568] (cryptodev_release:554): freeing item at ffff888116d20840
[ 3316.640542] cryptodev: openssl[5568] (cryptodev_release:554): freeing item at ffff888116d20300
[ 3316.640544] cryptodev: openssl[5568] (cryptodev_release:576): Cryptodev handle deinitialised, 16 elements freed
Any clues how to debug this? Yes, kernel has loadable modules
Thanks;
Bill