Skip to content

crypto: rockchip - fix hash timeouts and debugfs leak

Timur Kussainov linux-arm-kernel linux-crypto linux-rockchip lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2crypto: rockchip - fix inverted hash completion polldrivers/crypto/rockchip/rk3288_crypto_ahash.c+1 -10 replies
2/2crypto: rockchip - fix debugfs leak when stats are disableddrivers/crypto/rockchip/rk3288_crypto.c+7 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] crypto: rockchip - fix hash timeouts and debugfs leak

On RK3288 (tested on an ASUS Tinker Board) all hardware hashes of the rockchip crypto driver currently fail with "HASH idle timeout" and the rk-md5/rk-sha1/rk-sha256 self-tests fail. Patch 1 fixes the inverted completion poll that causes this.

Patch 2 fixes a debugfs directory leak with CONFIG_CRYPTO_DEV_ROCKCHIP_DEBUG=n, which leads to an oops when the stale stats file is read after the module is removed (found while testing patch 1 by reloading the module).

Timur Kussainov (2):
crypto: rockchip - fix inverted hash completion poll
crypto: rockchip - fix debugfs leak when stats are disabled

 drivers/crypto/rockchip/rk3288_crypto.c       | 19 +++++++------------
 drivers/crypto/rockchip/rk3288_crypto_ahash.c |  2 +-
 2 files changed, 8 insertions(+), 13 deletions(-)
Signature · 1 line
2.47.3