crypto: fixes for Marvell hash
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest0 of 5 patches 1 replyIn review
- v20 of 3 patches 2 repliesSuperseded
- v10 of 3 patches 4 repliesSuperseded
Patches in v3 No applies recorded yet
None of the 5 patches the cover letter announces are in this archive.
Reviews trailers per patch
| Patch | Boris Brezillon | Arnaud Ebalard |
|---|---|---|
| Series | A-b A-b A-b A-b A-b A-b A-b | A-b A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/5] crypto: fixes for Marvell hash
After all, here's a version 3, which fixes the other bug I mentioned below - we now have correct hash results. A couple of patches have been added, one to fix that, and a second patch to factor out the duplication in the import functions. This gets openssh working with the digests enabled.
Acks so far received have been added. Patch 3 has changed, so I didn't add the ack for the previous version. Please re-review patch 3.
Thanks.
crypto/ahash.c | 3 +- crypto/shash.c | 3 +- drivers/crypto/marvell/hash.c | 80 +++++++++++++++++-------------------------- 3 files changed, 36 insertions(+), 50 deletions(-)
Quoted 60 lines · Russell King - ARM Linux
Version 2, same as version 1 but with a different patch 1, thanks to Herbert for an alternative approach on that one.
crypto/ahash.c | 3 ++- crypto/shash.c | 3 ++- drivers/crypto/marvell/hash.c | 9 +++++++++ 3 files changed, 13 insertions(+), 2 deletions(-)Quoted 47 lines · Russell King - ARM Linux
This small series of patches addresses oopses seen when trying to use the
AF_ALGinterface via openssl with openssh. This series does not address all problems, but merely stops the kernel from smashing its kernel stack and oopsing.With these fixes in place, the kernel no longer oopses. However, with the digests enabled in openssl, openssh refuses to work, producing the following when attempting to connect to the target system:
Corrupted MAC on input.
Disconnecting: Packet corruptIt's been hard enough to get this far; the crypto code is not the easiest code to debug for a new-comer due to the amount of state needed to be retained to understand the code (all the inline functions masking multiple levels of containerisation and pointer dereference does not make it easy to track what is stored where, and once I've been through one bit of code, I find I'm having to revisit the same piece of code a bit later to re-understand what it's doing.)
It's been difficult enough to find the engine plugin for openssl - the original git repo which hosted it is now dead
(http://src.carnivore.it/users/common/af_alg/). All that seems to be left is someone's modified version on github, which seems to get some maintanence. Debian doesn't seem to carryAF_ALGopenssl support, and seems to only carry one package (strongswan) which supports this interface.Hence, I'm leaving further debugging to other parties, especially as the userspace tooling for the
AF_ALGseems rather lacking. (Are there any test programs, if so, can their location be documented and placed inDocumentation/cryptoplease?)I'm not sure who the maintainer for
drivers/crypto/marvellis, so I've picked Thomas. It would be nice if there was an entry inMAINTAINERSfor this driver.The first patch in this series avoids kernel stack smashing if a crypto driver forgets to set the 'statesize' member, but writes to what seems to be a valid pointer passed to its export function. Of course, this won't completely stop stack smashing if the statesize member is smaller than the data which the export function writes. This patch is optional.
The second patch adds the necessary statesize members to the Marvell code which were previously missing. Fixing this uncovered a further problem, which the third patch addresses.
Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.
Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.