Bug#857790: sun4i_ss broken on Cubieboard (Allwinner A10)
Control: tag -1 moreinfo
On Wed, 2017-03-15 at 01:58 +0100, Marco d'Itri wrote:
> Package: src:linux
> Version: 4.9.13-1
> Severity: normal
> Upgrading from 4.4.0-1 to 4.9.0-2 broke Kerberos security for NFS, at
> least as a server.
> kernel: CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
> kernel: OF: fdt:Machine model: Cubietech Cubieboard
> Unless I blacklist the sun4i_ss module then mounting the exported file
> system will not work and the kernel will log:
> kernel: alg: skcipher: Test 1 failed (invalid result) on encryption for cts(cbc-aes-sun4i-ss)
> kernel: 00000000: 4b 10 75 fc 2f 14 1b 6a 27 35 37 33 d1 b7 70 05
> kernel: 00000010: 97
> http://sunxi.org/Cryptographic_Hardware_Accelerators says that CTS mode
> is not even implemented on A10 CPUS.
So far as I can see, the hardware is being used in CBC mode and then
CTS is implemented generically in software on top of that.
The sun4i_ss driver hasn't changed much since 4.4, but the CTS
implementation did have one big change: