Skip to content

crypto: crypto_user_stat: misc enhancement

Corentin Labbe linux-crypto lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest11 patches 4 repliesIn review
  2. v411 patches 2 repliesSuperseded
  3. v310 patches 1 replySuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v211 patches4 repliesSuperseded
v15 patches8 repliesSuperseded

Changes in v5 from the cover letter

- Inlined functions when !CRYPTO_STATS

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11crypto: crypto_user_stat: made crypto_user_stat optionalcrypto/Makefile crypto/algapi.c include/crypto/internal/cryptouser.h +1 more+23 -10 replies
2/11crypto: CRYPTO_STATS should depend on CRYPTO_USERcrypto/Kconfig+1 -00 replies
3/11crypto: crypto_user_stat: convert all stats from u32 to u64crypto/algapi.c crypto/crypto_user_stat.c include/crypto/acompress.h +8 more+133 -1410 replies
4/11crypto: crypto_user_stat: split user space crypto stat structurescrypto/crypto_user_stat.c include/uapi/linux/cryptouser.h+72 -480 replies
5/11crypto: tool: getstat: convert user space example to the new crypto_user_stat uapitools/crypto/getstat.c+27 -270 replies
6/11crypto: crypto_user_stat: fix use_after_free of struct xxx_requestcrypto/ahash.c crypto/algapi.c crypto/rng.c +8 more+376 -2760 replies
7/11crypto: crypto_user_stat: Fix invalid stat reportingcrypto/crypto_user_stat.c+3 -30 replies
8/11crypto: crypto_user_stat: remove intermediate variablecrypto/crypto_user_stat.c+41 -910 replies
9/11crypto: crypto_user_stat: Split stats in multiple structurescrypto/algapi.c crypto/crypto_user_stat.c include/linux/crypto.h+210 -1600 replies
10/11crypto: crypto_user_stat: rename err_cnt parametercrypto/algapi.c crypto/crypto_user_stat.c include/linux/crypto.h +2 more+58 -580 replies
11/11crypto: crypto_user_stat: Add crypto_stats_initcrypto/algapi.c include/linux/crypto.h+10 -30 replies

Reviews trailers per patch

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

Read the v5 thread

Cover letter [PATCH v5 00/11] crypto: crypto_user_stat: misc enhancement

Hello

This patchset fixes all reported problem by Eric biggers.

Regards

Changes since v4:
- Inlined functions when !CRYPTO_STATS

Changes since v3:
- Added a crypto_stats_init as asked vy Neil Horman
- Fixed some checkpatch complaints

Changes since v2:
- moved all crypto_stats functions from header to algapi.c for using crypto_alg_get/put

Changes since v1:
- Better locking of crypto_alg via crypto_alg_get/crypto_alg_put
- remove all intermediate variables in crypto/crypto_user_stat.c
- splited all internal stats variables into different structures

Corentin Labbe (11):
crypto: crypto_user_stat: made crypto_user_stat optional
crypto: CRYPTO_STATS should depend on CRYPTO_USER
crypto: crypto_user_stat: convert all stats from u32 to u64
crypto: crypto_user_stat: split user space crypto stat structures
crypto: tool: getstat: convert user space example to the new
crypto_user_stat uapi
crypto: crypto_user_stat: fix use_after_free of struct xxx_request
crypto: crypto_user_stat: Fix invalid stat reporting
crypto: crypto_user_stat: remove intermediate variable
crypto: crypto_user_stat: Split stats in multiple structures
crypto: crypto_user_stat: rename err_cnt parameter
crypto: crypto_user_stat: Add crypto_stats_init

 crypto/Kconfig                       |   1 +
 crypto/Makefile                      |   3 +-
 crypto/ahash.c                       |  17 +-
 crypto/algapi.c                      | 247 ++++++++++++++++++++++-
 crypto/crypto_user_stat.c            | 160 +++++----------
 crypto/rng.c                         |   4 +-
 include/crypto/acompress.h           |  38 +---
 include/crypto/aead.h                |  38 +---
 include/crypto/akcipher.h            |  74 ++-----
 include/crypto/hash.h                |  32 +--
 include/crypto/internal/cryptouser.h |  17 ++
 include/crypto/kpp.h                 |  48 +----
 include/crypto/rng.h                 |  27 +--
 include/crypto/skcipher.h            |  36 +---
 include/linux/crypto.h               | 290 ++++++++++++++++++---------
 include/uapi/linux/cryptouser.h      | 102 ++++++----
 tools/crypto/getstat.c               |  72 +++----
 17 files changed, 676 insertions(+), 530 deletions(-)
Signature · 1 line
2.18.1